VDB

CVE-2025-71074

CVE-2025-71074 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
LinuxLinux585a656283c954337036422afcd9cb70dd4135e7, 2.6.35

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.13%
2.8th percentile

Affected products

VendorProductVersions
LinuxLinuxddf8abd2599491cbad959c700b90ba72a5dce8d0, ddf8abd2599491cbad959c700b90ba72a5dce8d0, ddf8abd2599491cbad959c700b90ba72a5dce8d0
LinuxLinux2.6.35, 0, 6.1.191
LinuxLinux0, *, *
chainguardlinux-qemu-6.120
chainguardlinux-qemu-6.180
chainguardlinux-vmware-6.180
chainguardlinux-gcp-6.180
chainguardlinux-aws-6.120
linuxlinux_kernel2.6.35, 2.6.35, 2.6.35
chainguardlinux-aws-6.180
chainguardlinux-gcp-6.120
chainguardlinux-azure-6.180
chainguardlinux-qemu-melange0
chainguardlinux-vmware-6.120
chainguardlinux-azure-6.120

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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›