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 26DCB39C621 for ; Thu, 25 Jun 2026 09:46:45 +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=1782380806; cv=none; b=Xgx8WOy+LnKOnV8ZxHGTsge7azSlJsnPqkyDsdt4GodehI3XRcAAPeaUeZrm9oYnf6IZ3NPn1Dgs/AtZgvvCVXcIHpZ+r3JDHpVoaTMw8YNTrAaVKdK2B3ngJMja23Xh5jAU6JttXlcdGUCj1T/VMFzgbsdj9gK33slsi95cSsw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782380806; c=relaxed/simple; bh=m1/mrDARL2ogVtbpSO5yaZiDjhAl3fesV+mCX6rbMuE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oHj5N2IelYa7yttnyiRf34Hb8XFbbT2+7pAA8TqxKrD2NSyxdwNnrGO3vKduKyi32CWrFZNtdnkia/iMf8RCxr/aoD5cOUZAKxuj6bJ+01SgrWS1kEUcOhYZWj1S2hxbaWyoe/ePB5xqlkMYk3cRtiK8Z490LN3j6z5ZLoqkW5E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Zu4H/sd+; 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="Zu4H/sd+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8968E1F000E9; Thu, 25 Jun 2026 09:46:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782380805; bh=xC19x1QqJgHb5YRtrbfBZmBkJ71vhAAunAk6UKQx8eU=; h=From:To:Cc:Subject:Date:Reply-To; b=Zu4H/sd+m2LgzggSrfPlax6Js9bQT/dt7A7mL8j0+Q+OAkT3d82iTIbrsAPG6KsAE BZSf/1zCzs+OXMyIfU8KxXpkvkBfV7zSVOuH2bpztN1BE24+yuuQpbOHbOdt7/PwOZ 1TtzmPBQtEqslQeOTpLge1CPnHMKMPQLNHtnBwRg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53265: dm cache policy smq: check allocation under invalidate lock Date: Thu, 25 Jun 2026 09:41:53 +0100 Message-ID: <2026062517-CVE-2026-53265-35a8@gregkh> X-Mailer: git-send-email 2.54.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=4022; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=En3GD3Z8N6US9wi6J4RP/9q2lwZg4JHJf3ubOteqopw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2Lws7/5l9uj7/X+Uhky0M6Vuv6pcytK0w2b1yl9qRu N9x7TsdO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi8/IYFmz2avm3g0G71u9w y8rAhmNb7q7dco5hQdvPTcrFtx9rrok0/uq7QTrl9qmHGwA= 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: dm cache policy smq: check allocation under invalidate lock commit 2d1f7b65f5de ("dm cache policy smq: fix missing locks in invalidating cache blocks") added mq->lock around the destructive part of smq_invalidate_mapping(), but left the e->allocated check outside the critical section. That leaves a check-then-act race. Two concurrent invalidators can both observe e->allocated as true before either of them takes mq->lock. The first invalidator that acquires the lock removes the entry from the queues and hash table and then calls free_entry(), which clears e->allocated and puts the entry back on the free list. The second invalidator can then acquire mq->lock and continue with the stale result of the unlocked check. This can corrupt the SMQ queues or hash table by deleting an entry that is no longer on those structures. It can also hit the allocation check in free_entry() when the same entry is freed again. Move the allocation check under mq->lock so the predicate and the destructive operations are serialized by the same lock. The Linux kernel CVE team has assigned CVE-2026-53265 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.258 with commit 4991b5a08751e2e82488fb93ae08849b6aea10d9 and fixed in 5.10.259 with commit c242c7af2aecf0b538b8623bdb86b8b441da38d9 Issue introduced in 5.15.209 with commit 1b2bec4a7dcf5f00b7a1cbeeec8997841d783513 and fixed in 5.15.210 with commit 13da856c86fb8c2ccab95034fd77da1bb2c2a17c Issue introduced in 6.1.175 with commit 9a5fdfb9e57ec3a8ad2b8fce5e5ffa42d53b130e and fixed in 6.1.176 with commit d886945fcb0f8c9dc6b39928d7a96c95c587346c Issue introduced in 6.6.141 with commit ac5ee99443891bdb161f5539606a66a1b5e72542 and fixed in 6.6.143 with commit b4892561552d671bd8c4da5ebb70e9fbb1ec446e Issue introduced in 6.12.91 with commit 93627a29d4b66d4a2def938dfb8610cc80ae454b and fixed in 6.12.94 with commit 03ffe1112ed88bb3a9bd0b971549bf4d64bfc59a Issue introduced in 6.18.33 with commit c348ae47d8e65f06429fa41adce9ad986b696766 and fixed in 6.18.36 with commit 42ff6774ecd9d7f70d599cb71ff64373a1da4948 Issue introduced in 7.0.10 with commit 2b62d0611c9af14a16bddf22df2612b4f40eb5a1 and fixed in 7.0.13 with commit c57570fba24016ec25ec046ab44db39143fb7a64 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-53265 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: drivers/md/dm-cache-policy-smq.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/c242c7af2aecf0b538b8623bdb86b8b441da38d9 https://git.kernel.org/stable/c/13da856c86fb8c2ccab95034fd77da1bb2c2a17c https://git.kernel.org/stable/c/d886945fcb0f8c9dc6b39928d7a96c95c587346c https://git.kernel.org/stable/c/b4892561552d671bd8c4da5ebb70e9fbb1ec446e https://git.kernel.org/stable/c/03ffe1112ed88bb3a9bd0b971549bf4d64bfc59a https://git.kernel.org/stable/c/42ff6774ecd9d7f70d599cb71ff64373a1da4948 https://git.kernel.org/stable/c/c57570fba24016ec25ec046ab44db39143fb7a64 https://git.kernel.org/stable/c/d3f0a606b9f278ece8a0df626ded9c4044071235