# CVE-2024-35815: fs/aio: Check IOCB\_AIO\_RW before the struct aio\_kiocb conversion

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-17 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2024-35815, DEBIAN-CVE-2024-35815
- Record: https://cvemate.com/vulnerability/CVE-2024-35815 · JSON: https://cvemate.com/vulnerability/CVE-2024-35815/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

fs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion

The first kiocb_set_cancel_fn() argument may point at a struct kiocb
that is not embedded inside struct aio_kiocb. With the current code,
depending on the compiler, the req->ki_ctx read happens either before
the IOCB_AIO_RW test or after that test. Move the req->ki_ctx read such
that it is guaranteed that the IOCB_AIO_RW test happens first.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.249%, percentile 17.32%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 104)

- debian linux (Debian): \< 6.1.85-1 \| \< 6.7.12-1
- ubuntu linux (Ubuntu): \< 5.4.0-189.209 \| \< 5.15.0-116.126
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.4.0-1128.138 \| \< 5.15.0-1065.71
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1065.71~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1128.138~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 5.4.0-1128.138+fips1 \| \< 5.15.0-1065.71+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1133.140 \| \< 5.15.0-1068.77
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1068.77~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 27)

- <https://git.kernel.org/stable/c/10ca82aff58434e122c7c757cf0497c335f993f3>
- <https://git.kernel.org/stable/c/396dbbc18963648e9d1a4edbb55cfe08fa374d50>
- <https://git.kernel.org/stable/c/94eb0293703ced580f05dfbe5a57da5931e9aee2>
- <https://git.kernel.org/stable/c/a71cba07783abc76b547568b6452cd1dd9981410>
- <https://git.kernel.org/stable/c/18d5fc3c16cc317bd0e5f5dabe0660df415cadb7>
- <https://git.kernel.org/stable/c/c01ed748847fe8b810d86efc229b9e6c7fafa01e>
- <https://git.kernel.org/stable/c/5c43d0041e3a05c6c41c318b759fff16d2384596>
- <https://git.kernel.org/stable/c/961ebd120565cb60cebe21cb634fbc456022db4a>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://ubuntu.com/security/CVE-2024-35815>
- <https://www.cve.org/CVERecord?id=CVE-2024-35815>
- <https://git.kernel.org/linus/961ebd120565cb60cebe21cb634fbc456022db4a>
- <https://ubuntu.com/security/notices/USN-6896-1>
- <https://ubuntu.com/security/notices/USN-6898-1>
- <https://ubuntu.com/security/notices/USN-6896-2>
- <https://ubuntu.com/security/notices/USN-6898-2>
- <https://ubuntu.com/security/notices/USN-6896-3>
- <https://ubuntu.com/security/notices/USN-6898-3>

---

Data as of 2026-12-05T04:39:35.155Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
