CVE-2026-97521

Source
https://cve.org/CVERecord?id=CVE-2026-97521
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97521.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-97521
Downstream
Published
2026-09-24T16:05:21Z
Modified
2026-09-29T03:47:28Z
Summary
gfs2: fix quota init duplicate scan
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97521.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
de0d95c26c41c1776e4d23b1a8b3f2bcfd1dae5f
Fixed
7fdcf16e5e14e11028f5bcaa6d25075eb5e876a0
Fixed
812a766e2b0a8f4d094393fad13475c57f5f86db
Fixed
b99a1f0f18ee50445907f55069e88bcfd8947383

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97521.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.11.0
Fixed
6.12.111
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.53

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97521.json"