CVE-2026-43124: pstore: ram_core: fix incorrect success return when vmap() fails
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
pstore: ram_core: fix incorrect success return when vmap() fails
In persistent_ram_vmap(), vmap() may return NULL on failure.
If offset is non-zero, adding offset_in_page(start) causes the function to return a non-NULL pointer even though the mapping failed. persistent_ram_buffer_map() therefore incorrectly returns success.
Subsequent access to prz->buffer may dereference an invalid address and cause crashes.
Add proper NULL checking for vmap() failures.
The Linux kernel CVE team has assigned CVE-2026-43124 to this issue.
Affected and fixed versions
===========================
Fixed in 5.10.252 with commit d47234840aeb4182ed3ee795c578b1dfa9cbd25b Fixed in 5.15.202 with commit 49918dd52615097529811d21ec6074dd02ebe77c Fixed in 6.1.165 with commit 8baa234181f632cabacf73e4834a910859e9fcc9 Fixed in 6.6.128 with commit 1da904e84de608907662ad8a51ba9c571d61e003 Fixed in 6.12.75 with commit 8d849adfbc3e98417fb541620568db1a759ef441 Fixed in 6.18.16 with commit 2c99326dc1c79b7ce3c8dd92929b5ce724ff70eb Fixed in 6.19.6 with commit 88d5b28f63c7aac1271784e3b800ed405d1cde75 Fixed in 7.0 with commit 05363abc7625cf18c96e67f50673cd07f11da5e9
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-43124
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:
fs/pstore/ram_core.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/d47234840aeb4182ed3ee795c578b1dfa9cbd25b https://git.kernel.org/stable/c/49918dd52615097529811d21ec6074dd02ebe77c https://git.kernel.org/stable/c/8baa234181f632cabacf73e4834a910859e9fcc9 https://git.kernel.org/stable/c/1da904e84de608907662ad8a51ba9c571d61e003 https://git.kernel.org/stable/c/8d849adfbc3e98417fb541620568db1a759ef441 https://git.kernel.org/stable/c/2c99326dc1c79b7ce3c8dd92929b5ce724ff70eb https://git.kernel.org/stable/c/88d5b28f63c7aac1271784e3b800ed405d1cde75 https://git.kernel.org/stable/c/05363abc7625cf18c96e67f50673cd07f11da5e9