VDB

CVE-2024-35815

CVE-2024-35815 PUBLISHED

fs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion

Reported by linux · Published May 17, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernelAmazon Linux6.1.84-99.169.amzn2023, 4.14.345-262.561.amzn2
kernel-develAmazon Linux6.1.84-99.169.amzn2023, 4.14.345-262.561.amzn2
kernel-livepatch-4.14.345-262.561Amazon Linux1.0-0.amzn2
kernel-headersAmazon Linux6.1.84-99.169.amzn2023, 4.14.345-262.561.amzn2
kernel-libbpf-staticAmazon Linux6.1.84-99.169.amzn2023
kernel-toolsAmazon Linux6.1.84-99.169.amzn2023, 4.14.345-262.561.amzn2
perfAmazon Linux6.1.84-99.169.amzn2023, 4.14.345-262.561.amzn2
kernel-modules-extraAmazon Linux6.1.84-99.169.amzn2023
kernel-tools-develAmazon Linux6.1.84-99.169.amzn2023, 4.14.345-262.561.amzn2
kernel-modules-extra-commonAmazon Linux6.1.84-99.169.amzn2023
python-perfAmazon Linux4.14.345-262.561.amzn2
bpftoolAmazon Linux6.1.84-99.169.amzn2023

4 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
LinuxLinux337b543e274fe7a8f47df3c8293cc6686ffa620f, b4eea7a05ee0ab5ab0514421e6ba8c5d249cf942, ea1cd64d59f22d6d13f367d62ec6e27b9344695f
LinuxLinux4.19.308, 5.4.270, 5.10.211
amazon:2kernel0
amazon:2023kernel-devel0
amazon:2kernel-livepatch-4.14.345-262.5610
amazon:2023kernel-headers0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-tools0
amazon:2perf0
amazon:2023kernel-modules-extra0
amazon:2kernel-tools-devel0
amazon:2023kernel-modules-extra-common0
amazon:2kernel-tools0
amazon:2kernel-headers0
amazon:2023kernel0
LinuxLinux*, *, *
amazon:2python-perf0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
amazon:2023kernel-tools-devel0
amazon:2023bpftool0

…and 7 more

Timeline

  • May 17, 2024 CVE Published
  • May 18, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (8 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Jan 10, 2026 Security Advisory (442 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (337 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-35815
vulnetix vdb fixes CVE-2024-35815

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-35815/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›