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 8CF0356C624 for ; Fri, 11 Sep 2026 19:48:25 +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=1789156136; cv=none; b=mFOTy8NNiM6DXFN/pbcJA0dlqHy1g+O1BCRcY9ipvPE+q/18gvhU7Ctab4jKOd29hnW/3MogRfBb7tX+YCHl2o43eoHc/Z8GPhVLK1MCDfyrLD3tswSvOsglrXfTqb9FgneAI+nYAvYh7oUO1NMsIbDlslzFs1BypIc3iznbDag= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156136; c=relaxed/simple; bh=aEboN5Xrrrj8vf77M6HdAMS80CFpH7foxAr1l+FCIuY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ts+bW5EVy11VscOLN8lDfNOyVIevh3+y+49LqkeyIRHrhlvy2SYk+UpvwTCI0WVRdJ7b0VKhzj7og6yA2frXeZq6S/q8xg9ef17IcXIGBjYzbOD/Dg3Ym+XShSGbTQRKk6Jt1OZLsQOUsFAORsbO7xTDMAzwbFOa07FEyWD05I8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=r2EhzxsO; 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="r2EhzxsO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2ED231F00893; Fri, 11 Sep 2026 19:48:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789156105; bh=dYqqlKhN6tBPFmDitSMlsQvO+V6xiTO53xCez7BkxMk=; h=From:To:Cc:Subject:Date:Reply-To; b=r2EhzxsOXrQel8kFwd770BxFFVFz9WYVnnow+SkUwvo0xjQsM24cy0m3AAPW754Xw QrUvFMPyEdTOI/ejZ+ztG9S2l23RS1UgKPeh0U9fYPcOcEqbruwjCJul3EOPcwmlJ2 ZWpdzMVlpYrguE29xf1LS5/GU2fIAGXD2t93b9JI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80960: dm-pcache: validate on-media seg_num against the cache device size Date: Fri, 11 Sep 2026 21:41:06 +0200 Message-ID: <2026091141-CVE-2026-80960-398e@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=2821; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jwwCvQCkw6D7+1CJjOB+1WQ+lSKpYWYhBKwz59vJXNg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIq2cFpy9fb+XQ6xKI7Pz4+3O3R0zvqp98tXnz9iqo rFIQOdVRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkPw/Dgu1XNys/fTzp77bv K3bW9rfbbSlY6cQwP+HHp3tT+dYW92j9Slq7UzBxbrPZLAA= 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 on-media seg_num against the cache device size seg_num is read from the crc32c-only superblock, so whoever supplies the cache device on a table load (CAP_SYS_ADMIN) controls it. It sizes cache->segments[] and is the value every later on-media segment id is bounded against, yet it is never checked against the device. Because cache_dev->mapping is the direct map of the pmem, CACHE_DEV_SEGMENT() for a segment id past the device resolves to ordinary kernel memory beyond the mapping; a new-cache init reaching such an id has cache_seg_init() -> cache_dev_zero_range() memset() 12 KiB over that memory -- an out-of-bounds write into the kernel heap at table load. A zero seg_num makes the segment allocations ZERO_SIZE_PTR. Reject a seg_num that is zero, larger than the device can hold, or larger than PCACHE_CACHE_SEGS_MAX before it is used. The Linux kernel CVE team has assigned CVE-2026-80960 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 and fixed in 6.18.50 with commit 91b93fe5cf4d62d5ecc642a6c8f15a3c11b00e3c Issue introduced in 6.18 with commit 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 and fixed in 7.2.4 with commit e889c0ee81165fc90aad2979b51f930f77895703 Issue introduced in 6.18 with commit 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 and fixed in 7.3-rc1 with commit 62d92e45abe9e087370f9fc5d876b95673aced34 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-80960 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_dev.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/91b93fe5cf4d62d5ecc642a6c8f15a3c11b00e3c https://git.kernel.org/stable/c/e889c0ee81165fc90aad2979b51f930f77895703 https://git.kernel.org/stable/c/62d92e45abe9e087370f9fc5d876b95673aced34