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 044FB57F756 for ; Fri, 11 Sep 2026 19:48:31 +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=1789156133; cv=none; b=uyS8RIPvT/Yv3sY1FU9YSvKyOeLYFRg7jq+24cDEcRS7ez0hitcfVKX/s8tPz8M0umlvz6+o7oIpI35WUDAiE191dA25WRQEme0Md5u2S8L7RAhXqJ1Q06t0RRnQRhLBT9yenZQDIjQs4B1ZF/yyfjT1/c/XWAhpiqW52KJzTAM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156133; c=relaxed/simple; bh=T0xr0YTiFzTeRmBrAS8kbmx4/0VL3JXMOKgSB3Ln5cU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HcjvQvBfPp/JxYMMreaSQ7ukgXsdqdKXEsOqRmZVvSbuFrH4FiGR6f4En+0D00NnVKgwvDi/TFHHhMhPJmJWIFoITqLu6qJIkUGy8X3inWtbV/Jpvb7uA+erTjwsOVKvhhw3mZzE31VauB0/JkKKnvn2Q3SZiTx86w1emIfmySU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2nwOF47X; 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="2nwOF47X" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42F8A1F0089C; Fri, 11 Sep 2026 19:48:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789156108; bh=DuaUW5dz+8NY3HsOXuzPKAxl09DpaP8dtTcP9oVFXQM=; h=From:To:Cc:Subject:Date:Reply-To; b=2nwOF47XdMjAhxm7sSVAP4zA9vTB1uOX6mry72ZaTDnYmvIgLmyt0gSMbvpJrwyzl SsTN9R+Zq/qjYUfgcVfW1jMgD3wJlylS1NJ+nwoBrBcot63c1wgX6D3fPBU9vyh3o3 kgBZkv+LQC26pukKtlTtsFEvH0dvqXnhbg/acObY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80961: dm-pcache: validate kset key_num and intra-segment bounds Date: Fri, 11 Sep 2026 21:41:07 +0200 Message-ID: <2026091142-CVE-2026-80961-9d94@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=3079; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1tl4frF6UnGvIHDRVZ8Dpg5LKtWz9tMXXm1gvwNw0eA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIq32es9oPlskVph1t2J/evSOR+UTlvLeumjN/nLS0 kSdhGK3jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI206GBXsO1pwSEzlw7Y4G 84Y8+bCdYZWLSxkWbBAW8bW8WTTP78P6e+LmeunHgrnyAA== 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-pcache: validate kset key_num and intra-segment bounds Two more fields decoded from the cache device go unbounded. The kset key_num drives cache_kset_crc() and the replay loop in cache_replay(), the writeback worker and the GC worker, but only the magic and a fixed-seed CRC are checked first, so a non-last kset whose key_num exceeds the PCACHE_KSET_KEYS_MAX buffer reads past its end before the CRC compare. A key's intra-segment offset and length in cache_key_decode() are taken verbatim, so a key running past its segment is replayed into the cache tree and the data CRC check and every later read hit then copy adjacent persistent memory into the caller's bio -- an out-of-bounds read that leaks to user space. Both fields are controlled by whoever supplies the cache device (CAP_SYS_ADMIN); the CRC seed is public. Add kset_onmedia_valid() to bound key_num before any kset read, and reject a key whose offset plus length, computed in 64 bits, exceeds the segment data_size. Valid metadata is unaffected. The Linux kernel CVE team has assigned CVE-2026-80961 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 and fixed in 6.18.50 with commit d8caf96040a06096276ab72f5e1e8547c014c564 Issue introduced in 6.18 with commit 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 and fixed in 7.2.4 with commit 5ac38f4b4862fad6e7270fde5c3356a822ce74ca Issue introduced in 6.18 with commit 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 and fixed in 7.3-rc1 with commit f11deb032fd84081e7831cffcba895d893054a22 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-80961 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-pcache/cache.h drivers/md/dm-pcache/cache_gc.c drivers/md/dm-pcache/cache_key.c drivers/md/dm-pcache/cache_writeback.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/d8caf96040a06096276ab72f5e1e8547c014c564 https://git.kernel.org/stable/c/5ac38f4b4862fad6e7270fde5c3356a822ce74ca https://git.kernel.org/stable/c/f11deb032fd84081e7831cffcba895d893054a22