Skip to content
Heist/ feed
Back to feed
UnratedFix available

gfs2: fix quota init duplicate scan

Type: advisorySources: OSV

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
Kernel
Affected versions
Not specified
Fixed versions
6.12.111, 6.18.53
CVEs
CVE-2026-97521
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 08:04 UTC · Revision 1

Source evidence

gfs2: fix quota init duplicate scan

core-osv · Original source

Published 24 Sept 2026, 16:05 UTC

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.

osv:CVE-2026-97521

Kernel

Fixed versions: 6.12.111, 6.18.53

Complete source record
{
  "id": "3b747a84b10b874ab946d5eec028a3b1cbd1d9d2b48e9f2238c8bc7ab510e0fe",
  "url": "https://osv.dev/vulnerability/CVE-2026-97521",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "gfs2: fix quota init duplicate scan",
    "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 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.",
    "evidence": "osv:CVE-2026-97521",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.111",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.53",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-97521",
      "aliases": [
        "CVE-2026-97521"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "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"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.11.0"
                },
                {
                  "fixed": "6.12.111"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.53"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97521.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.857442604Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/7fdcf16e5e14e11028f5bcaa6d25075eb5e876a0",
        "https://git.kernel.org/stable/c/812a766e2b0a8f4d094393fad13475c57f5f86db",
        "https://git.kernel.org/stable/c/b99a1f0f18ee50445907f55069e88bcfd8947383",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97521.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-97521",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97521.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-97521",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 501026,
  "published_at": "2026-09-24T16:05:21.667+00:00"
}