CVE-2026-139658

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

No CVSS score yet EPSS 0.18%

Published 30 Nov 2026 Updated 30 Nov 2026 CNA: Linux

Check your servers for CVE-2026-139658

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139658 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.52% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 404a6043385de17273624b076599669db5ad891f, before 184af306c66bc32f95222fc20b9801425913da7a
affected from 404a6043385de17273624b076599669db5ad891f, before 981d4e280d946bb9bb44d83a9dcfc349e94c7b00
affected from 404a6043385de17273624b076599669db5ad891f, before b26d807702eadb46be730f5e96bfe7df0e656259
affected from 404a6043385de17273624b076599669db5ad891f, before b1e677c18ba6c194fa247ac0f095417cf492a0eb
affected from 404a6043385de17273624b076599669db5ad891f, before 1edcca0c7aed5dea45d625f1ef66e94d824b27db
affected from 404a6043385de17273624b076599669db5ad891f, before ae15c01c2f7211eb475e2d376c5a8434937133c1
affected from 404a6043385de17273624b076599669db5ad891f, before 34fd79e5551c756443a13a6dcd1b9eb5de012d1f
affected from 404a6043385de17273624b076599669db5ad891f, before 1b30df8662ac85a6759be4332f3bec7e3cb28efc
Other versions: unaffected
Linux
affected 3.4
unaffected before 3.4
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.119 up to and including 6.12.*
unaffected from 6.18.65 up to and including 6.18.*
unaffected from 7.3.6 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139658 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139658

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-139658
trivy image --scanners vuln IMAGE | grep CVE-2026-139658

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-139658 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.