# CVE-2025-22072: spufs: fix gang directory lifetimes

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2025-04-16T14:12:24.571Z
- **Modified:** 2026-08-05T11:56:31.407Z

## Who should check

- Anyone running Linux \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< 880e7b3da2e765c1f90c94c0539be039e96c7062; \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< 324f280806aab28ef757aecc18df419676c10ef8; \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< 029d8c711f5e5fe8cf63e8a4a1a140a06e224e45; \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< 903733782f3ae28a2f7fe4dfb47c7fe3e079a528; \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< fc646a6c6d14b5d581f162a7e32999f789e3a3ac; \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< c134deabf4784e155d360744d4a6a835b9de4dd4
- Anyone running Linux 2.6.22

## Description

In the Linux kernel, the following vulnerability has been resolved:

spufs: fix gang directory lifetimes

prior to "\[POWERPC\] spufs: Fix gang destroy leaks" we used to have
a problem with gang lifetimes - creation of a gang returns opened
gang directory, which normally gets removed when that gets closed,
but if somebody has created a context belonging to that gang and
kept it alive until the gang got closed, removal failed and we
ended up with a leak.

Unfortunately, it had been fixed the wrong way.  Dentry of gang
directory was no longer pinned, and rmdir on close was gone.
One problem was that failure of open kept calling simple\_rmdir()
as cleanup, which meant an unbalanced dput().  Another bug was
in the success case - gang creation incremented link count on
root directory, but that was no longer undone when gang got
destroyed.

Fix consists of
	\* reverting the commit in question
	\* adding a counter to gang, protected by -\>i\_rwsem
of gang directory inode.
	\* having it set to 1 at creation time, dropped
in both spufs\_dir\_close() and spufs\_gang\_close() and bumped
in spufs\_create\_context(), provided that it's not 0.
	\* using simple\_recursive\_removal() to take the gang
directory out when counter reaches zero.

## Affected and fixed versions

- Linux: \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< 880e7b3da2e765c1f90c94c0539be039e96c7062; \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< 324f280806aab28ef757aecc18df419676c10ef8; \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< 029d8c711f5e5fe8cf63e8a4a1a140a06e224e45; \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< 903733782f3ae28a2f7fe4dfb47c7fe3e079a528; \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< fc646a6c6d14b5d581f162a7e32999f789e3a3ac; \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< c134deabf4784e155d360744d4a6a835b9de4dd4 (cvelist)
- Linux: 2.6.22 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-22072. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-22072.md
Affected: Linux >= 877907d37da9694a34adc9dc3e2ce09400148cb5, < 880e7b3da2e765c1f90c94c0539be039e96c7062; >= 877907d37da9694a34adc9dc3e2ce09400148cb5, < 324f280806aab28ef757aecc18df419676c10ef8; >= 877907d37da9694a34adc9dc3e2ce09400148cb5, < 029d8c711f5e5fe8cf63e8a4a1a140a06e224e45; >= 877907d37da9694a34adc9d…
Fixed in: Linux 880e7b3da2e765c1f90c94c0539be039e96c7062, Linux 324f280806aab28ef757aecc18df419676c10ef8, Linux 029d8c711f5e5fe8cf63e8a4a1a140a06e224e45, Linux 903733782f3ae28a2f7fe4dfb47c7fe3e079a528

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-22072 being exploited?

There is no confirmed exploitation: CVE-2025-22072 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-22072?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-22072?

Linux \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< 880e7b3da2e765c1f90c94c0539be039e96c7062; \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< 324f280806aab28ef757aecc18df419676c10ef8; \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< 029d8c711f5e5fe8cf63e8a4a1a140a06e224e45; \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< 903733782f3ae28a2f7fe4dfb47c7fe3e079a528; \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< fc646a6c6d14b5d581f162a7e32999f789e3a3ac; \>= 877907d37da9694a34adc9dc3e2ce09400148cb5, \< c134deabf4784e155d360744d4a6a835b9de4dd4; Linux 2.6.22.

### Is there a fix for CVE-2025-22072?

Yes. Fixed in Linux 880e7b3da2e765c1f90c94c0539be039e96c7062, Linux 324f280806aab28ef757aecc18df419676c10ef8, Linux 029d8c711f5e5fe8cf63e8a4a1a140a06e224e45, Linux 903733782f3ae28a2f7fe4dfb47c7fe3e079a528. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-22072?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/880e7b3da2e765c1f90c94c0539be039e96c7062>
- patch: <https://git.kernel.org/stable/c/324f280806aab28ef757aecc18df419676c10ef8>
- patch: <https://git.kernel.org/stable/c/029d8c711f5e5fe8cf63e8a4a1a140a06e224e45>
- patch: <https://git.kernel.org/stable/c/903733782f3ae28a2f7fe4dfb47c7fe3e079a528>
- patch: <https://git.kernel.org/stable/c/fc646a6c6d14b5d581f162a7e32999f789e3a3ac>
- patch: <https://git.kernel.org/stable/c/c134deabf4784e155d360744d4a6a835b9de4dd4>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-22072>

HTML: <https://flawdb.com/CVE-2025-22072> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-22072>
