# CVE-2026-63804: gfs2: fix use-after-free in gfs2_qd_dealloc

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `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.13%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-07-19T12:02:09.111Z
- Modified: 2026-11-06T17:18:34.403Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

gfs2: fix use-after-free in gfs2_qd_dealloc

gfs2_qd_dealloc(), called as an RCU callback from gfs2_qd_dispose(),
accesses the superblock object sdp through qd->qd_sbd after freeing qd.
It does so to decrement sd_quota_count and wake up sd_kill_wait.

However, by the time the RCU callback runs, gfs2_put_super() may have
already freed sdp via free_sbd().  This can happen when
gfs2_quota_cleanup() is called during unmount: it disposes of quota
objects via call_rcu() and then waits on sd_kill_wait with a 60-second
timeout.  If the timeout expires, or if gfs2_gl_hash_clear() triggers
additional qd_put() calls that schedule more RCU callbacks after the
wait completes, gfs2_put_super() will proceed to free the superblock
while RCU callbacks referencing it are still pending.

Add an rcu_barrier() before free_sbd() in gfs2_put_super() to ensure
all pending RCU callbacks (including gfs2_qd_dealloc) have completed
before the superblock is freed.

(As written by CVE List.)

## Affected

- Linux Linux: from a475c5dd16e57c570113eccba51955b5df8bb052 before 4fe388218826df8607ae41a6305df67db08a9093; from a475c5dd16e57c570113eccba51955b5df8bb052 before 8745d9f7e1682c39f0a1578895ac74205e2a6757; from a475c5dd16e57c570113eccba51955b5df8bb052 before b85ef03f726b15047a6fa6d11b639bdf6c0ee4f0; from a475c5dd16e57c570113eccba51955b5df8bb052 before 9d0d5ba20cad661f7f287d4c66d2c19022ce2fd0; from a475c5dd16e57c570113eccba51955b5df8bb052 before f9c9ec2c319f843b70ecdf939d48b52d189bc081; 6.6 (not affected: before 6.6; from 6.6.144 up to 6.6.*; from 6.12.95 up to 6.12.*; from 6.18.38 up to 6.18.*; from 7.1.3 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 6.6 before 6.6.144; from 6.7 before 6.12.95; from 6.13 before 6.18.38; from 6.19 before 7.1.3

## References

- <https://git.kernel.org/stable/c/4fe388218826df8607ae41a6305df67db08a9093> (patch)
- <https://git.kernel.org/stable/c/8745d9f7e1682c39f0a1578895ac74205e2a6757> (patch)
- <https://git.kernel.org/stable/c/b85ef03f726b15047a6fa6d11b639bdf6c0ee4f0> (patch)
- <https://git.kernel.org/stable/c/9d0d5ba20cad661f7f287d4c66d2c19022ce2fd0> (patch)
- <https://git.kernel.org/stable/c/f9c9ec2c319f843b70ecdf939d48b52d189bc081> (patch)

## Sources

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

---

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