# CVE-2026-139022

- Bağlantı: https://www.allsafe.com.tr/cve-2026-139022/
- Yayımlanma: 2026-11-30T17:18:05+03:00
- Yazar: Postmaster

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.

Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme
ve üretici referansları için kaynak kaydı inceleyin.

Kaynak: [NIST NVD — özgün kaydı inceleyin ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-139022)
