CVE-2025-71074CWE-362

CVE-2025-71074

High · published January 13, 2026

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

In the Linux kernel, the following vulnerability has been resolved:

functionfs: fix the open/removal races

ffs_epfile_open() can race with removal, ending up with file->private_data

pointing to freed object.

There is a total count of opened files on functionfs (both ep0 and

dynamic ones) and when it hits zero, dynamic files get removed.

Unfortunately, that removal can happen while another thread is

in ffs_epfile_open(), but has not incremented the count yet.

In that case open will succeed, leaving us with UAF on any subsequent

read() or write().

The root cause is that ffs->opened is misused; atomic_dec_and_test() vs.

atomic_add_return() is not a good idea, when object remains visible all

along.

To untangle that

* serialize openers on ffs->mutex (both for ep0 and for dynamic files)

* have dynamic ones use atomic_inc_not_zero() and fail if we had

zero ->opened; in that case the file we are opening is doomed.

* have the inodes of dynamic files marked on removal (from the

callback of simple_recursive_removal()) - clear ->i_private there.

* have open of dynamic ones verify they hadn't been already removed,

along with checking that state is FFS_ACTIVE.

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.00109 · 1.2th percentile
Weakness
CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Published
2026-01-13T21:16Z
Affected products (10)
ProductVersionsFixed in
linux/linux_kernel≥ 2.6.35.1, < 6.196.19
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
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 (3)
EPSS history
Timeline
  • 13 JAN 15:31Z
    functionfs: fix the open/removal races
    cvelistv5