CVE-2024-38580

CVE-2024-38580

High · published June 19, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
13.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00237 · 13.9th percentile
Published
2024-06-19T18:15Z
Affected products (10)
ProductVersionsFixed in
linux/linux_kernel< 5.15.1615.15.161
linux/linux_kernel≥ 5.16, < 6.1.936.1.93
linux/linux_kernel≥ 6.2, < 6.6.336.6.33
linux/linux_kernel≥ 6.7, < 6.8.126.8.12
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (10)
EPSS history
Timeline
  • 19 JUN 13:37Z
    epoll: be better about file lifetimes
    cvelistv5