Technical impact
persistent_ram_buffer_map() in the Linux kernel wrongly calculates the buffer size for persistent RAM zones by subtracting the size of the struct header without checking that the zone is large enough, leading to an underflow that produces an oversized buffer_size. The inflated size bypasses all bounds checks in persistent_ram_write() and persistent_ram_write_user(); as a result, a write to /dev/pmsg0 copies user data far beyond the intended zone and corrupts kernel memory. This flaw can be used to overwrite arbitrary kernel addresses, potentially allowing a local attacker to gain escalated privileges.
Affected Systems
The vulnerability is present in the mainstream Linux kernel and affects any build that implements persistent RAM zones, such as the ramoops subsystem, before the upstream commit that rejects zones smaller than the struct header size. No specific kernel version is listed, so all kernels lacking the rejection logic can be impacted. Systems that enable persistent RAM or ramoops may therefore be vulnerable.
Risk and Exploitability
The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, indicating that public exploitation has not yet been reported. Attackers would typically need local access and write permission to the /dev/pmsg0 device node, making a local attack vector likely; remote exploitation would require a separate vulnerability to grant local write access. The CVSS score of 7.0 reflects a high risk, indicating that the kernel memory corruption could lead to full system compromise if exploited by a compromised local user.