CVE-2026-139658

Source
https://cve.org/CVERecord?id=CVE-2026-139658
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139658.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139658
Downstream
Published
2026-11-30T13:36:47Z
Modified
2026-11-30T15:02:29Z
Summary
pstore: reject persistent RAM zones too small for the buffer header
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139658.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
404a6043385de17273624b076599669db5ad891f
Fixed
184af306c66bc32f95222fc20b9801425913da7a
Fixed
981d4e280d946bb9bb44d83a9dcfc349e94c7b00
Fixed
b26d807702eadb46be730f5e96bfe7df0e656259
Fixed
b1e677c18ba6c194fa247ac0f095417cf492a0eb
Fixed
1edcca0c7aed5dea45d625f1ef66e94d824b27db
Fixed
ae15c01c2f7211eb475e2d376c5a8434937133c1
Fixed
34fd79e5551c756443a13a6dcd1b9eb5de012d1f
Fixed
1b30df8662ac85a6759be4332f3bec7e3cb28efc

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139658.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.4.0
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139658.json"