{"id":"CVE-2026-139658","aliases":["CVE-2026-139658"],"related":[],"kind":"vulnerability","state":"published","title":"pstore: reject persistent RAM zones too small for the buffer header","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\npstore: reject persistent RAM zones too small for the buffer header\n\npersistent_ram_buffer_map() computes\n\n\tprz->buffer_size = size - sizeof(struct persistent_ram_buffer);\n\nwithout checking that size is large enough to hold the header.  A\nramoops zone configured with a tiny size (e.g. ramoops.pmsg_size=1)\nunderflows buffer_size to a huge value, which defeats every bounds\ncheck in persistent_ram_write() and persistent_ram_write_user(); a\nwrite to /dev/pmsg0 then copies user data far past the end of the zone\nand corrupts kernel memory.\n\nReject zones that are not larger than the buffer header.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\npstore: reject persistent RAM zones too small for the buffer header\n\npersistent_ram_buffer_map() computes\n\n\tprz->buffer_size = size - sizeof(struct persistent_ram_buffer);\n\nwithout checking that size is large enough to hold the header.  A\nramoops zone configured with a tiny size (e.g. ramoops.pmsg_size=1)\nunderflows buffer_size to a huge value, which defeats every bounds\ncheck in persistent_ram_write() and persistent_ram_write_user(); a\nwrite to /dev/pmsg0 then copies user data far past the end of the zone\nand corrupts kernel memory.\n\nReject zones that are not larger than the buffer header.","source":"cvelist"}],"published":"2026-11-30T13:36:47.337Z","modified":"2026-11-30T14:19:49.743Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"404a6043385de17273624b076599669db5ad891f","fixed":"184af306c66bc32f95222fc20b9801425913da7a","status":"affected"},{"type":"git","introduced":"404a6043385de17273624b076599669db5ad891f","fixed":"981d4e280d946bb9bb44d83a9dcfc349e94c7b00","status":"affected"},{"type":"git","introduced":"404a6043385de17273624b076599669db5ad891f","fixed":"b26d807702eadb46be730f5e96bfe7df0e656259","status":"affected"},{"type":"git","introduced":"404a6043385de17273624b076599669db5ad891f","fixed":"b1e677c18ba6c194fa247ac0f095417cf492a0eb","status":"affected"},{"type":"git","introduced":"404a6043385de17273624b076599669db5ad891f","fixed":"1edcca0c7aed5dea45d625f1ef66e94d824b27db","status":"affected"},{"type":"git","introduced":"404a6043385de17273624b076599669db5ad891f","fixed":"ae15c01c2f7211eb475e2d376c5a8434937133c1","status":"affected"},{"type":"git","introduced":"404a6043385de17273624b076599669db5ad891f","fixed":"34fd79e5551c756443a13a6dcd1b9eb5de012d1f","status":"affected"},{"type":"git","introduced":"404a6043385de17273624b076599669db5ad891f","fixed":"1b30df8662ac85a6759be4332f3bec7e3cb28efc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.4","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/184af306c66bc32f95222fc20b9801425913da7a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/981d4e280d946bb9bb44d83a9dcfc349e94c7b00","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b26d807702eadb46be730f5e96bfe7df0e656259","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b1e677c18ba6c194fa247ac0f095417cf492a0eb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1edcca0c7aed5dea45d625f1ef66e94d824b27db","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae15c01c2f7211eb475e2d376c5a8434937133c1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/34fd79e5551c756443a13a6dcd1b9eb5de012d1f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1b30df8662ac85a6759be4332f3bec7e3cb28efc","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139658","url":"https://www.cve.org/CVERecord?id=CVE-2026-139658","licence":"CVE Terms of Use","modified":"2026-11-30T13:36:47.337Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139658","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139658","licence":"Public domain","modified":"2026-11-30T14:19:49.743Z"}],"updatedAt":"2026-11-30T14:33:36.577Z","epss":{"score":0.00177,"percentile":0.07523,"date":"2026-12-01T12:00:22.000Z"}}