CVE-2026-139022

lib/842: reject output overflows from index and short data

No CVSS score yet EPSS 0.21%

Published 30 Nov 2026 Updated 30 Nov 2026 CNA: Linux

Check your servers for CVE-2026-139022

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139022 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.0% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 2da572c959dd5815aef153cf62010b16a498a0d3, before 5f1cc5c7c2ac4f431519f06c9fe539846f0537e7
affected from 2da572c959dd5815aef153cf62010b16a498a0d3, before 19645460d0e23da2aad0bc78556cd2906d5e5338
affected from 2da572c959dd5815aef153cf62010b16a498a0d3, before e353f26dd53453919c3796c29f18d51118785208
affected from 2da572c959dd5815aef153cf62010b16a498a0d3, before c269cdad3c9c8d7b23bcaccb85d45d8ed4d17928
affected from 2da572c959dd5815aef153cf62010b16a498a0d3, before bf2fa75552d5962db8538278d282b454bd88dfff
affected from 2da572c959dd5815aef153cf62010b16a498a0d3, before a7c9d73df0489afb3b92a23ea326189237d5df67
affected from 2da572c959dd5815aef153cf62010b16a498a0d3, before b9652248b8d7142293edad46799dc80b56d29c04
affected from 2da572c959dd5815aef153cf62010b16a498a0d3, before 38ed7182f3491ec1449ff246551e11ad82adba45
Other versions: unaffected
Linux
affected 4.2
unaffected before 4.2
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.117 up to and including 6.12.*
unaffected from 6.18.63 up to and including 6.18.*
unaffected from 7.3.4 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139022 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139022

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-139022
trivy image --scanners vuln IMAGE | grep CVE-2026-139022

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-139022 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.