CVE-2024-38580

epoll: be better about file lifetimes

MEDIUM
4.7
CVSS Score
Published: June 19, 2024 at 01:37 PM UTC
Updated: August 5, 2026 at 12:04 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.7
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.15.1612.6.12 ≤ v < 5.15.1612.6.12 ≤ v < 6.1.932.6.12 ≤ v < 6.6.332.6.12 ≤ v < 6.8.122.6.12 ≤ v < 6.95.16 ≤ v < 6.1.936.2 ≤ v < 6.6.336.7 ≤ v < 6.8.121da177e4c3f41524e886b7f1b8a0c1fc7321cac26.9 rc16.9 rc26.9 rc36.9 rc46.9 rc56.9 rc6
Vendor states this is fixed in 16e3182f6322575eb7c12e728ad3c7986a189d5d (fixed)
Vendor states this is fixed in 4efaa5acf0a1d2b5947f98abb3acf8bfd966422b (fixed)
Vendor states this is fixed in 4f65f4defe4e23659275ce5153541cd4f76ce2d2 (fixed)
Vendor states this is fixed in 559214eb4e5c3d05e69428af2fae2691ba1eb784 (fixed)
Vendor states this is fixed in cbfd1088e24ec4c1199756a37cb8e4cd0a4b016e (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 5.15.161 (unaffected)
Vendor states this is fixed in 6.1.93 (unaffected)
Vendor states this is fixed in 6.6.33 (unaffected)
Vendor states this is fixed in 6.8.12 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/16e3182f6322575eb7c12e728ad3c7986a189d5d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4efaa5acf0a1d2b5947f98abb3acf8bfd966422b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4f65f4defe4e23659275ce5153541cd4f76ce2d2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/559214eb4e5c3d05e69428af2fae2691ba1eb784
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cbfd1088e24ec4c1199756a37cb8e4cd0a4b016e

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card