Back to CVE catalog
CVE-2025-71074

open/removal races in functionfs

Linux Linux

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS summary v3.1

7.8High
Published:
Updated:
EPSS:
0.132%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Local

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:LinuxLinuxAffected versions:
2.6.35Show full version range for Linux
  • Other versions are affected by default; consult the source for exceptions.
  • Other source statuses: unaffected: < 2.6.35; unaffected: ≥ 6.1.191, ≤ 6.1.*; unaffected: ≥ 6.6.160, ≤ 6.6.*; unaffected: ≥ 6.12.114, ≤ 6.12.*; unaffected: ≥ 6.19

Git commit ranges (source code)

  • From commit ddf8abd2599491cbad959c700b90ba72a5dce8d0; before commit e002b3c1e6a0faa53329ef0d21e6351bcece6edb
  • From commit ddf8abd2599491cbad959c700b90ba72a5dce8d0; before commit 585a656283c954337036422afcd9cb70dd4135e7
  • From commit ddf8abd2599491cbad959c700b90ba72a5dce8d0; before commit 75240e5e51c6e6d67a3039384125fa54259a3926
  • From commit ddf8abd2599491cbad959c700b90ba72a5dce8d0; before commit e5bf5ee266633cb18fff6f98f0b7d59a62819eee
Vendor:SUSESUSE Linux Enterprise Desktop 15 SP6Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise Desktop 15 SP7Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise High Availability Extension 15 SP7Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise High Availability Extension 16.0Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise High Performance Computing 12 SP2Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise High Performance Computing 12 SP4Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise High Performance Computing 12 SP5Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise High Performance Computing 15 SP1Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise High Performance Computing 15 SP2Affected versions:Source does not specify a version range

1–10 of 33 · Page 1 of 4

CVSS scores and metrics5
Linux · CVE List / CNA (cna)Primary7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
416baaa9-dc9f-4396-8d5f-8c081fb06d67 · NVD (Secondary)7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
[email protected] · NVD (Primary)4.7 / 10MediumCVSS 3.1Details
Attack complexity
High
Confidentiality
None
Integrity
None
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
CVE-2025-71074 · OSV (source-vector)7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat · Red Hat VEX (adp)7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories12

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences