{"api_version":"1","generated_at":"2026-07-24T21:09:47+00:00","cve":"CVE-2024-35815","urls":{"html":"https://cve.report/CVE-2024-35815","api":"https://cve.report/api/cve/CVE-2024-35815.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-35815","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-35815"},"summary":{"title":"fs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion\n\nThe first kiocb_set_cancel_fn() argument may point at a struct kiocb\nthat is not embedded inside struct aio_kiocb. With the current code,\ndepending on the compiler, the req->ki_ctx read happens either before\nthe IOCB_AIO_RW test or after that test. Move the req->ki_ctx read such\nthat it is guaranteed that the IOCB_AIO_RW test happens first.","state":"PUBLISHED","assigner":"Linux","published_at":"2024-05-17 14:15:16","updated_at":"2026-05-12 12:16:37"},"problem_types":["NVD-CWE-noinfo"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"5.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}}],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","name":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/10ca82aff58434e122c7c757cf0497c335f993f3","name":"https://git.kernel.org/stable/c/10ca82aff58434e122c7c757cf0497c335f993f3","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5c43d0041e3a05c6c41c318b759fff16d2384596","name":"https://git.kernel.org/stable/c/5c43d0041e3a05c6c41c318b759fff16d2384596","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a71cba07783abc76b547568b6452cd1dd9981410","name":"https://git.kernel.org/stable/c/a71cba07783abc76b547568b6452cd1dd9981410","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","name":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","refsource":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c01ed748847fe8b810d86efc229b9e6c7fafa01e","name":"https://git.kernel.org/stable/c/c01ed748847fe8b810d86efc229b9e6c7fafa01e","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/396dbbc18963648e9d1a4edbb55cfe08fa374d50","name":"https://git.kernel.org/stable/c/396dbbc18963648e9d1a4edbb55cfe08fa374d50","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/961ebd120565cb60cebe21cb634fbc456022db4a","name":"https://git.kernel.org/stable/c/961ebd120565cb60cebe21cb634fbc456022db4a","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","name":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/18d5fc3c16cc317bd0e5f5dabe0660df415cadb7","name":"https://git.kernel.org/stable/c/18d5fc3c16cc317bd0e5f5dabe0660df415cadb7","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/94eb0293703ced580f05dfbe5a57da5931e9aee2","name":"https://git.kernel.org/stable/c/94eb0293703ced580f05dfbe5a57da5931e9aee2","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-35815","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35815","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 337b543e274fe7a8f47df3c8293cc6686ffa620f 10ca82aff58434e122c7c757cf0497c335f993f3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b4eea7a05ee0ab5ab0514421e6ba8c5d249cf942 396dbbc18963648e9d1a4edbb55cfe08fa374d50 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ea1cd64d59f22d6d13f367d62ec6e27b9344695f 94eb0293703ced580f05dfbe5a57da5931e9aee2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d7b6fa97ec894edd02f64b83e5e72e1aa352f353 a71cba07783abc76b547568b6452cd1dd9981410 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 18f614369def2a11a52f569fe0f910b199d13487 18d5fc3c16cc317bd0e5f5dabe0660df415cadb7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e7e23fc5d5fe422827c9a43ecb579448f73876c7 c01ed748847fe8b810d86efc229b9e6c7fafa01e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1dc7d74fe456944a9b1c57bd776280249f441ac6 5c43d0041e3a05c6c41c318b759fff16d2384596 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b820de741ae48ccf50dd95e297889c286ff4f760 961ebd120565cb60cebe21cb634fbc456022db4a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.19.308 4.19.312 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.4.270 5.4.274 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10.211 5.10.215 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15.150 5.15.154 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.1.80 6.1.84 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.6.19 6.6.24 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.7.7 6.7.12 semver","platforms":[]},{"source":"ADP","vendor":"Siemens","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","version":"affected * custom","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2024","cve_id":"35815","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2024-35815","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2024-05-20T14:12:56.685850Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2024-06-04T17:33:42.531Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"},{"providerMetadata":{"dateUpdated":"2024-08-02T03:21:47.505Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/10ca82aff58434e122c7c757cf0497c335f993f3"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/396dbbc18963648e9d1a4edbb55cfe08fa374d50"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/94eb0293703ced580f05dfbe5a57da5931e9aee2"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/a71cba07783abc76b547568b6452cd1dd9981410"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/18d5fc3c16cc317bd0e5f5dabe0660df415cadb7"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/c01ed748847fe8b810d86efc229b9e6c7fafa01e"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/5c43d0041e3a05c6c41c318b759fff16d2384596"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/961ebd120565cb60cebe21cb634fbc456022db4a"},{"tags":["x_transferred"],"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"},{"tags":["x_transferred"],"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html"}],"title":"CVE Program Container"},{"affected":[{"defaultStatus":"unknown","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","vendor":"Siemens","versions":[{"lessThan":"*","status":"affected","version":"0","versionType":"custom"}]}],"providerMetadata":{"dateUpdated":"2026-05-12T11:52:11.694Z","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","shortName":"siemens-SADP"},"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html"}],"x_adpType":"supplier"}],"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/aio.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"10ca82aff58434e122c7c757cf0497c335f993f3","status":"affected","version":"337b543e274fe7a8f47df3c8293cc6686ffa620f","versionType":"git"},{"lessThan":"396dbbc18963648e9d1a4edbb55cfe08fa374d50","status":"affected","version":"b4eea7a05ee0ab5ab0514421e6ba8c5d249cf942","versionType":"git"},{"lessThan":"94eb0293703ced580f05dfbe5a57da5931e9aee2","status":"affected","version":"ea1cd64d59f22d6d13f367d62ec6e27b9344695f","versionType":"git"},{"lessThan":"a71cba07783abc76b547568b6452cd1dd9981410","status":"affected","version":"d7b6fa97ec894edd02f64b83e5e72e1aa352f353","versionType":"git"},{"lessThan":"18d5fc3c16cc317bd0e5f5dabe0660df415cadb7","status":"affected","version":"18f614369def2a11a52f569fe0f910b199d13487","versionType":"git"},{"lessThan":"c01ed748847fe8b810d86efc229b9e6c7fafa01e","status":"affected","version":"e7e23fc5d5fe422827c9a43ecb579448f73876c7","versionType":"git"},{"lessThan":"5c43d0041e3a05c6c41c318b759fff16d2384596","status":"affected","version":"1dc7d74fe456944a9b1c57bd776280249f441ac6","versionType":"git"},{"lessThan":"961ebd120565cb60cebe21cb634fbc456022db4a","status":"affected","version":"b820de741ae48ccf50dd95e297889c286ff4f760","versionType":"git"}]},{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/aio.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"4.19.312","status":"affected","version":"4.19.308","versionType":"semver"},{"lessThan":"5.4.274","status":"affected","version":"5.4.270","versionType":"semver"},{"lessThan":"5.10.215","status":"affected","version":"5.10.211","versionType":"semver"},{"lessThan":"5.15.154","status":"affected","version":"5.15.150","versionType":"semver"},{"lessThan":"6.1.84","status":"affected","version":"6.1.80","versionType":"semver"},{"lessThan":"6.6.24","status":"affected","version":"6.6.19","versionType":"semver"},{"lessThan":"6.7.12","status":"affected","version":"6.7.7","versionType":"semver"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"4.19.312","versionStartIncluding":"4.19.308","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.4.274","versionStartIncluding":"5.4.270","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.215","versionStartIncluding":"5.10.211","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.154","versionStartIncluding":"5.15.150","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.84","versionStartIncluding":"6.1.80","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.24","versionStartIncluding":"6.6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.7.12","versionStartIncluding":"6.7.7","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion\n\nThe first kiocb_set_cancel_fn() argument may point at a struct kiocb\nthat is not embedded inside struct aio_kiocb. With the current code,\ndepending on the compiler, the req->ki_ctx read happens either before\nthe IOCB_AIO_RW test or after that test. Move the req->ki_ctx read such\nthat it is guaranteed that the IOCB_AIO_RW test happens first."}],"providerMetadata":{"dateUpdated":"2026-05-11T20:11:32.647Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/10ca82aff58434e122c7c757cf0497c335f993f3"},{"url":"https://git.kernel.org/stable/c/396dbbc18963648e9d1a4edbb55cfe08fa374d50"},{"url":"https://git.kernel.org/stable/c/94eb0293703ced580f05dfbe5a57da5931e9aee2"},{"url":"https://git.kernel.org/stable/c/a71cba07783abc76b547568b6452cd1dd9981410"},{"url":"https://git.kernel.org/stable/c/18d5fc3c16cc317bd0e5f5dabe0660df415cadb7"},{"url":"https://git.kernel.org/stable/c/c01ed748847fe8b810d86efc229b9e6c7fafa01e"},{"url":"https://git.kernel.org/stable/c/5c43d0041e3a05c6c41c318b759fff16d2384596"},{"url":"https://git.kernel.org/stable/c/961ebd120565cb60cebe21cb634fbc456022db4a"}],"title":"fs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2024-35815","datePublished":"2024-05-17T13:23:20.326Z","dateReserved":"2024-05-17T12:19:12.343Z","dateUpdated":"2026-05-12T11:52:11.694Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2024-05-17 14:15:16","lastModifiedDate":"2026-05-12 12:16:37","problem_types":["NVD-CWE-noinfo"],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":3.6}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19.308","versionEndExcluding":"4.19.312","matchCriteriaId":"017B5D47-54B0-4864-A4EC-76E944E9A963"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4.270","versionEndExcluding":"5.4.274","matchCriteriaId":"BB25F64F-5C99-4466-8D9A-1469885E86E7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.211","versionEndExcluding":"5.10.215","matchCriteriaId":"AFDEF5B7-531B-41B1-B5E4-44F31E00AF98"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.150","versionEndExcluding":"5.15.154","matchCriteriaId":"2078FD3A-BAFD-4DF4-89B3-017B721C092B"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.80","versionEndExcluding":"6.1.84","matchCriteriaId":"487837EB-1F63-4418-B493-430A93B5F9A1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.19","versionEndExcluding":"6.6.24","matchCriteriaId":"8EC52D03-C451-4B7B-BE34-6735FCBB296A"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7.7","versionEndExcluding":"6.7.12","matchCriteriaId":"976AF1BD-A716-495C-BDE4-0207737C6C4B"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.8:rc6:*:*:*:*:*:*","matchCriteriaId":"AEB9199B-AB8F-4877-8964-E2BA95B5F15C"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.8:rc7:*:*:*:*:*:*","matchCriteriaId":"C9B8A5CE-6D20-4C36-AC01-ACA4B70003A8"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","matchCriteriaId":"07B237A9-69A3-4A9C-9DA0-4E06BD37AE73"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2024","CveId":"35815","Ordinal":"1","Title":"fs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion","CVE":"CVE-2024-35815","Year":"2024"},"notes":[{"CveYear":"2024","CveId":"35815","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion\n\nThe first kiocb_set_cancel_fn() argument may point at a struct kiocb\nthat is not embedded inside struct aio_kiocb. With the current code,\ndepending on the compiler, the req->ki_ctx read happens either before\nthe IOCB_AIO_RW test or after that test. Move the req->ki_ctx read such\nthat it is guaranteed that the IOCB_AIO_RW test happens first.","Type":"Description","Title":"fs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion"}]}}}