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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-08-22 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2025-38659, DEBIAN-CVE-2025-38659
- Record: https://cvemate.com/vulnerability/CVE-2025-38659 · JSON: https://cvemate.com/vulnerability/CVE-2025-38659/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.196%, percentile 9.724%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 140)

- debian linux (Debian): \< 6.1.170-1 \| \< 6.12.43-1 \| \< 6.16.3-1
- ubuntu linux (Ubuntu): \< 5.15.0-186.196 \| \< 6.8.0-100.100
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1112.119 \| \< 6.8.0-1046.49
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1112.119~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): \< 6.14.0-1017.17~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1046.49~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1112.119+fips1 \| \< 6.8.0-1046.49+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1117.126 \| \< 6.8.0-1046.52
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1117.126~20.04.1

## References (first 20 of 47)

- <https://git.kernel.org/stable/c/69cf5699a402ee7ae1be53954dc2ae652c0a053c>
- <https://git.kernel.org/stable/c/6ebe17b359bead383581f729e43f591c1c36e159>
- <https://git.kernel.org/stable/c/1a91ba12abef628b43cada87478328274d988e88>
- <https://git.kernel.org/stable/c/f5426ffbec971a8f7346a57392d3a901bdee5a9b>
- <https://git.kernel.org/stable/c/6784367b2f3cd7b89103de35764f37f152590dbd>
- <https://git.kernel.org/stable/c/97c94c7dbddc34d353c83b541b3decabf98d04af>
- <https://git.kernel.org/stable/c/deb016c1669002e48c431d6fd32ea1c20ef41756>
- <https://ubuntu.com/security/CVE-2025-38659>
- <https://www.cve.org/CVERecord?id=CVE-2025-38659>
- <https://git.kernel.org/linus/deb016c1669002e48c431d6fd32ea1c20ef41756>
- <https://ubuntu.com/security/notices/USN-7879-1>
- <https://ubuntu.com/security/notices/USN-7879-2>
- <https://ubuntu.com/security/notices/USN-7880-1>
- <https://ubuntu.com/security/notices/USN-7879-3>
- <https://ubuntu.com/security/notices/USN-7879-4>
- <https://ubuntu.com/security/notices/USN-7934-1>
- <https://ubuntu.com/security/notices/USN-8028-1>
- <https://ubuntu.com/security/notices/USN-8028-2>
- <https://ubuntu.com/security/notices/USN-8031-1>
- <https://ubuntu.com/security/notices/USN-8028-3>

---

Data as of 2026-12-05T05:32:14.692Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
