CVE-2023-53331

HIGH

Linux kernel - Out-of-bounds Write in pstore/ram Initialization

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: pstore/ram: Check start of empty przs during init After commit 30696378f68a ("pstore/ram: Do not treat empty buffers as valid"), initialization would assume a prz was valid after seeing that the buffer_size is zero (regardless of the buffer start position). This unchecked start value means it could be outside the bounds of the buffer, leading to future access panics when written to: sysdump_panic_event+0x3b4/0x5b8 atomic_notifier_call_chain+0x54/0x90 panic+0x1c8/0x42c die+0x29c/0x2a8 die_kernel_fault+0x68/0x78 __do_kernel_fault+0x1c4/0x1e0 do_bad_area+0x40/0x100 do_translation_fault+0x68/0x80 do_mem_abort+0x68/0xf8 el1_da+0x1c/0xc0 __raw_writeb+0x38/0x174 __memcpy_toio+0x40/0xac persistent_ram_update+0x44/0x12c persistent_ram_write+0x1a8/0x1b8 ramoops_pstore_write+0x198/0x1e8 pstore_console_write+0x94/0xe0 ... To avoid this, also check if the prz start is 0 during the initialization phase. If not, the next prz sanity check case will discover it (start > size) and zap the buffer back to a sane state. [kees: update commit log with backtrace and clarifications]

Scores

CVSS v3 7.8
EPSS 0.0015
EPSS Percentile 4.3%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-787
Status published
Products (31)
Linux/Linux < 5.0
Linux/Linux 265242d82a3c6a8bd9120d06b4801f8d7ae9a346 - c807ccdd812d18985860504b503899f3140a9549
Linux/Linux 3.18.133 - 3.19
Linux/Linux 30696378f68a9e3dad6bfe55938b112e72af00c2 - 25fb4e3402d46f425ec135ef6f09792a4c1b3003
Linux/Linux 30696378f68a9e3dad6bfe55938b112e72af00c2 - dc2f60de9a7d3efd982440117dab5579898d808c
Linux/Linux 30696378f68a9e3dad6bfe55938b112e72af00c2 - e95d7a8a6edd14f8fab44c777dd7281db91f6ae2
Linux/Linux 30696378f68a9e3dad6bfe55938b112e72af00c2 - e972231db29b5d1dccc13bf9d5ba55b6979a69ed
Linux/Linux 30696378f68a9e3dad6bfe55938b112e72af00c2 - f77990358628b01bdc03752126ff5f716ea37615
Linux/Linux 30696378f68a9e3dad6bfe55938b112e72af00c2 - fe8c3623ab06603eb760444a032d426542212021
Linux/Linux 30696378f68a9e3dad6bfe55938b112e72af00c2 - fedecaeef88899d940b69368c996e8b3b0b8650d
... and 21 more
Published Sep 16, 2025
Tracked Since Feb 18, 2026