CVE-2026-139658
pstore: reject persistent RAM zones too small for the buffer header
Description
In the Linux kernel, the following vulnerability has been resolved: pstore: reject persistent RAM zones too small for the buffer header persistent_ram_buffer_map() computes prz->buffer_size = size - sizeof(struct persistent_ram_buffer); without checking that size is large enough to hold the header. A ramoops zone configured with a tiny size (e.g. ramoops.pmsg_size=1) underflows buffer_size to a huge value, which defeats every bounds check in persistent_ram_write() and persistent_ram_write_user(); a write to /dev/pmsg0 then copies user data far past the end of the zone and corrupts kernel memory. Reject zones that are not larger than the buffer header.
INFO
Published Date :
Nov. 30, 2026, 2:19 p.m.
Last Modified :
Nov. 30, 2026, 2:19 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Ensure zone size exceeds buffer header size.
- Apply kernel patches to reject small zones.
- Validate ramoops configuration for adequate size.
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-139658.
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-139658 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-139658
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-139658 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-139658 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.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 30, 2026
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: pstore: reject persistent RAM zones too small for the buffer header persistent_ram_buffer_map() computes prz->buffer_size = size - sizeof(struct persistent_ram_buffer); without checking that size is large enough to hold the header. A ramoops zone configured with a tiny size (e.g. ramoops.pmsg_size=1) underflows buffer_size to a huge value, which defeats every bounds check in persistent_ram_write() and persistent_ram_write_user(); a write to /dev/pmsg0 then copies user data far past the end of the zone and corrupts kernel memory. Reject zones that are not larger than the buffer header. Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/139xxx/CVE-2026-139658.json">CVE-2026-139658</a> Added Reference https://git.kernel.org/stable/c/184af306c66bc32f95222fc20b9801425913da7a Added Reference https://git.kernel.org/stable/c/1b30df8662ac85a6759be4332f3bec7e3cb28efc Added Reference https://git.kernel.org/stable/c/1edcca0c7aed5dea45d625f1ef66e94d824b27db Added Reference https://git.kernel.org/stable/c/34fd79e5551c756443a13a6dcd1b9eb5de012d1f Added Reference https://git.kernel.org/stable/c/981d4e280d946bb9bb44d83a9dcfc349e94c7b00 Added Reference https://git.kernel.org/stable/c/ae15c01c2f7211eb475e2d376c5a8434937133c1 Added Reference https://git.kernel.org/stable/c/b1e677c18ba6c194fa247ac0f095417cf492a0eb Added Reference https://git.kernel.org/stable/c/b26d807702eadb46be730f5e96bfe7df0e656259