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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-08-22T16:01:02.448Z
- Modified: 2026-10-15T22:18:48.457Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 601ef0d52e9617588fcff3df26953592f2eb44ac before 69cf5699a402ee7ae1be53954dc2ae652c0a053c; from 601ef0d52e9617588fcff3df26953592f2eb44ac before 6ebe17b359bead383581f729e43f591c1c36e159; from 601ef0d52e9617588fcff3df26953592f2eb44ac before 1a91ba12abef628b43cada87478328274d988e88; from 601ef0d52e9617588fcff3df26953592f2eb44ac before f5426ffbec971a8f7346a57392d3a901bdee5a9b; from 601ef0d52e9617588fcff3df26953592f2eb44ac before 6784367b2f3cd7b89103de35764f37f152590dbd; from 601ef0d52e9617588fcff3df26953592f2eb44ac before 97c94c7dbddc34d353c83b541b3decabf98d04af; from 601ef0d52e9617588fcff3df26953592f2eb44ac before deb016c1669002e48c431d6fd32ea1c20ef41756; 5.7 (not affected: before 5.7; from 5.15.209 up to 5.15.*; from 6.1.167 up to 6.1.*; from 6.6.102 up to 6.6.*; from 6.12.42 up to 6.12.*; from 6.15.10 up to 6.15.*; from 6.16.1 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 5.7 before 6.6.102; from 6.7 before 6.12.42; from 6.13 before 6.15.10; from 6.16 before 6.16.1

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/69cf5699a402ee7ae1be53954dc2ae652c0a053c>
- <https://git.kernel.org/stable/c/6ebe17b359bead383581f729e43f591c1c36e159>
- <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> (patch)

## Sources

- CVE List: [CVE-2025-38659](https://www.cve.org/CVERecord?id=CVE-2025-38659), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-38659](https://nvd.nist.gov/vuln/detail/CVE-2025-38659), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-38659 · Whole record: https://cve.day/CVE-2025-38659.json · Rebuilt by cve.day 2026-11-25T22:59:03.548Z
