CVE-2026-139022
In the Linux kernel, the following vulnerability has been resolved: lib/842: reject output overflows from index and short data The output length passed to sw842_decompress() is the caller's buffer capacity. Indexed copies write 2, 4 or 8 bytes and short-data templates write up to 7, but neither checks that capacity before writing and decrementing p->olen. Overwriting an undersized destination then underflows p->olen, which is unsigned, so every later bounds check in the stream passes. Subsequent operations keep writing past the destination, and a matching CRC lets sw842_decompress() return success with an output length larger than the capacity the caller supplied. This is reachable through zram's compressed writeback path. With 842 selected, targeted corruption of the compressed data on its backing device made a KASAN kernel report vmalloc-out-of-bounds writes in __do_index() and sw842_decompress() when zram read the page back. Check the remaining output before both operations and return -ENOSPC, matching the other output-producing templates.
Affected versions
Linux kernel versions
4.2
and later are affected. Fixed in
5.10.275,
5.15.226,
6.1.193,
6.6.163,
6.12.117,
6.18.63,
7.3.4,
7.4-rc1
and their respective stable series.
References
8 totalFrequently asked questions
-
What is CVE-2026-139022?
CVE-2026-139022 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 4.2 onward and has been patched in 5.10.275, 5.15.226, 6.1.193 and others. CVE-2026-139022 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2026-139022?
Yes. CVE-2026-139022 has been patched. Fixed versions include 5.10.275, 5.15.226, 6.1.193 and others. If you are running Linux kernel 4.2 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2026-139022 actively exploited?
No. CVE-2026-139022 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.