CVE-2026-139658: pstore: reject persistent RAM zones too small for the buffer header

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

persistentrambuffermap() computes

prz->buffersize = size - sizeof(struct persistentrambuffer);

without checking that size is large enough to hold the header. A ramoops zone configured with a tiny size (e.g. ramoops.pmsgsize=1) underflows buffersize to a huge value, which defeats every bounds check in persistentramwrite() and persistentramwriteuser(); 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.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Configure ramoops.pmsg_size to be larger than the persistent RAM buffer header; do not set it to a tiny size such as 1.

    ramoops pmsg_size = larger than the persistent RAM buffer header

Event History

Nov 30, 2026
CVE Published
via MITRE·01:36 PM
Data Sourced
via MITRE·01:36 PM
Description

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs the ability to write to /dev/pmsg0 on a system whose ramoops persistent RAM zone is configured too small for the persistent RAM buffer header. The described example is ramoops.pmsg_size=1.

2

Are systems affected in the default configuration?

The available information does not state whether the default ramoops configuration creates an undersized zone. Exposure depends on a persistent RAM zone being configured at or below the size needed for the buffer header.

3

What can be done before applying the fix?

Avoid configuring tiny ramoops persistent RAM zones, particularly a pmsg zone such as ramoops.pmsg_size=1. Ensure each configured zone is larger than the persistent RAM buffer header and restrict access to /dev/pmsg0 where possible.

4

How can I determine whether a system is at risk?

Review the ramoops zone configuration, including ramoops.pmsg_size, for zones too small to hold the persistent RAM buffer header. Affected configurations allow writes to /dev/pmsg0 to copy data beyond the configured zone.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203