CVE-2026-42250Off-by-One Leading to Out-of-Bounds Write in bzip2
bzip2 contains an off‑by‑one error in the bzip2recover utility. When processing a specially crafted file, the application performs an out‑of‑bounds write to a global buffer, resulting in memory corruption and a crash (denial of service). This issue was fixed in bzip2 patch 35d122a3df8b0cc4082a4d89fdc6ee99f375fe67
What to do
Fixed builds are available from Ubuntu: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | bzip2 | Fix pending | UBUNTU-CVE-2026-42250 | |
| Ubuntu 26.04 | bzip2 | Fixed | 1.0.8-6ubuntu0.1 | UBUNTU-CVE-2026-42250 |
| Ubuntu 26.04 | clamav | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | bzip2 | Will not fix clamav has a vendored copy of bzip2 which is used by the nulsft/nsis scanner clamav doesn't ship the bzip2recover utility This issue is only a possible denial… | UBUNTU-CVE-2026-42250 | |
| Ubuntu 25.10 | clamav | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | bzip2 | Fixed | 1.0.8-5.1ubuntu0.1 | UBUNTU-CVE-2026-42250 |
| Ubuntu 24.04 | clamav | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | bzip2 | Fixed | 1.0.8-5ubuntu0.1 | UBUNTU-CVE-2026-42250 |
| Ubuntu 22.04 | clamav | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | bzip2 | Fix pending | 1.0.8-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-42250 |
| Ubuntu 18.04 | bzip2 | Fix pending | 1.0.6-8.1ubuntu0.2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-42250 |
| Ubuntu 16.04 | bzip2 | Fix pending | 1.0.6-8ubuntu0.2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-42250 |
| Ubuntu 14.04 | bzip2 | Fix pending | 1.0.6-5ubuntu0.1~esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-42250 |
| Debian 14 | bzip2 | Fix pending | DEBIAN-CVE-2026-42250 | |
| Debian 13 | bzip2 | Fix pending | DEBIAN-CVE-2026-42250 | |
| Debian 12 | bzip2 | Fix pending | DEBIAN-CVE-2026-42250 | |
| Red Hat Enterprise Linux 10 | bzip2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | bzip2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | bzip2-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | gjs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | gjs-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | goose | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | libkrun | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-sequoia-sq | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | sequoia-sq | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | trustee-guest-components | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | trustee-kbs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | bzip2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | bzip2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | bzip2-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | goose | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | trustee-guest-components | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | bzip2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | bzip2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | bzip2-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw-bzip2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw32-bzip2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw32-bzip2-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw64-bzip2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw64-bzip2-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mozjs60 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mozjs60-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | bzip2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | bzip2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | bzip2-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | bzip2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | bzip2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | bzip2-libs | Fix pending Fix deferred |
What the vendor says
As published in the CVE record by CERT-PL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- bzip2: affected: up to 1.0.8, 35d122a3df8b0cc4082a4d89fdc6ee99f375fe67 not affected
Vendor advisories:
- https://inbox.sourceware.org/bzip2-devel/20260528145407.293768-1-mark@klomp.org/ (vendor-advisory)
- https://sourceware.org/cgit/bzip2/commit/?id=35d122a3df8b0cc4082a4d89fdc6ee99f375fe67 (patch)
References
- https://cert.pl/en/posts/2026/05/CVE-2026-42250/
- https://sourceware.org/bzip2/
- https://inbox.sourceware.org/bzip2-devel/20260528145407.293768-1-mark@klomp.org/
- https://sourceware.org/cgit/bzip2/commit/?id=35d122a3df8b0cc4082a4d89fdc6ee99f375fe67
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.