7.8

CVE-2025-71074: functionfs: fix the open/removal races

Modified
AliasesUBUNTU-CVE-2025-71074DEBIAN-CVE-2025-71074CGA-243m-r93x-rjv8
Published 13-01-2026Last modified 30-10-2026

Vulnerability summary

CVE-2025-71074 is a high (CVSS 7.8) vulnerability in linux. EPSS estimates a 0.13% chance of exploitation in the next 30 days, higher than 2.9% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.13%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 13 · Related 11

Timeline

  1. 13-01-2026
    PublishedVulnerability first disclosed.
  2. 30-10-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

0.13%

Chance of exploitation in the next 30 days

Percentile

3%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.13% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu159 products
  • linuxAll versions (No fix recorded) | < 6.8.0-151.151
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 6.8.0-1070.76
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Chainguard23 products
  • linux-aws-6.12< 6.12.80-r0
  • linux-aws-6.18< 6.18.21-r0
  • linux-azure-6.12< 6.12.80-r0 | < 6.12.78-r0
  • linux-azure-6.18< 6.18.20-r0 | < 6.18.21-r0
  • linux-desktop-6.18All versions (No fix recorded)
Debian2 products
  • linuxAll versions (No fix recorded) | < 6.1.192-1 | < 6.12.115-2 | < 6.19.6-1
  • linux-6.12< 6.12.115-2~deb12u1
Linux2 products
  • linux≥ ddf8abd2599491cbad959c700b90ba72a5dce8d0, < e002b3c1e6a0faa53329ef0d21e6351bcece6edb | ≥ ddf8abd2599491cbad959c700b90ba72a5dce8d0, < 585a656283c954337036422afcd9cb70dd4135e7 | ≥ ddf8abd2599491cbad959c700b90ba72a5dce8d0, < 75240e5e51c6e6d67a3039384125fa54259a3926 | ≥ ddf8abd2599491cbad959c700b90ba72a5dce8d0, < e5bf5ee266633cb18fff6f98f0b7d59a62819eee | 2.6.35
  • linux_kernel≥ 2.6.35.1, < 6.19 | 2.6.35 | 6.19:rc1 | 6.19:rc2 | 6.19:rc3 | 6.19:rc4 | 6.19:rc5 | 6.19:rc6 | 6.19:rc7 | 6.19:rc8

4 vendors · 186 products

References

22 links
Show all 22 references