CVE-2026-46253: pstore/ram: fix buffer overflow in persistent_ram_save_old()

Published Jun 3, 2026
·
Updated

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

pstore/ram: fix buffer overflow in persistentramsaveold()

persistentramsaveold() can be called multiple times for the same persistentramzone (e.g., via ramoopspstoreread -> ramoopsgetnextprz for PSTORETYPEDMESG records).

Currently, the function only allocates prz->oldlog when it is NULL, but it unconditionally updates prz->oldlogsize to the current buffer size and then performs memcpyfromio() using this new size. If the buffer size has grown since the first allocation (which can happen across different kernel boot cycles), this leads to:

1. A heap buffer overflow (OOB write) in the memcpyfromio() calls 2. A subsequent OOB read when ramoopspstoreread() accesses the buffer using the incorrect (larger) oldlogsize

The KASAN splat would look similar to: BUG: KASAN: slab-out-of-bounds in ramoopspstoreread+0x... Read of size N at addr ... by task ...

The conditions are likely extremely hard to hit:

0. Crash with a ramoops write of less-than-record-max-size bytes. 1. Reboot: ramoops registers, pstoregetrecords(0) reads old crash, allocates oldlog with size X 2. Crash handler registered, timer started (if pstoreupdatems >= 0) 3. Oops happens (non-fatal, system continues) 4. pstoredump() writes oops via ramoopspstorewrite() size Y (>X) 5. pstorenewentry = 1, pstoretimerkick() called 6. System continues running (not a panic oops) 7. Timer fires after pstoreupdatems milliseconds 8. pstoretimefunc() → schedulework() → pstoredowork() → pstoregetrecords(1) 9. ramoopsgetnextprz() → persistentramsaveold() 10. buffersize() returns Y, but oldlog is X bytes 11. Y > X: memcpyfromio() overflows heap

Requirements: - a prior crash record exists that did not fill the record size (almost impossible since the crash handler writes as much as it can possibly fit into the record, capped by max record size and the kmsg buffer almost always exceeds the max record size) - pstoreupdatems >= 0 (disabled by default) - Non-fatal oops (system survives)

Free and reallocate the buffer when the new size differs from the previously allocated size. This ensures oldlog always has sufficient space for the data being copied.

Affected Software

13 affected components
Linux Linux kernel
Linux Linux kernel>=3.5.1<5.10.252
Linux Linux kernel>=5.11<5.15.202
Linux Linux kernel>=5.16<6.1.165
Linux Linux kernel>=6.2<6.6.128
Linux Linux kernel>=6.7<6.12.75
Linux Linux kernel>=6.13<6.18.14
Linux Linux kernel>=6.19<6.19.4
Linux Linux kernel=3.5
Linux Linux kernel=3.5-rc4
Linux Linux kernel=3.5-rc5
Linux Linux kernel=3.5-rc6
Linux Linux kernel=3.5-rc7

Event History

Jun 3, 2026
CVE Published
via MITRE·03:49 PM
Data Sourced
via MITRE·03:49 PM
DescriptionSeverity
Data Sourced
via NVD·06:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-46253?

The severity of CVE-2026-46253 is rated as high with a CVSS score of 7.8.

2

How do I fix CVE-2026-46253?

To fix CVE-2026-46253, update the Linux kernel to a version that includes the patch for the buffer overflow in persistent_ram_save_old().

3

What type of vulnerability is CVE-2026-46253?

CVE-2026-46253 is classified as a buffer overflow vulnerability in the Linux kernel.

4

What impact does CVE-2026-46253 have on my system?

CVE-2026-46253 can lead to data corruption and possible execution of arbitrary code due to a buffer overflow.

5

When was CVE-2026-46253 published?

CVE-2026-46253 was published on June 3, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203