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.
CVE-2026-97521
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-97521
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "de0d95c26c41c1776e4d23b1a8b3f2bcfd1dae5f",
"lessThan": "7fdcf16e5e14e11028f5bcaa6d25075eb5e876a0",
"versionType": "git"
},
{
"status": "affected",
"version": "de0d95c26c41c1776e4d23b1a8b3f2bcfd1dae5f",
"lessThan": "812a766e2b0a8f4d094393fad13475c57f5f86db",
"versionType": "git"
},
{
"status": "affected",
"version": "de0d95c26c41c1776e4d23b1a8b3f2bcfd1dae5f",
"lessThan": "b99a1f0f18ee50445907f55069e88bcfd8947383",
"versionType": "git"
}
],
"programFiles": [
"fs/gfs2/quota.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.11"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.11",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.12.111",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.53",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"fs/gfs2/quota.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-97521
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #2489 · Revision 1
- Added to Heist Feed
- Publisher date