Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A7EE13DC4D6 for ; Fri, 24 Apr 2026 14:38:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041482; cv=none; b=jzLIbYBscUmlzPRoGA1p3vAoGYUgV4IdG8qowei4AVyTQ+Tq7pUHyqXDvuZIyqtzedxLbaqHa4KxL1v4LvlOuadbDykGi1S8JK7Ac7VQfas5FOk5nJDAot0kEZvIGnS3VdqxOMvAdRZanj+KIaMoGboIciPQxZUGcHwpjV5/HMU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041482; c=relaxed/simple; bh=afc3RpNFn2Kg355qliaO2Mgh+hC8rTQdWq3Atnn+K/k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bNtyH7zSjPRE0HAj9yxLAaOh65x8NII3UOSkeukVwTCcfvyo17emM/2wE87Kx1Egx4McLx3+DMdwMJoEGCBOAp0OwbR3+9FwVUs1GMP5Z9dabSbVOLEAwgNck9WiMwVOIB49p8T/IsRt7tnJBy2TxF7ZM03kqwysrVLMQzFS0Lw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Pbe7vbi0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Pbe7vbi0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2EACC19425; Fri, 24 Apr 2026 14:38:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041482; bh=afc3RpNFn2Kg355qliaO2Mgh+hC8rTQdWq3Atnn+K/k=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Pbe7vbi0ZJ87kSShKinsFtGzSaWmXpaOO5dvgtXtYrCqZwJMUW9XMf/6VtEqP8RZR YSYHuPQYW02rEsFwyJqY2sAgFsNtJ1E8g07KeRZ1uwaNhJPDKr7XSAyI7KKxRhZHxm YyLCBz63sswHkz1/qh4Dmi8CFe0yeu9OIEyycdlU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31556: xfs: scrub: unlock dquot before early return in quota scrub Date: Fri, 24 Apr 2026 16:36:00 +0200 Message-ID: <2026042457-CVE-2026-31556-9b84@gregkh> X-Mailer: git-send-email 2.53.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=2547; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wjnpsWq+MEm2JG8W8VERndOtZoDWn1sU7U89ypVmxrI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmv689O9N44e9LfI2c+ufMfThKfrLmWYcGDwvuHp9uWr FztsMnodkcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMhGcfw3yXkKCjLR6MkyZf 3c2z6d08rxUzzW4zzNOK+rrG59by6Rc/dlQ4lNjUvmHzswQA 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: xfs: scrub: unlock dquot before early return in quota scrub xchk_quota_item can return early after calling xchk_fblock_process_error. When that helper returns false, the function returned immediately without dropping dq->q_qlock, which can leave the dquot lock held and risk lock leaks or deadlocks in later quota operations. Fix this by unlocking dq->q_qlock before the early return. The Linux kernel CVE team has assigned CVE-2026-31556 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 7d1f0e167a067ed741dec08b7614d76893422b04 and fixed in 6.12.80 with commit e822f535273af0e8968eab7acc0cea0b90dd25af Issue introduced in 6.8 with commit 7d1f0e167a067ed741dec08b7614d76893422b04 and fixed in 6.18.21 with commit 3b0c3414b308e6822cda90bf99f7eac94d4cca2b Issue introduced in 6.8 with commit 7d1f0e167a067ed741dec08b7614d76893422b04 and fixed in 6.19.11 with commit d128fc0c5c2b19224927d4fd2a46c2fe6a1f606f Issue introduced in 6.8 with commit 7d1f0e167a067ed741dec08b7614d76893422b04 and fixed in 7.0 with commit 268378b6ad20569af0d1957992de1c8b16c6e900 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-31556 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/xfs/scrub/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/e822f535273af0e8968eab7acc0cea0b90dd25af https://git.kernel.org/stable/c/3b0c3414b308e6822cda90bf99f7eac94d4cca2b https://git.kernel.org/stable/c/d128fc0c5c2b19224927d4fd2a46c2fe6a1f606f https://git.kernel.org/stable/c/268378b6ad20569af0d1957992de1c8b16c6e900