CVE-2026-139658
JSON

Not scored

pstore: reject persistent RAM zones too small for the buffer header

Severity
Not scored
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 404a6043385de17273624b076599669db5ad891f before 184af306c66bc32f95222fc20b9801425913da7a, from 404a6043385de17273624b076599669db5ad891f before 981d4e280d946bb9bb44d83a9dcfc349e94c7b00, from 404a6043385de17273624b076599669db5ad891f before b26d807702eadb46be730f5e96bfe7df0e656259, from 404a6043385de17273624b076599669db5ad891f before b1e677c18ba6c194fa247ac0f095417cf492a0eb, from 404a6043385de17273624b076599669db5ad891f before 1edcca0c7aed5dea45d625f1ef66e94d824b27db, from 404a6043385de17273624b076599669db5ad891f before ae15c01c2f7211eb475e2d376c5a8434937133c1, from 404a6043385de17273624b076599669db5ad891f before 34fd79e5551c756443a13a6dcd1b9eb5de012d1f, from 404a6043385de17273624b076599669db5ad891f before 1b30df8662ac85a6759be4332f3bec7e3cb28efc and 1 more
Not affected: before 3.4, from 5.10.275 up to 5.10.*, from 5.15.226 up to 5.15.*, from 6.1.193 up to 6.1.*, from 6.6.163 up to 6.6.*, from 6.12.119 up to 6.12.*
CVE List

References

Sources

SourceRecordLicence
CVE ListCVE-2026-139658 changed 2026-11-30CVE Terms of Use
NVDCVE-2026-139658 changed 2026-11-30Public domain