Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DC90413791 for ; Thu, 24 Sep 2026 16:26:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790267219; cv=none; b=DwnLkhlpj534dRDqmkcba8jeYNlRtxzdz3ilI7feAxLbsGtFxjHNhZDGpMXjjb8N3HhVV0wz0CoO6XF0cDqXqyPxFjyl+F2fDvPzA6UcHKdw/WZMutxEpFgzI6Qxps+LGeE1wIUehUa7Di7U/JxNc/c+UnlfY1usacKCzkKgjcM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790267219; c=relaxed/simple; bh=wSb3SoyXfgnsJrcxGTo2oD7TlLMaxqxE6GXl5W7aqMU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uYl0/j2YL8KvEngg8JS9q6l14ijLTpJYfBPcTdYcJufoxUSWqHtd2uVM32eHybNRrKJk/2NpA0jVokwARoz0H4U9MwRYBAoWIDZAkCDDEg4nTO0TZ7jdPk2Hf1RvuILg1tdwHgAjrYyQlHpbx3fd0WMtg/qEHc5S6Jm4rgaDpgQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vRlNp7QV; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vRlNp7QV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D5221F000FF; Thu, 24 Sep 2026 16:26:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790267217; bh=DSFIgL+WXpg4ouNY/N1nh3IS712BQwVGNf1ZcxvRGOs=; h=From:To:Cc:Subject:Date:Reply-To; b=vRlNp7QV9/Fh6zTuTZMpimi8bDkTMFDUU/FTAo2b5dWSiwV3F2UHLpwjBR/0gZRC8 gkpvkXWFRownQaUnOC1EMH9IntOpInapOyPEudUS/13VBHt3uBrMD/xUc8eEXyBoUt HrMxrqqJvBsBu8KzNJoEKDI2Z/wegsJVUK0kYlnQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97521: gfs2: fix quota init duplicate scan Date: Thu, 24 Sep 2026 18:04:46 +0200 Message-ID: <2026092445-CVE-2026-97521-273f@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2344; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=n9JSklItV/Df+6bVBpF4c3ISQQtqr0bRA/HgbcTk3js=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPZdmfLmvWGV/Y4ePpacnn962+y9P71z48sexmSpTp kvu3+twtSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmEsLLsGBP4XRD0///Pyxp KNoYOWu3yuIJfocYFuzbqTcn8v3fzcdnxZ9MNdtnyGhwfiYA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-97521 to this issue. Affected and fixed versions =========================== Fixed in 6.12.111 with commit 7fdcf16e5e14e11028f5bcaa6d25075eb5e876a0 Fixed in 6.18.53 with commit 812a766e2b0a8f4d094393fad13475c57f5f86db Fixed in 7.2 with commit b99a1f0f18ee50445907f55069e88bcfd8947383 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-97521 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/gfs2/quota.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/7fdcf16e5e14e11028f5bcaa6d25075eb5e876a0 https://git.kernel.org/stable/c/812a766e2b0a8f4d094393fad13475c57f5f86db https://git.kernel.org/stable/c/b99a1f0f18ee50445907f55069e88bcfd8947383