Technical impact
An unchecked bounds check in the Linux kernel’s sw842_decompress function allows an attacker to write beyond the bounds of the destination buffer. By supplying specially crafted 842 compressed data, the function writes 2, 4 or 8 bytes for indexed copies and up to 7 bytes for short‐data templates without verifying that the caller’s buffer is large enough. This results in an unsigned underflow of the length counter and causes all subsequent bounds checks to pass, enabling continuous overwriting of memory beyond the intended destination.
Affected Systems
All Linux kernel versions that include the 842 decompression implementation, particularly those using zram’s compressed writeback path. The vulnerability can be triggered by manipulating the compressed data stored on a zram backing device.
Risk and Exploitability
Although no EPSS score or KEV listing is available, the flaw provides a memory corruption path that can lead to privilege escalation or system compromise. The attack requires the ability to influence the compressed data in a zram backing device; once executed, the kernel may crash or the attacker could gain elevated privileges. Because the exploit operates in kernel mode, it can be used for remote code execution on systems where the attacker can supply or modify zram data.