Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-35815

MEDIUM 5.5EPSS 20%

fs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion

Mitigation

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

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

Vulnerability facts

Affected
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
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
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.34% chance of exploitation in 30 days (percentile 20, 2026-11-26)
Published
Modified

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

Package / productAffectedFixedSource
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

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors