In the Linux kernel, the following vulnerability has been resolved:
pstore/ram: fix buffer overflow in persistentramsave_old()
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:
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:
ramoopsgetnextprz() → persistentramsaveold()
Y > X: memcpy_fromio() overflows heap
Requirements:
Free and reallocate the buffer when the new size differs from the previously allocated size. This ensures old_log always has sufficient space for the data being copied.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46253.json"
}