---
id: CVE-2026-97521
title: |-
  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
summary: |-
  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
  gfs…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <
    7fdcf16e5e14e11028f5bcaa6d25075eb5e876a0
  - >-
    Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <
    812a766e2b0a8f4d094393fad13475c57f5f86db
  - >-
    Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <
    b99a1f0f18ee50445907f55069e88bcfd8947383
  - Linux < 6.12.111
  - Linux < 6.18.53
  - Linux (all versions)
published: '2026-09-24'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T17:17:30.160'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-97521'
references:
  - url: 'https://git.kernel.org/stable/c/7fdcf16e5e14e11028f5bcaa6d25075eb5e876a0'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/812a766e2b0a8f4d094393fad13475c57f5f86db'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b99a1f0f18ee50445907f55069e88bcfd8947383'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
  - cve.org
ingestedAt: '2026-09-24T16:47:15.858Z'
epss: 0.00155
epssPercentile: 0.03877
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
