CVE-2026-46253
pstore/ram: fix buffer overflow in persistent_ram_save_old()
Description
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: 0. Crash with a ramoops write of less-than-record-max-size bytes. 1. Reboot: ramoops registers, pstore_get_records(0) reads old crash, allocates old_log with size X 2. Crash handler registered, timer started (if pstore_update_ms >= 0) 3. Oops happens (non-fatal, system continues) 4. pstore_dump() writes oops via ramoops_pstore_write() size Y (>X) 5. pstore_new_entry = 1, pstore_timer_kick() called 6. System continues running (not a panic oops) 7. Timer fires after pstore_update_ms milliseconds 8. pstore_timefunc() → schedule_work() → pstore_dowork() → pstore_get_records(1) 9. ramoops_get_next_prz() → persistent_ram_save_old() 10. buffer_size() returns Y, but old_log is X bytes 11. 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.
INFO
Published Date :
June 3, 2026, 6:16 p.m.
Last Modified :
July 22, 2026, 8:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
Solution
- Reallocate memory if new size differs from old.
- Ensure sufficient space for copied data.
- Apply the kernel patch to persistent_ram_save_old().
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-46253.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-46253 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-46253
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-46253 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-46253 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Jul. 22, 2026
Action Type Old Value New Value Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: pstore/ram: corrige desbordamiento de búfer en persistent_ram_save_old() persistent_ram_save_old() puede ser llamada múltiples veces para la misma persistent_ram_zone (por ejemplo, a través de ramoops_pstore_read -> ramoops_get_next_prz para registros PSTORE_TYPE_DMESG). Actualmente, la función solo asigna prz->old_log cuando es NULL, pero actualiza incondicionalmente prz->old_log_size al tamaño de búfer actual y luego realiza memcpy_fromio() usando este nuevo tamaño. Si el tamaño del búfer ha crecido desde la primera asignación (lo que puede ocurrir en diferentes ciclos de arranque del kernel), esto lleva a: 1. Un desbordamiento de búfer de pila (escritura OOB) en las llamadas a memcpy_fromio() 2. Una lectura OOB posterior cuando ramoops_pstore_read() accede al búfer usando el old_log_size incorrecto (más grande) El splat de KASAN se vería similar a: BUG: KASAN: slab-out-of-bounds en ramoops_pstore_read+0x... Lectura de tamaño N en la dirección ... por la tarea ... Es probable que las condiciones sean extremadamente difíciles de alcanzar: 0. Fallo con una escritura de ramoops de menos de record-max-size bytes. 1. Reinicio: ramoops se registra, pstore_get_records(0) lee el fallo antiguo, asigna old_log con tamaño X 2. Gestor de fallos registrado, temporizador iniciado (si pstore_update_ms >= 0) 3. Ocurre un oops (no fatal, el sistema continúa) 4. pstore_dump() escribe el oops a través de ramoops_pstore_write() tamaño Y (>X) 5. pstore_new_entry = 1, se llama a pstore_timer_kick() 6. El sistema continúa ejecutándose (no es un oops de pánico) 7. El temporizador se activa después de pstore_update_ms milisegundos 8. pstore_timefunc() ? schedule_work() ? pstore_dowork() ? pstore_get_records(1) 9. ramoops_get_next_prz() ? persistent_ram_save_old() 10. buffer_size() devuelve Y, pero old_log es de X bytes 11. Y > X: memcpy_fromio() desborda la pila Requisitos: - existe un registro de fallo anterior que no llenó el tamaño del registro (casi imposible ya que el gestor de fallos escribe tanto como puede caber en el registro, limitado por el tamaño máximo del registro y el búfer kmsg casi siempre excede el tamaño máximo del registro) - pstore_update_ms >= 0 (deshabilitado por defecto) - Oops no fatal (el sistema sobrevive) Libera y reasigna el búfer cuando el nuevo tamaño difiere del tamaño previamente asignado. Esto asegura que old_log siempre tenga espacio suficiente para los datos que se están copiando. -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '201e4aca5aa179e6c69a4dcd36a3562e56b8d670', 'lessThan': '58bda5a1d1ee98254383ef34f76b2c35140513ea', 'versionType': 'git'}, {'status': 'affected', 'version': '201e4aca5aa179e6c69a4dcd36a3562e56b8d670', 'lessThan': '06d2c8bd108cea503f6f6e13e47495ed1085275f', 'versionType': 'git'}, {'status': 'affected', 'version': '201e4aca5aa179e6c69a4dcd36a3562e56b8d670', 'lessThan': '2fa9a047c6a50ec80c3890dd623b85e237f0d1fd', 'versionType': 'git'}, {'status': 'affected', 'version': '201e4aca5aa179e6c69a4dcd36a3562e56b8d670', 'lessThan': 'cff0ef043e16feb5a02307c8f9d0117a96c5587c', 'versionType': 'git'}, {'status': 'affected', 'version': '201e4aca5aa179e6c69a4dcd36a3562e56b8d670', 'lessThan': '9a6fc69a570c0780834246d52c856cc3dbc2605f', 'versionType': 'git'}, {'status': 'affected', 'version': '201e4aca5aa179e6c69a4dcd36a3562e56b8d670', 'lessThan': '4f73486ca822305c1cf5b8ebc0b53a6ab3801a81', 'versionType': 'git'}, {'status': 'affected', 'version': '201e4aca5aa179e6c69a4dcd36a3562e56b8d670', 'lessThan': '7cfe964e61c0ab667abd5f5b68e0acbf783efa4f', 'versionType': 'git'}, {'status': 'affected', 'version': '201e4aca5aa179e6c69a4dcd36a3562e56b8d670', 'lessThan': '5669645c052f235726a85f443769b6fc02f66762', 'versionType': 'git'}], 'programFiles': ['fs/pstore/ram_core.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3.5'}, {'status': 'unaffected', 'version': '0', 'lessThan': '3.5', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.252', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.202', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.165', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.128', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.75', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.14', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '6.19.4', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/pstore/ram_core.c'], 'defaultStatus': 'affected'}] -
Initial Analysis by [email protected]
Jun. 09, 2026
Action Type Old Value New Value Added CWE CWE-787 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.14 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 6.19.4 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.128 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.75 *cpe:2.3:o:linux:linux_kernel:3.5:-:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.202 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.165 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.5.1 up to (excluding) 5.10.252 *cpe:2.3:o:linux:linux_kernel:3.5:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:3.5:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:3.5:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:3.5:rc7:*:*:*:*:*:* Added Reference Type kernel.org: https://git.kernel.org/stable/c/06d2c8bd108cea503f6f6e13e47495ed1085275f Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/2fa9a047c6a50ec80c3890dd623b85e237f0d1fd Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/4f73486ca822305c1cf5b8ebc0b53a6ab3801a81 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/5669645c052f235726a85f443769b6fc02f66762 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/58bda5a1d1ee98254383ef34f76b2c35140513ea Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/7cfe964e61c0ab667abd5f5b68e0acbf783efa4f Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/9a6fc69a570c0780834246d52c856cc3dbc2605f Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/cff0ef043e16feb5a02307c8f9d0117a96c5587c Types: Patch -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 05, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 03, 2026
Action Type Old Value New Value Added Description 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: 0. Crash with a ramoops write of less-than-record-max-size bytes. 1. Reboot: ramoops registers, pstore_get_records(0) reads old crash, allocates old_log with size X 2. Crash handler registered, timer started (if pstore_update_ms >= 0) 3. Oops happens (non-fatal, system continues) 4. pstore_dump() writes oops via ramoops_pstore_write() size Y (>X) 5. pstore_new_entry = 1, pstore_timer_kick() called 6. System continues running (not a panic oops) 7. Timer fires after pstore_update_ms milliseconds 8. pstore_timefunc() → schedule_work() → pstore_dowork() → pstore_get_records(1) 9. ramoops_get_next_prz() → persistent_ram_save_old() 10. buffer_size() returns Y, but old_log is X bytes 11. 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. Added Reference https://git.kernel.org/stable/c/06d2c8bd108cea503f6f6e13e47495ed1085275f Added Reference https://git.kernel.org/stable/c/2fa9a047c6a50ec80c3890dd623b85e237f0d1fd Added Reference https://git.kernel.org/stable/c/4f73486ca822305c1cf5b8ebc0b53a6ab3801a81 Added Reference https://git.kernel.org/stable/c/5669645c052f235726a85f443769b6fc02f66762 Added Reference https://git.kernel.org/stable/c/58bda5a1d1ee98254383ef34f76b2c35140513ea Added Reference https://git.kernel.org/stable/c/7cfe964e61c0ab667abd5f5b68e0acbf783efa4f Added Reference https://git.kernel.org/stable/c/9a6fc69a570c0780834246d52c856cc3dbc2605f Added Reference https://git.kernel.org/stable/c/cff0ef043e16feb5a02307c8f9d0117a96c5587c