CVE-2017-15873
Medium · 5.5CVSS
5.5
EPSS
1.3%
Published
Oct 24, 2017
CISA due date
—
Cloudanix analysis
A flaw in a common utility used to unpack compressed files can cause programs to crash when they try to open certain specially made files.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflow in get_next_block during bzip2 decompression allows an out-of-bounds write in memory.
Why it matters to the business
Applications using BusyBox to extract archives can crash or become unstable when handling specially crafted files, disrupting services that rely on archive handling.
How an attack unfolds
An attacker crafts a malicious bzip2 archive that triggers the integer overflow in the decompression routine; when the victim system processes the archive locally the overflow causes a write violation that can lead to denial of service.
How to fix it
Upgrade BusyBox to a version that resolves the integer overflow in decompress_bunzip2.c; rebuild any embedded images or distributions that bundle the vulnerable BusyBox binary.
How to confirm the fix worked
Confirm the installed BusyBox version is newer than 1.27.2 and test archive extraction against known trigger files; monitor for segmentation faults or crashes during decompression.
Typical attack path
- Craft a bzip2 archive containing values that overflow the block-size calculation in get_next_block
- Deliver the archive to a system running an affected BusyBox binary
- Trigger extraction or decompression of the archive via local user action or automated process
- Induce the write access violation resulting in application crash or instability
How to detect it
Review system and application logs for segmentation faults or crashes originating from BusyBox during archive extraction; inspect process core dumps or strace output for access violations in decompress_bunzip2 routines.
What your security team should do
- Identify all systems and containers using BusyBox 1.27.2 or earlier
- Prioritize upgrade of BusyBox in distributions and embedded devices
- Restrict untrusted archive processing until patches are applied
- Add archive-handling processes to crash-monitoring and alerting
The record
The get_next_block function in archival/libarchive/decompress_bunzip2.c in BusyBox 1.27.2 has an Integer Overflow that may lead to a write access violation.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.10 | busybox | 0 | 1.27.2-r4 |
| Alpine:v3.11 | busybox | 0 | 1.27.2-r4 |
| Alpine:v3.12 | busybox | 0 | 1.27.2-r4 |
| Alpine:v3.13 | busybox | 0 | 1.27.2-r4 |
| Alpine:v3.14 | busybox | 0 | 1.27.2-r4 |
| Alpine:v3.15 | busybox | 0 | 1.27.2-r4 |
| Alpine:v3.16 | busybox | 0 | 1.27.2-r4 |
| Alpine:v3.17 | busybox | 0 | 1.27.2-r4 |
| Alpine:v3.18 | busybox | 0 | 1.27.2-r4 |
| Alpine:v3.19 | busybox | 0 | 1.27.2-r4 |
| Alpine:v3.20 | busybox | 0 | 1.27.2-r4 |
| Alpine:v3.21 | busybox | 0 | 1.27.2-r4 |
| Alpine:v3.22 | busybox | 0 | 1.27.2-r4 |
| Alpine:v3.3 | busybox | 0 | 1.24.2-r2 |
| Alpine:v3.4 | busybox | 0 | 1.24.2-r13 |
| Alpine:v3.5 | busybox | 0 | 1.25.1-r1 |
| Alpine:v3.6 | busybox | 0 | 1.26.2-r9 |
| Alpine:v3.7 | busybox | 0 | 1.27.2-r4 |
| Alpine:v3.8 | busybox | 0 | 1.27.2-r4 |
| Alpine:v3.9 | busybox | 0 | 1.27.2-r4 |
| Debian:11 | busybox | 0 | 1:1.27.2-2 |
| Debian:12 | busybox | 0 | 1:1.27.2-2 |
| Debian:13 | busybox | 0 | 1:1.27.2-2 |
| Debian:8 | busybox | 0 | 1:1.22.0-9+deb8u2 |
| Debian:9 | busybox | 0 | 1:1.22.0-19+deb9u1 |
| SUSE:Enterprise Storage 6 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Enterprise Storage 7 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15-ESPOS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15-LTSS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP3 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP4 | busybox | 0 | 1.35.0-150400.3.3.1 |
| SUSE:Linux Enterprise Real Time 15 SP2 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | busybox | 0 | 1.35.0-4.3.1 |
| SUSE:Linux Enterprise Server 12 SP3-BCL | busybox | 0 | 1.35.0-4.3.1 |
| SUSE:Linux Enterprise Server 12 SP4-LTSS | busybox | 0 | 1.35.0-4.3.1 |
| SUSE:Linux Enterprise Server 12 SP5 | busybox | 0 | 1.35.0-4.3.1 |
| SUSE:Linux Enterprise Server 15 SP1-BCL | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server 15 SP2-BCL | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server 15 SP2-LTSS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server 15-LTSS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | busybox | 0 | 1.35.0-4.3.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | busybox | 0 | 1.35.0-4.3.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Manager Proxy 4.1 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Manager Retail Branch Server 4.1 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Manager Server 4.1 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:OpenStack Cloud 9 | busybox | 0 | 1.35.0-4.3.1 |
| SUSE:OpenStack Cloud Crowbar 9 | busybox | 0 | 1.35.0-4.3.1 |
| Ubuntu:14.04:LTS | busybox | 0 | 1:1.21.0-1ubuntu1.4 |
| Ubuntu:16.04:LTS | busybox | 0 | 1:1.22.0-15ubuntu1.4 |
| Ubuntu:18.04:LTS | busybox | 0 | 1:1.27.2-1ubuntu4 |
| Ubuntu:18.04:LTS | busybox | 0 | 1:1.27.2-2ubuntu3.2 |
| openSUSE:Leap 15.3 | busybox | 0 | 1.34.1-4.9.1 |
| openSUSE:Leap 15.3 | virtualbox | 0 | 6.1.34-lp153.2.27.2 |
| openSUSE:Leap 15.3 | virtualbox-kmp | 0 | 6.1.34-lp153.2.27.1 |
| openSUSE:Leap 15.4 | busybox | 0 | 1.35.0-150400.3.3.1 |
| openSUSE:Tumbleweed | busybox | 0 | 1.35.0-1.1 |
Related vulnerabilities
- CVE-2017-16544 In the add_match function in libbb/lineedit.c in BusyBox through 1.27.2, the tab… Also affects busybox
- CVE-2017-15874 archival/libarchive/decompress_unlzma.c in BusyBox 1.27.2 has an Integer Underflow that… Also affects busybox
- CVE-2022-30065 A use-after-free in Busybox 1.35-x's awk applet leads to denial of service and possibly… Also affects busybox
- CVE-2016-6301 The recv_and_process_client_pkt function in networking/ntpd.c in busybox allows remote… Also affects busybox
- CVE-2016-2148 Heap-based buffer overflow in the DHCP client (udhcpc) in BusyBox before 1.25.0 allows… Also affects busybox
- CVE-2016-2147 Integer overflow in the DHCP client (udhcpc) in BusyBox before 1.25.0 allows remote… Also affects busybox
- CVE-2024-58251 In netstat in BusyBox through 1.37.0, local users can launch of network application with… Also affects busybox
- CVE-2025-46394 In tar in BusyBox through 1.37.0, a TAR archive can have filenames hidden from a listing… Also affects busybox