# CVE-2025-38659: gfs2: No more self recovery

> 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.27% (percentile 13, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-08-22T16:01:02.448Z
- **Modified:** 2026-10-15T22:18:48.457Z

## Who should check

- Anyone running Linux \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< 69cf5699a402ee7ae1be53954dc2ae652c0a053c; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< 6ebe17b359bead383581f729e43f591c1c36e159; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< 1a91ba12abef628b43cada87478328274d988e88; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< f5426ffbec971a8f7346a57392d3a901bdee5a9b; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< 6784367b2f3cd7b89103de35764f37f152590dbd; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< 97c94c7dbddc34d353c83b541b3decabf98d04af; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< deb016c1669002e48c431d6fd32ea1c20ef41756
- Anyone running Linux 5.7

## Description

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

gfs2: No more self recovery

When a node withdraws and it turns out that it is the only node that has
the filesystem mounted, gfs2 currently tries to replay the local journal
to bring the filesystem back into a consistent state.  Not only is that
a very bad idea, it has also never worked because gfs2\_recover\_func()
will refuse to do anything during a withdraw.

However, before even getting to this point, gfs2\_recover\_func()
dereferences sdp-\>sd\_jdesc-\>jd\_inode.  This was a use-after-free before
commit 04133b607a78 ("gfs2: Prevent double iput for journal on error")
and is a NULL pointer dereference since then.

Simply get rid of self recovery to fix that.

## Affected and fixed versions

- Linux: \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< 69cf5699a402ee7ae1be53954dc2ae652c0a053c; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< 6ebe17b359bead383581f729e43f591c1c36e159; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< 1a91ba12abef628b43cada87478328274d988e88; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< f5426ffbec971a8f7346a57392d3a901bdee5a9b; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< 6784367b2f3cd7b89103de35764f37f152590dbd; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< 97c94c7dbddc34d353c83b541b3decabf98d04af; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< deb016c1669002e48c431d6fd32ea1c20ef41756 (cvelist)
- Linux: 5.7 (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-38659. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38659.md
Affected: Linux >= 601ef0d52e9617588fcff3df26953592f2eb44ac, < 69cf5699a402ee7ae1be53954dc2ae652c0a053c; >= 601ef0d52e9617588fcff3df26953592f2eb44ac, < 6ebe17b359bead383581f729e43f591c1c36e159; >= 601ef0d52e9617588fcff3df26953592f2eb44ac, < 1a91ba12abef628b43cada87478328274d988e88; >= 601ef0d52e9617588fcff3d…
Fixed in: Linux 69cf5699a402ee7ae1be53954dc2ae652c0a053c, Linux 6ebe17b359bead383581f729e43f591c1c36e159, Linux 1a91ba12abef628b43cada87478328274d988e88, Linux 6784367b2f3cd7b89103de35764f37f152590dbd, Linux 97c94c7dbddc34d353c83b541b3decabf98d04af

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-38659 being exploited?

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

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

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

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

Linux \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< 69cf5699a402ee7ae1be53954dc2ae652c0a053c; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< 6ebe17b359bead383581f729e43f591c1c36e159; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< 1a91ba12abef628b43cada87478328274d988e88; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< f5426ffbec971a8f7346a57392d3a901bdee5a9b; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< 6784367b2f3cd7b89103de35764f37f152590dbd; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< 97c94c7dbddc34d353c83b541b3decabf98d04af; \>= 601ef0d52e9617588fcff3df26953592f2eb44ac, \< deb016c1669002e48c431d6fd32ea1c20ef41756; Linux 5.7.

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

Yes. Fixed in Linux 69cf5699a402ee7ae1be53954dc2ae652c0a053c, Linux 6ebe17b359bead383581f729e43f591c1c36e159, Linux 1a91ba12abef628b43cada87478328274d988e88, Linux 6784367b2f3cd7b89103de35764f37f152590dbd, Linux 97c94c7dbddc34d353c83b541b3decabf98d04af. No fix listed yet: follow the vendor advisory.

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

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/1a91ba12abef628b43cada87478328274d988e88>
- patch: <https://git.kernel.org/stable/c/f5426ffbec971a8f7346a57392d3a901bdee5a9b>
- patch: <https://git.kernel.org/stable/c/6784367b2f3cd7b89103de35764f37f152590dbd>
- patch: <https://git.kernel.org/stable/c/97c94c7dbddc34d353c83b541b3decabf98d04af>
- patch: <https://git.kernel.org/stable/c/deb016c1669002e48c431d6fd32ea1c20ef41756>
- other: <https://git.kernel.org/stable/c/69cf5699a402ee7ae1be53954dc2ae652c0a053c>
- other: <https://git.kernel.org/stable/c/6ebe17b359bead383581f729e43f591c1c36e159>

## 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-38659>

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