Skip to contentSkip to conversation

CVE-2026-98867: dm-pcache: bound the logical key offset from persistent memory

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

dm-pcache: bound the logical key offset from persistent memory

cache_key_decode() takes a key's logical off from the cache device and later indexes req_key_tree->subtrees[] by it in get_subtree(). An off past the device forms a subtree pointer outside the array, which rb_insert() writes through during replay.

Reject a key of zero length, or whose off+len (computed in 64 bits) exceeds the device size, before it is used.

The Linux kernel CVE team has assigned CVE-2026-98867 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.18 with commit 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 and fixed in 6.18.52 with commit 3d5a87cb909c1f375f08065b20123fa5db5958d8
	Issue introduced in 6.18 with commit 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 and fixed in 7.2.10 with commit 10449703200076980704894c3d68d6796182371b
	Issue introduced in 6.18 with commit 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 and fixed in 7.3-rc1 with commit 97fc4b53dbe4a983fdf093243067fa6a64562307

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-98867

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_key.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/3d5a87cb909c1f375f08065b20123fa5db5958d8
	https://git.kernel.org/stable/c/10449703200076980704894c3d68d6796182371b
	https://git.kernel.org/stable/c/97fc4b53dbe4a983fdf093243067fa6a64562307