CVE-2025-71074
functionfs: fix the open/removal races
Reported by linux · Published January 13, 2026
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.
EPSS 0.13% · 2.8th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | 585a656283c954337036422afcd9cb70dd4135e7, 2.6.35 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | ddf8abd2599491cbad959c700b90ba72a5dce8d0, ddf8abd2599491cbad959c700b90ba72a5dce8d0, ddf8abd2599491cbad959c700b90ba72a5dce8d0 |
| Linux | Linux | 2.6.35, 0, 6.1.191 |
| Linux | Linux | 0, *, * |
| chainguard | linux-qemu-6.12 | 0 |
| chainguard | linux-qemu-6.18 | 0 |
| chainguard | linux-vmware-6.18 | 0 |
| chainguard | linux-gcp-6.18 | 0 |
| chainguard | linux-aws-6.12 | 0 |
| linux | linux_kernel | 2.6.35, 2.6.35, 2.6.35 |
| chainguard | linux-aws-6.18 | 0 |
| chainguard | linux-gcp-6.12 | 0 |
| chainguard | linux-azure-6.18 | 0 |
| chainguard | linux-qemu-melange | 0 |
| chainguard | linux-vmware-6.12 | 0 |
| chainguard | linux-azure-6.12 | 0 |
Timeline
- Jan 13, 2026 CVE Published
- Jan 14, 2026 EPSS Score (30 in total, the first dated here)
- Jan 31, 2026 Security Advisory (96 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- Sep 30, 2026 CVE Updated
- Oct 4, 2026 Distribution Patch (91 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-71074
vulnetix vdb fixes CVE-2025-71074
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-71074/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart