regmap: maple: free entry on mas_store_gfp() failure
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f3f380ce6b3d5c9805c7e0b3d5bc28d9ec41e2e8, Kernel 6.6.124, Kernel 6.12.70 and 4 more.
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').
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=f033c26de5a5734625d2dd1dc196745fae186f1b <f3f380ce6b3d5c9805c7e0b3d5bc28d9ec41e2e8, >=6.4 <6.6.124, >=6.7 <6.12.70, =6.19, >=f033c26de5a5734625d2dd1dc196745fae186f1b <d61171cf097156030142643942c217759a9cc806, >=f033c26de5a5734625d2dd1dc196745fae186f1b <f08f2d2907675926ac5657b25f86d921f269602a, >=6.13 <6.18.10, =6.4, >=f033c26de5a5734625d2dd1dc196745fae186f1b <811b45e2d795d955bb7fd9c816b40036f4fde350 | f3f380ce6b3d5c9805c7e0b3d5bc28d9ec41e2e8, 6.6.124, 6.12.70, d61171cf097156030142643942c217759a9cc806, f08f2d2907675926ac5657b25f86d921f269602a, 6.18.10, 811b45e2d795d955bb7fd9c816b40036f4fde350 |
| linux-kernel: Kernel | >=6.13.0 <6.18.10, >=6.4.0 <6.6.124, >=6.7.0 <6.12.70 | 6.18.10, 6.6.124, 6.12.70 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket