CVE-2026-100090

lib: decompress_bunzip2: fix integer overflow in run-length decoding

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

lib: decompress_bunzip2: fix integer overflow in run-length decoding

The RUNA/RUNB decoder in get_next_block() accumulates a run length into
the signed int t with no bound. runPos doubles per symbol, so t grows as
at least 2^n-1 and reaches INT_MAX after 31 RUNA symbols. The guard that
follows, dbufCount+t >= dbufSize, is itself a signed addition, and as the
kernel builds with -fno-strict-overflow it wraps negative once dbufCount
is nonzero, so the guard is skipped. while (t--) dbuf[dbufCount++] = uc
then writes INT_MAX entries into a buffer holding at most 900000. One
literal symbol ahead of the run is enough to make dbufCount nonzero.

Bound t to the block size as it is accumulated. t only grows within a
run, so the value tested never exceeds the final run length; any stream
that decodes today satisfies dbufCount+t < dbufSize at the flush, hence t
< dbufSize throughout, and no such stream is rejected. Because t grows as
at least 2^n-1 the bound trips by the 20th symbol, leaving runPos at most
2^19, so the following runPos <<= 1 cannot overflow either.

Analysis

AI-generated

Technical impact

A signed integer overflow occurs in the Bzip2 run‑length decoder inside the Linux kernel when decompressing a malformed archive. The offset variable accumulates an unbounded run length, causing a bounded guard to be bypassed and an out‑of‑bounds write of up to INT_MAX bytes into a small internal buffer. This memory corruption can be abused to overwrite kernel memory, potentially allowing an attacker to execute arbitrary code with kernel privileges. The exploitation surface is high because the vulnerable decoder is part of the core decompression library used by many kernel‑level operations and services that accept external input.

Affected Systems

All Linux kernel builds that compile the bunzip2 decompression code are affected. The CVE information lists the Linux kernel as the vendor; no specific version range is provided, so any kernel version prior to the applied fix in the upstream repository is considered vulnerable.

Risk and Exploitability

The CVSS score is not supplied, but the integer‑overflow to size flaw is generally considered critical for kernel code. The EPSS metric is not available, and the vulnerability is not listed in the CISA KEV catalog, indicating no confirmed widespread exploitation at the time of analysis. However, the flaw enables a local or remote attacker who can supply a malicious Bzip2 stream to a kernel service to cause memory corruption, leading to denial of service or privilege escalation. The attack vector is likely local or via a service that processes external compressed data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel release that includes the fix for decompress_bunzip2 integer overflow.
  • If an immediate kernel upgrade is not possible, recompile the kernel with address space layout randomization (ASLR) and stack canaries enabled to mitigate the impact of the overflow.
  • Restrict or monitor services that invoke Bzip2 decompression, ensuring they only process data from trusted sources; consider disabling or sandboxing such services until a patch is applied.

Generated by OpenCVE AI on November 30, 2026 at 16:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-680
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: lib: decompress_bunzip2: fix integer overflow in run-length decoding The RUNA/RUNB decoder in get_next_block() accumulates a run length into the signed int t with no bound. runPos doubles per symbol, so t grows as at least 2^n-1 and reaches INT_MAX after 31 RUNA symbols. The guard that follows, dbufCount+t >= dbufSize, is itself a signed addition, and as the kernel builds with -fno-strict-overflow it wraps negative once dbufCount is nonzero, so the guard is skipped. while (t--) dbuf[dbufCount++] = uc then writes INT_MAX entries into a buffer holding at most 900000. One literal symbol ahead of the run is enough to make dbufCount nonzero. Bound t to the block size as it is accumulated. t only grows within a run, so the value tested never exceeds the final run length; any stream that decodes today satisfies dbufCount+t < dbufSize at the flush, hence t < dbufSize throughout, and no such stream is rejected. Because t grows as at least 2^n-1 the bound trips by the 20th symbol, leaving runPos at most 2^19, so the following runPos <<= 1 cannot overflow either.
Title lib: decompress_bunzip2: fix integer overflow in run-length decoding
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-680

    Integer Overflow to Buffer Overflow

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:23 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM