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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **Published:** 2024-05-17T13:23:20.326Z
- **Modified:** 2026-10-15T01:17:47.917Z

## Who should check

- Anyone running Linux \>= 337b543e274fe7a8f47df3c8293cc6686ffa620f, \< 10ca82aff58434e122c7c757cf0497c335f993f3; \>= b4eea7a05ee0ab5ab0514421e6ba8c5d249cf942, \< 396dbbc18963648e9d1a4edbb55cfe08fa374d50; \>= ea1cd64d59f22d6d13f367d62ec6e27b9344695f, \< 94eb0293703ced580f05dfbe5a57da5931e9aee2; \>= d7b6fa97ec894edd02f64b83e5e72e1aa352f353, \< a71cba07783abc76b547568b6452cd1dd9981410; \>= 18f614369def2a11a52f569fe0f910b199d13487, \< 18d5fc3c16cc317bd0e5f5dabe0660df415cadb7; \>= e7e23fc5d5fe422827c9a43ecb579448f73876c7, \< c01ed748847fe8b810d86efc229b9e6c7fafa01e; \>= 1dc7d74fe456944a9b1c57bd776280249f441ac6, \< 5c43d0041e3a05c6c41c318b759fff16d2384596; \>= b820de741ae48ccf50dd95e297889c286ff4f760, \< 961ebd120565cb60cebe21cb634fbc456022db4a
- Anyone running Linux \>= 4.19.308, \< 4.19.312; \>= 5.4.270, \< 5.4.274; \>= 5.10.211, \< 5.10.215; \>= 5.15.150, \< 5.15.154; \>= 6.1.80, \< 6.1.84; \>= 6.6.19, \< 6.6.24; \>= 6.7.7, \< 6.7.12

## Description

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.

## Affected and fixed versions

- Linux: \>= 337b543e274fe7a8f47df3c8293cc6686ffa620f, \< 10ca82aff58434e122c7c757cf0497c335f993f3; \>= b4eea7a05ee0ab5ab0514421e6ba8c5d249cf942, \< 396dbbc18963648e9d1a4edbb55cfe08fa374d50; \>= ea1cd64d59f22d6d13f367d62ec6e27b9344695f, \< 94eb0293703ced580f05dfbe5a57da5931e9aee2; \>= d7b6fa97ec894edd02f64b83e5e72e1aa352f353, \< a71cba07783abc76b547568b6452cd1dd9981410; \>= 18f614369def2a11a52f569fe0f910b199d13487, \< 18d5fc3c16cc317bd0e5f5dabe0660df415cadb7; \>= e7e23fc5d5fe422827c9a43ecb579448f73876c7, \< c01ed748847fe8b810d86efc229b9e6c7fafa01e; \>= 1dc7d74fe456944a9b1c57bd776280249f441ac6, \< 5c43d0041e3a05c6c41c318b759fff16d2384596; \>= b820de741ae48ccf50dd95e297889c286ff4f760, \< 961ebd120565cb60cebe21cb634fbc456022db4a (cvelist)
- Linux: \>= 4.19.308, \< 4.19.312; \>= 5.4.270, \< 5.4.274; \>= 5.10.211, \< 5.10.215; \>= 5.15.150, \< 5.15.154; \>= 6.1.80, \< 6.1.84; \>= 6.6.19, \< 6.6.24; \>= 6.7.7, \< 6.7.12 (cvelist)

## Mitigation

- Upgrade Linux to 961ebd120565cb60cebe21cb634fbc456022db4a or later.
- Upgrade Linux to 6.7.12 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35815. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35815.md
Affected: Linux >= 337b543e274fe7a8f47df3c8293cc6686ffa620f, < 10ca82aff58434e122c7c757cf0497c335f993f3; >= b4eea7a05ee0ab5ab0514421e6ba8c5d249cf942, < 396dbbc18963648e9d1a4edbb55cfe08fa374d50; >= ea1cd64d59f22d6d13f367d62ec6e27b9344695f, < 94eb0293703ced580f05dfbe5a57da5931e9aee2; >= d7b6fa97ec894edd02f64b8…
Fixed in: Linux 10ca82aff58434e122c7c757cf0497c335f993f3, Linux 396dbbc18963648e9d1a4edbb55cfe08fa374d50, Linux 94eb0293703ced580f05dfbe5a57da5931e9aee2, Linux 18d5fc3c16cc317bd0e5f5dabe0660df415cadb7, Linux 5c43d0041e3a05c6c41c318b759fff16d2384596, Linux 961ebd120565cb60cebe21cb634fbc456022db4a, Linux 4.19.…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35815 being exploited?

There is no confirmed exploitation: CVE-2024-35815 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35815?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-35815?

Linux \>= 337b543e274fe7a8f47df3c8293cc6686ffa620f, \< 10ca82aff58434e122c7c757cf0497c335f993f3; \>= b4eea7a05ee0ab5ab0514421e6ba8c5d249cf942, \< 396dbbc18963648e9d1a4edbb55cfe08fa374d50; \>= ea1cd64d59f22d6d13f367d62ec6e27b9344695f, \< 94eb0293703ced580f05dfbe5a57da5931e9aee2; \>= d7b6fa97ec894edd02f64b83e5e72e1aa352f353, \< a71cba07783abc76b547568b6452cd1dd9981410; \>= 18f614369def2a11a52f569fe0f910b199d13487, \< 18d5fc3c16cc317bd0e5f5dabe0660df415cadb7; \>= e7e23fc5d5fe422827c9a43ecb579448f73876c7, \< c01ed748847fe8b810d86efc229b9e6c7fafa01e; \>= 1dc7d74fe456944a9b1c57bd776280249f441ac6, \< 5c43d0041e3a05c6c41c318b759fff16d2384596; \>= b820de741ae48ccf50dd95e297889c286ff4f760, \< 961ebd120565cb60cebe21cb634fbc456022db4a; Linux \>= 4.19.308, \< 4.19.312; \>= 5.4.270, \< 5.4.274; \>= 5.10.211, \< 5.10.215; \>= 5.15.150, \< 5.15.154; \>= 6.1.80, \< 6.1.84; \>= 6.6.19, \< 6.6.24; \>= 6.7.7, \< 6.7.12.

### Is there a fix for CVE-2024-35815?

Yes. Fixed in Linux 10ca82aff58434e122c7c757cf0497c335f993f3, Linux 396dbbc18963648e9d1a4edbb55cfe08fa374d50, Linux 94eb0293703ced580f05dfbe5a57da5931e9aee2, Linux 18d5fc3c16cc317bd0e5f5dabe0660df415cadb7, Linux 5c43d0041e3a05c6c41c318b759fff16d2384596, Linux 961ebd120565cb60cebe21cb634fbc456022db4a, Linux 4.19.312, Linux 5.4.274, Linux 5.10.215, Linux 5.15.154, Linux 6.1.84, Linux 6.6.24, Linux 6.7.12. Upgrade Linux to 961ebd120565cb60cebe21cb634fbc456022db4a or later. Upgrade Linux to 6.7.12 or later.

### How do I check if I'm affected by CVE-2024-35815?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/10ca82aff58434e122c7c757cf0497c335f993f3>
- patch: <https://git.kernel.org/stable/c/396dbbc18963648e9d1a4edbb55cfe08fa374d50>
- patch: <https://git.kernel.org/stable/c/94eb0293703ced580f05dfbe5a57da5931e9aee2>
- patch: <https://git.kernel.org/stable/c/a71cba07783abc76b547568b6452cd1dd9981410>
- patch: <https://git.kernel.org/stable/c/18d5fc3c16cc317bd0e5f5dabe0660df415cadb7>
- patch: <https://git.kernel.org/stable/c/c01ed748847fe8b810d86efc229b9e6c7fafa01e>
- patch: <https://git.kernel.org/stable/c/5c43d0041e3a05c6c41c318b759fff16d2384596>
- patch: <https://git.kernel.org/stable/c/961ebd120565cb60cebe21cb634fbc456022db4a>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35815>

HTML: <https://flawdb.com/CVE-2024-35815> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35815>
