# CVE-2024-38580: epoll: be better about file lifetimes

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-06-19T13:37:37.840Z
- Modified: 2026-08-05T11:32:56.809Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before cbfd1088e24ec4c1199756a37cb8e4cd0a4b016e; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 559214eb4e5c3d05e69428af2fae2691ba1eb784; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 4f65f4defe4e23659275ce5153541cd4f76ce2d2; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 16e3182f6322575eb7c12e728ad3c7986a189d5d; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 4efaa5acf0a1d2b5947f98abb3acf8bfd966422b; 2.6.12 (not affected: before 2.6.12; from 5.15.161 up to 5.15.*; from 6.1.93 up to 6.1.*; from 6.6.33 up to 6.6.*; from 6.8.12 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: before 5.15.161; from 5.16 before 6.1.93; from 6.2 before 6.6.33; from 6.7 before 6.8.12; 6.9

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/cbfd1088e24ec4c1199756a37cb8e4cd0a4b016e> (patch)
- <https://git.kernel.org/stable/c/559214eb4e5c3d05e69428af2fae2691ba1eb784> (patch)
- <https://git.kernel.org/stable/c/4f65f4defe4e23659275ce5153541cd4f76ce2d2> (patch)
- <https://git.kernel.org/stable/c/16e3182f6322575eb7c12e728ad3c7986a189d5d> (patch)
- <https://git.kernel.org/stable/c/4efaa5acf0a1d2b5947f98abb3acf8bfd966422b> (patch)

## Sources

- CVE List: [CVE-2024-38580](https://www.cve.org/CVERecord?id=CVE-2024-38580), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-38580](https://nvd.nist.gov/vuln/detail/CVE-2024-38580), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-38580 · Whole record: https://cve.day/CVE-2024-38580.json · Rebuilt by cve.day 2026-11-25T22:58:42.026Z
