CVE-2026-97521

gfs2: fix quota init duplicate scan

Published Sep 24, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The flaw lies in the GFS2 filesystem’s quota initialization routine where a duplicate quota_change check is performed while holding a hash bucket bitlock. Under a PREEMPT-RT kernel the routine may invoke a lockref function that is allowed to sleep, which is prohibited while the bitlock is held. This mismatch triggers a "sleeping function called from invalid context" fault that can cause a kernel panic. The defect, an instance of CWE-821, was discovered by fuzzing and was corrected by replacing the lockref lookup with a no‑reference bucket search, removing the prohibited sleep path. Based on the description, the likely attack vector is a local privileged user or a compromised root process that initiates GFS2 quota initialization under a PREEMPT-RT configuration.

Affected Systems

All Linux kernel releases that include the legacy GFS2 quota initialization path and are built with PREEMPT-RT enabled are affected. Any system that mounts a GFS2 filesystem with quota support before the patch is applied will be vulnerable. Distinguishing the exact version range is not provided, so any kernel containing the vulnerable logic should be considered at risk.

Risk and Exploitability

Based on the description, the likely attack vector is a local privileged user or compromised root process that initiates GFS2 quota initialization on a PREEMPT-RT enabled kernel. Because the vulnerability requires a preemptible real‑time kernel configuration and GFS2 quota support, the attack surface is confined to privileged local users or compromised root processes. An attacker can force a kernel panic, creating a denial‑of‑service scenario, but the flaw does not enable remote code execution or data exposure. No public exploit exists, the EPSS score is < 1%, and the vulnerability is not listed in CISA’s KEV catalog. The CVSS score of 5.5 reflects moderate risk. The overall risk is moderate for environments that run GFS2 with quotas on PREEMPT-RT kernels, while standard kernels without PREEMPT-RT are unaffected.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the gfs2 quota init duplicate scan fix; apply the upstream patch or use the distribution’s security release.
  • If an immediate update is not possible, disable GFS2 quota support or unmount affected filesystems, and avoid mounting GFS2 with quotas during the maintenance window to prevent the fault from occurring.
  • Configure kernel logging or monitor for "sleeping function called from invalid context" messages and set up alerts to detect the fault early; consider disabling PREEMPT-RT if the workload allows.

Generated by OpenCVE AI on October 1, 2026 at 11:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6528-1 linux security update
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-617
Type Values Removed Values Added
Weaknesses CWE-821
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-617
Type Values Removed Values Added
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.
Title gfs2: fix quota init duplicate scan
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-821

    Incorrect Synchronization

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Sep 28, 2026, 5:30 AM
Reserved
Sep 24, 2026, 4:01 PM
Status
Received
Published
Sep 24, 2026, 5:17 PM
Modified
Sep 28, 2026, 6:16 AM
Severity
Low
Public date
Sep 24, 2026, 12:00 AM