[3.7] busybox: Multiple vulnerabilities (CVE-2017-15873, CVE-2017-15874, CVE-2017-16544)
CVE-2017-15873: Integer overflow in the get_next_block function
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.
CVE-2017-15874: Integer underflow in archival/libarchive/decompress_unlzma.c
archival/libarchive/decompress_unlzma.c in BusyBox 1.27.2 has an
Integer Underflow that leads to a read access violation.
CVE-2017-16544: Insufficient sanitization of filenames when autocompleting
In the add_match function in libbb/lineedit.c in BusyBox through
1.27.2, the tab autocomplete feature of the shell,
used to get a list of filenames in a directory, does not sanitize filenames and results in executing any escape
sequence in the terminal. This could potentially result in code execution, arbitrary file writes, or other attacks.
(from redmine: issue id 8187, created on 2017-11-22, closed on 2017-11-23)
main/busybox: include patch for CVE-2017-16544, CVE-2017-15873, CVE-2017-15874 I have created an automated tool at https://github.com/Xe/cve-2017-16544 that will test busybox's ash implementation for CVE-2017-16544. : https://www.twistlock.com/2017/11/20/cve-2017-16544-busybox-autocompletion-vulnerability/ CVE-2017-15873 and CVE-2017-15874 are fixed by their upstream patches. fixes #8187