CVE-2025-71074: functionfs: fix the open/removal races
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.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 13 · Related 11Timeline
- 13-01-2026PublishedVulnerability first disclosed.
- 30-10-2026Last 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- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · ChainguardEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST4.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
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
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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