CVE-2026-97521 is a vulnerability in Linux Kernel
Published on September 24, 2026
gfs2: fix quota init duplicate scan
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.
Products Associated with CVE-2026-97521
Want to know whenever a new CVE is published for Linux Kernel? stack.watch will email you.
Affected Versions
Linux:- Version 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and below 7fdcf16e5e14e11028f5bcaa6d25075eb5e876a0 is affected.
- Version 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and below 812a766e2b0a8f4d094393fad13475c57f5f86db is affected.
- Version 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and below b99a1f0f18ee50445907f55069e88bcfd8947383 is affected.
- Before 6.12.111 is affected.
- Before 6.18.53 is affected.
- Version 6.12.111, <= 6.12.* is unaffected.
- Version 6.18.53, <= 6.18.* is unaffected.
- Version 7.2, <= * is unaffected.