CVE-2026-139658
publishedpstore: reject persistent RAM zones too small for the buffer header
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux404a6043385de17273624b076599669db5ad891f to < 184af306c66bc32f95222fc20b9801425913da7a · 404a6043385de17273624b076599669db5ad891f to < 981d4e280d946bb9bb44d83a9dcfc349e94c7b00 · 404a6043385de17273624b076599669db5ad891f to < b26d807702eadb46be730f5e96bfe7df0e656259 · 404a6043385de17273624b076599669db5ad891f to < b1e677c18ba6c194fa247ac0f095417cf492a0eb · 404a6043385de17273624b076599669db5ad891f to < 1edcca0c7aed5dea45d625f1ef66e94d824b27db · 404a6043385de17273624b076599669db5ad891f to < ae15c01c2f7211eb475e2d376c5a8434937133c1 · 404a6043385de17273624b076599669db5ad891f to < 34fd79e5551c756443a13a6dcd1b9eb5de012d1f · 404a6043385de17273624b076599669db5ad891f to < 1b30df8662ac85a6759be4332f3bec7e3cb28efc · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.4 (affected) · 0 to < 3.4 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 404a6043385de17273624b076599669db5ad891f to < 184af306c66bc32f95222fc20b9801425913da7a (affected · git)404a6043385de17273624b076599669db5ad891f to < 981d4e280d946bb9bb44d83a9dcfc349e94c7b00 (affected · git)404a6043385de17273624b076599669db5ad891f to < b26d807702eadb46be730f5e96bfe7df0e656259 (affected · git)404a6043385de17273624b076599669db5ad891f to < b1e677c18ba6c194fa247ac0f095417cf492a0eb (affected · git)404a6043385de17273624b076599669db5ad891f to < 1edcca0c7aed5dea45d625f1ef66e94d824b27db (affected · git)404a6043385de17273624b076599669db5ad891f to < ae15c01c2f7211eb475e2d376c5a8434937133c1 (affected · git)404a6043385de17273624b076599669db5ad891f to < 34fd79e5551c756443a13a6dcd1b9eb5de012d1f (affected · git)404a6043385de17273624b076599669db5ad891f to < 1b30df8662ac85a6759be4332f3bec7e3cb28efc (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.4 (affected)0 to < 3.4 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/184af306c66bc32f95222fc20b9801425913da7a
- https://git.kernel.org/stable/c/1b30df8662ac85a6759be4332f3bec7e3cb28efc
- https://git.kernel.org/stable/c/1edcca0c7aed5dea45d625f1ef66e94d824b27db
- https://git.kernel.org/stable/c/34fd79e5551c756443a13a6dcd1b9eb5de012d1f
- https://git.kernel.org/stable/c/981d4e280d946bb9bb44d83a9dcfc349e94c7b00
- https://git.kernel.org/stable/c/ae15c01c2f7211eb475e2d376c5a8434937133c1
- https://git.kernel.org/stable/c/b1e677c18ba6c194fa247ac0f095417cf492a0eb
- https://git.kernel.org/stable/c/b26d807702eadb46be730f5e96bfe7df0e656259
Provider assertions
1Linux · cna
pstore: reject persistent RAM zones too small for the buffer header
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3f3fdffe07e9948ae6311c9efbab16895c56fc190e6d9a87149890679f9d4c09
- Ingested
- 30 Nov 2026, 13:43:49 UTC
- Source record
- Official CVE record