Skip to contentSkip to conversation

CVE-2026-23260: regmap: maple: free entry on mas_store_gfp() failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 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:

regmap: maple: free entry on mas_store_gfp() failure

regcache_maple_write() allocates a new block ('entry') to merge adjacent ranges and then stores it with mas_store_gfp(). When mas_store_gfp() fails, the new 'entry' remains allocated and is never freed, leaking memory.

Free 'entry' on the failure path; on success continue freeing the replaced neighbor blocks ('lower', 'upper').

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

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

	Fixed in 6.6.124 with commit d61171cf097156030142643942c217759a9cc806
	Fixed in 6.12.70 with commit 811b45e2d795d955bb7fd9c816b40036f4fde350
	Fixed in 6.18.10 with commit f08f2d2907675926ac5657b25f86d921f269602a
	Fixed in 6.19 with commit f3f380ce6b3d5c9805c7e0b3d5bc28d9ec41e2e8

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

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/base/regmap/regcache-maple.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/d61171cf097156030142643942c217759a9cc806
	https://git.kernel.org/stable/c/811b45e2d795d955bb7fd9c816b40036f4fde350
	https://git.kernel.org/stable/c/f08f2d2907675926ac5657b25f86d921f269602a
	https://git.kernel.org/stable/c/f3f380ce6b3d5c9805c7e0b3d5bc28d9ec41e2e8