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

Summary

CVECVE-2026-139658
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:19:49 UTC
Updated2026-11-30 14:19:49 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 404a6043385de17273624b076599669db5ad891f 184af306c66bc32f95222fc20b9801425913da7a git Not specified
CNA Linux Linux affected 404a6043385de17273624b076599669db5ad891f 981d4e280d946bb9bb44d83a9dcfc349e94c7b00 git Not specified
CNA Linux Linux affected 404a6043385de17273624b076599669db5ad891f b26d807702eadb46be730f5e96bfe7df0e656259 git Not specified
CNA Linux Linux affected 404a6043385de17273624b076599669db5ad891f b1e677c18ba6c194fa247ac0f095417cf492a0eb git Not specified
CNA Linux Linux affected 404a6043385de17273624b076599669db5ad891f 1edcca0c7aed5dea45d625f1ef66e94d824b27db git Not specified
CNA Linux Linux affected 404a6043385de17273624b076599669db5ad891f ae15c01c2f7211eb475e2d376c5a8434937133c1 git Not specified
CNA Linux Linux affected 404a6043385de17273624b076599669db5ad891f 34fd79e5551c756443a13a6dcd1b9eb5de012d1f git Not specified
CNA Linux Linux affected 404a6043385de17273624b076599669db5ad891f 1b30df8662ac85a6759be4332f3bec7e3cb28efc git Not specified
CNA Linux Linux affected 3.4 Not specified
CNA Linux Linux unaffected 3.4 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/b26d807702eadb46be730f5e96bfe7df0e656259 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/1b30df8662ac85a6759be4332f3bec7e3cb28efc 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ae15c01c2f7211eb475e2d376c5a8434937133c1 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/34fd79e5551c756443a13a6dcd1b9eb5de012d1f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/981d4e280d946bb9bb44d83a9dcfc349e94c7b00 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/184af306c66bc32f95222fc20b9801425913da7a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/1edcca0c7aed5dea45d625f1ef66e94d824b27db 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b1e677c18ba6c194fa247ac0f095417cf492a0eb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report