# CVE-2026-97521: gfs2: fix quota init duplicate scan

- Severity: not scored yet
- 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.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-09-24T16:05:21.667Z
- Modified: 2026-09-28T06:16:38.160Z
- Assigned by: Linux

## Description

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

gfs2: fix quota init duplicate scan

gfs2_quota_init() checks for duplicate quota_change IDs while holding
qd_lock and the quota hash bucket bitlock. That path used
gfs2_qd_search_bucket(), which takes a lockref reference via
lockref_get_not_dead().

On PREEMPT_RT this may sleep, which is not allowed under the bucket
bitlock, triggering "sleeping function called from invalid context".

Use a no-ref bucket lookup in this path, then continue duplicate
handling without taking a lockref there.

Refactor gfs2_qd_search_bucket() to build on top of the no-ref helper
so lookup traversal stays in one place.

This patch fixes a bug reported by syzbot.

(As written by CVE List.)

## Affected

- Linux Linux: from de0d95c26c41c1776e4d23b1a8b3f2bcfd1dae5f before 7fdcf16e5e14e11028f5bcaa6d25075eb5e876a0; from de0d95c26c41c1776e4d23b1a8b3f2bcfd1dae5f before 812a766e2b0a8f4d094393fad13475c57f5f86db; from de0d95c26c41c1776e4d23b1a8b3f2bcfd1dae5f before b99a1f0f18ee50445907f55069e88bcfd8947383; 6.11 (not affected: before 6.11; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/7fdcf16e5e14e11028f5bcaa6d25075eb5e876a0>
- <https://git.kernel.org/stable/c/812a766e2b0a8f4d094393fad13475c57f5f86db>
- <https://git.kernel.org/stable/c/b99a1f0f18ee50445907f55069e88bcfd8947383>

## Sources

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

---

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