CVE-2026-23260: regmap: maple: free entry on mas_store_gfp() failure
In the Linux kernel, the following vulnerability has been resolved:
regmap: maple: free entry on masstoregfp() failure
regcachemaplewrite() allocates a new block ('entry') to merge adjacent ranges and then stores it with masstoregfp(). When masstoregfp() 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').
Affected Software
Remediation
Event History
Frequently Asked Questions
What level of access does an attacker need?
Exploitation requires local access and low privileges; no user interaction is required. The impact is limited to availability, as repeated triggering can leak kernel memory and potentially exhaust resources.
Under what condition is the memory leak triggered?
The issue occurs when regcache_maple_write() allocates an entry to merge adjacent ranges and mas_store_gfp() then fails. The failure path leaks the newly allocated entry rather than freeing it.
What is the remediation?
Apply the available kernel patch. The referenced stable commits contain the fix that frees the allocated entry when mas_store_gfp() fails.