Skip to main content

Linux Kernel CVE-2026-46253

| EUVDEUVD-2026-34115 HIGH
Out-of-bounds Write (CWE-787)
2026-06-03 Linux GHSA-rwx9-m3pj-2mv2
7.8
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE
5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat
5.5 MEDIUM
qualitative

Primary rating from NVD.

CVSS VectorNVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Generated
Jun 05, 2026 - 07:26 vuln.today
CVSS changed
Jun 05, 2026 - 07:22 NVD
7.8 (HIGH)
Patch available
Jun 03, 2026 - 19:01 EUVD
CVE Published
Jun 03, 2026 - 15:49 nvd
UNKNOWN (no severity yet)
CVE Published
Jun 03, 2026 - 15:49 nvd
HIGH 7.8

DescriptionCVE.org

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

pstore/ram: fix buffer overflow in persistent_ram_save_old()

persistent_ram_save_old() can be called multiple times for the same persistent_ram_zone (e.g., via ramoops_pstore_read -> ramoops_get_next_prz for PSTORE_TYPE_DMESG records).

Currently, the function only allocates prz->old_log when it is NULL, but it unconditionally updates prz->old_log_size to the current buffer size and then performs memcpy_fromio() 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 memcpy_fromio() calls
  2. A subsequent OOB read when ramoops_pstore_read() accesses the buffer

using the incorrect (larger) old_log_size

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

The conditions are likely extremely hard to hit:

  1. Crash with a ramoops write of less-than-record-max-size bytes.
  2. Reboot: ramoops registers, pstore_get_records(0) reads old crash,

allocates old_log with size X

  1. Crash handler registered, timer started (if pstore_update_ms >= 0)
  2. Oops happens (non-fatal, system continues)
  3. pstore_dump() writes oops via ramoops_pstore_write() size Y (>X)
  4. pstore_new_entry = 1, pstore_timer_kick() called
  5. System continues running (not a panic oops)
  6. Timer fires after pstore_update_ms milliseconds
  7. pstore_timefunc() → schedule_work() → pstore_dowork() → pstore_get_records(1)
  8. ramoops_get_next_prz() → persistent_ram_save_old()
  9. buffer_size() returns Y, but old_log is X bytes
  10. Y > X: memcpy_fromio() 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)

  • pstore_update_ms >= 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 old_log always has sufficient space for the data being copied.

AnalysisAI

Heap buffer overflow in the Linux kernel's pstore/ram subsystem (persistent_ram_save_old function) allows local attackers with low privileges to trigger out-of-bounds writes and reads when the ramoops buffer size grows across boot cycles. The flaw affects Linux kernel versions from 3.5 onward and carries a CVSS 7.8 (High) rating, though exploitation requires a highly improbable chain of conditions across reboots. No public exploit identified at time of analysis, and EPSS is very low at 0.03%.

Technical ContextAI

The vulnerability resides in fs/pstore/ram_core.c within the persistent_ram_save_old() function, which is part of the pstore (persistent storage) ramoops backend used to preserve kernel crash logs across reboots in a reserved RAM region. The root cause is a classic CWE-122 (Heap-based Buffer Overflow) pattern: the function conditionally allocates prz->old_log only when NULL but unconditionally updates prz->old_log_size to the current buffer size, then performs memcpy_fromio() using the new (potentially larger) size against a previously sized smaller allocation. This affects the upstream Linux kernel (cpe:2.3:a:linux:linux) across multiple stable branches, and the fix frees and reallocates the buffer whenever the requested size differs from the prior allocation.

RemediationAI

Apply the vendor-released patch by upgrading to a fixed stable kernel: 5.10.252, 5.15.202, 6.1.165, 6.6.128, 6.12.75, 6.18.14, 6.19.4, or 7.0 mainline as appropriate for your branch, or pick up upstream commits such as 2fa9a047c6a50ec80c3890dd623b85e237f0d1fd from https://git.kernel.org/stable/. As a compensating control on unpatched systems, leave pstore_update_ms at its default (-1, disabled) - this prevents the periodic timer path that drives the second persistent_ram_save_old() call needed to trigger the overflow, with the side effect that you lose periodic pstore polling and must rely on reboot-time reads only. Distributions deploying ramoops on embedded/automotive/Android devices should track their vendor backports rather than waiting for distro-default rolls.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected

Share

CVE-2026-46253 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy