CVE-2024-38580
epoll: be better about file lifetimes
Reported by linux · Published June 19, 2024
In the Linux kernel, the following vulnerability has been resolved: epoll: be better about file lifetimes epoll can call out to vfs_poll() with a file pointer that may race with the last 'fput()'. That would make f_count go down to zero, and while the ep->mtx locking means that the resulting file pointer tear-down will be blocked until the poll returns, it means that f_count is already dead, and any use of it won't actually get a reference to the file any more: it's dead regardless. Make sure we have a valid ref on the file pointer before we call down to vfs_poll() from the epoll routines.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3-perf | Amazon Linux | 6.1.94-99.176.amzn2023 |
| kernel-livepatch-6.1.94-99.176 | Amazon Linux | 1.0-0.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.94-99.176.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.94-99.176.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.94-99.176.amzn2023 |
| kernel-modules-extra | Amazon Linux | 6.1.94-99.176.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.94-99.176.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.94-99.176.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.94-99.176.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.1.94-99.176.amzn2023 |
| linux_kernel | linux | 6.8.12, 6.6.33, 6.1.93, 5.15.161 |
| Linux | Linux | cbfd1088e24ec4c1199756a37cb8e4cd0a4b016e, 559214eb4e5c3d05e69428af2fae2691ba1eb784, 4f65f4defe4e23659275ce5153541cd4f76ce2d2, 16e3182f6322575eb7c12e728ad3c7986a189d5d |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 |
| Linux | Linux | 2.6.12, 0, 5.15.161 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-livepatch-6.1.94-99.176 | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| Linux | Linux | 2.6.12, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 |
| linux | linux_kernel | 2.6.12, 2.6.12, 2.6.12 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel | 0 |
Timeline
- Jun 19, 2024 CVE Published
- Jun 20, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (13 in total, the first dated here)
- Jan 8, 2026 Security Advisory (314 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (237 in total, the first dated here)
- Nov 19, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-38580
vulnetix vdb fixes CVE-2024-38580
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-38580/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart