{"id":"CVE-2024-35815","aliases":["CVE-2024-35815"],"related":[],"kind":"vulnerability","state":"published","title":"fs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: fs/aio: verifique IOCB_AIO_RW antes de la conversión de struct aio_kiocb. El primer argumento kiocb_set_cancel_fn() puede apuntar a una estructura kiocb que no está incrustada dentro de struct aio_kiocb. Con el código actual, dependiendo del compilador, la lectura req-&gt;ki_ctx ocurre antes de la prueba IOCB_AIO_RW o después de esa prueba. Mueva la lectura req-&gt;ki_ctx de modo que se garantice que la prueba IOCB_AIO_RW se realice primero.","source":"nvd"}],"published":"2024-05-17T13:23:20.326Z","modified":"2026-10-15T01:17:47.917Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"337b543e274fe7a8f47df3c8293cc6686ffa620f","fixed":"10ca82aff58434e122c7c757cf0497c335f993f3","status":"affected"},{"type":"git","introduced":"b4eea7a05ee0ab5ab0514421e6ba8c5d249cf942","fixed":"396dbbc18963648e9d1a4edbb55cfe08fa374d50","status":"affected"},{"type":"git","introduced":"ea1cd64d59f22d6d13f367d62ec6e27b9344695f","fixed":"94eb0293703ced580f05dfbe5a57da5931e9aee2","status":"affected"},{"type":"git","introduced":"d7b6fa97ec894edd02f64b83e5e72e1aa352f353","fixed":"a71cba07783abc76b547568b6452cd1dd9981410","status":"affected"},{"type":"git","introduced":"18f614369def2a11a52f569fe0f910b199d13487","fixed":"18d5fc3c16cc317bd0e5f5dabe0660df415cadb7","status":"affected"},{"type":"git","introduced":"e7e23fc5d5fe422827c9a43ecb579448f73876c7","fixed":"c01ed748847fe8b810d86efc229b9e6c7fafa01e","status":"affected"},{"type":"git","introduced":"1dc7d74fe456944a9b1c57bd776280249f441ac6","fixed":"5c43d0041e3a05c6c41c318b759fff16d2384596","status":"affected"},{"type":"git","introduced":"b820de741ae48ccf50dd95e297889c286ff4f760","fixed":"961ebd120565cb60cebe21cb634fbc456022db4a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.19.308","fixed":"4.19.312","status":"affected"},{"type":"semver","introduced":"5.4.270","fixed":"5.4.274","status":"affected"},{"type":"semver","introduced":"5.10.211","fixed":"5.10.215","status":"affected"},{"type":"semver","introduced":"5.15.150","fixed":"5.15.154","status":"affected"},{"type":"semver","introduced":"6.1.80","fixed":"6.1.84","status":"affected"},{"type":"semver","introduced":"6.6.19","fixed":"6.6.24","status":"affected"},{"type":"semver","introduced":"6.7.7","fixed":"6.7.12","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.19.308","fixed":"4.19.312"},{"status":"affected","introduced":"5.4.270","fixed":"5.4.274"},{"status":"affected","introduced":"5.10.211","fixed":"5.10.215"},{"status":"affected","introduced":"5.15.150","fixed":"5.15.154"},{"status":"affected","introduced":"6.1.80","fixed":"6.1.84"},{"status":"affected","introduced":"6.6.19","fixed":"6.6.24"},{"status":"affected","introduced":"6.7.7","fixed":"6.7.12"},{"status":"affected","version":"6.8"},{"status":"affected","version":"6.8"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/10ca82aff58434e122c7c757cf0497c335f993f3","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/396dbbc18963648e9d1a4edbb55cfe08fa374d50","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/94eb0293703ced580f05dfbe5a57da5931e9aee2","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a71cba07783abc76b547568b6452cd1dd9981410","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/18d5fc3c16cc317bd0e5f5dabe0660df415cadb7","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c01ed748847fe8b810d86efc229b9e6c7fafa01e","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c43d0041e3a05c6c41c318b759fff16d2384596","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/961ebd120565cb60cebe21cb634fbc456022db4a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-20T14:12:56.685Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-35815","url":"https://www.cve.org/CVERecord?id=CVE-2024-35815","licence":"CVE Terms of Use","modified":"2026-10-15T00:40:56.756Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-35815","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35815","licence":"Public domain","modified":"2026-10-15T01:17:47.917Z"}],"updatedAt":"2026-11-25T22:58:40.523Z","epss":{"score":0.00249,"percentile":0.17359,"date":"2026-12-01T12:00:22.000Z"}}