CVE-2024-35815
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel | Amazon Linux | 6.1.84-99.169.amzn2023, 4.14.345-262.561.amzn2 |
| kernel-devel | Amazon Linux | 6.1.84-99.169.amzn2023, 4.14.345-262.561.amzn2 |
| kernel-livepatch-4.14.345-262.561 | Amazon Linux | 1.0-0.amzn2 |
| kernel-headers | Amazon Linux | 6.1.84-99.169.amzn2023, 4.14.345-262.561.amzn2 |
| kernel-libbpf-static | Amazon Linux | 6.1.84-99.169.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.84-99.169.amzn2023, 4.14.345-262.561.amzn2 |
| perf | Amazon Linux | 6.1.84-99.169.amzn2023, 4.14.345-262.561.amzn2 |
| kernel-modules-extra | Amazon Linux | 6.1.84-99.169.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.84-99.169.amzn2023, 4.14.345-262.561.amzn2 |
| kernel-modules-extra-common | Amazon Linux | 6.1.84-99.169.amzn2023 |
| python-perf | Amazon Linux | 4.14.345-262.561.amzn2 |
| bpftool | Amazon Linux | 6.1.84-99.169.amzn2023 |
4 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 337b543e274fe7a8f47df3c8293cc6686ffa620f, b4eea7a05ee0ab5ab0514421e6ba8c5d249cf942, ea1cd64d59f22d6d13f367d62ec6e27b9344695f |
| Linux | Linux | 4.19.308, 5.4.270, 5.10.211 |
| amazon:2 | kernel | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2 | kernel-livepatch-4.14.345-262.561 | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2 | perf | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2 | kernel-tools | 0 |
| amazon:2 | kernel-headers | 0 |
| amazon:2023 | kernel | 0 |
| Linux | Linux | *, *, * |
| amazon:2 | python-perf | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | bpftool | 0 |
…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