VDB

CVE-2024-38580

CVE-2024-38580 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
python3-perfAmazon Linux6.1.94-99.176.amzn2023
kernel-livepatch-6.1.94-99.176Amazon Linux1.0-0.amzn2023
kernel-modules-extra-commonAmazon Linux6.1.94-99.176.amzn2023
kernel-toolsAmazon Linux6.1.94-99.176.amzn2023
kernel-libbpf-staticAmazon Linux6.1.94-99.176.amzn2023
kernel-modules-extraAmazon Linux6.1.94-99.176.amzn2023
kernel-headersAmazon Linux6.1.94-99.176.amzn2023
kernel-libbpfAmazon Linux6.1.94-99.176.amzn2023
kernel-tools-develAmazon Linux6.1.94-99.176.amzn2023
kernel-libbpf-develAmazon Linux6.1.94-99.176.amzn2023
linux_kernellinux6.8.12, 6.6.33, 6.1.93, 5.15.161
LinuxLinuxcbfd1088e24ec4c1199756a37cb8e4cd0a4b016e, 559214eb4e5c3d05e69428af2fae2691ba1eb784, 4f65f4defe4e23659275ce5153541cd4f76ce2d2, 16e3182f6322575eb7c12e728ad3c7986a189d5d

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
LinuxLinux2.6.12, 0, 5.15.161
amazon:2023python3-perf0
amazon:2023kernel-livepatch-6.1.94-99.1760
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-tools0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-modules-extra0
amazon:2023kernel-headers0
amazon:2023kernel-libbpf0
amazon:2023kernel-tools-devel0
amazon:2023kernel-libbpf-devel0
LinuxLinux2.6.12, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
linuxlinux_kernel2.6.12, 2.6.12, 2.6.12
amazon:2023kernel-devel0
amazon:2023bpftool0
amazon:2023perf0
amazon:2023kernel0

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

References

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