busybox: backport cve-2017-16544 fix
authorJohn Crispin <john@phrozen.org>
Mon, 1 Jan 2018 10:46:03 +0000 (11:46 +0100)
committerJohn Crispin <john@phrozen.org>
Tue, 2 Jan 2018 06:14:08 +0000 (07:14 +0100)
commit7c0a2bc93077f52c033e406864b34af3a4fab245
treebf6531b889e1c23f6ba20b9525ba0cd1997d5d4a
parent0b1fa809d0e974398503a24e408c1209969711f7
busybox: backport cve-2017-16544 fix

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.

Fixes: FS#1181 - CVE-2017-16544:
Backport the patch from:
https://git.busybox.net/busybox/commit/?id=c3797d40a1c57352192c6106cc0f435e7d9c11e8
https://nvd.nist.gov/vuln/detail/CVE-2017-16544

Signed-off-by: Derek Werthmuller <thewerthfam@gmail.com>
Signed-off-by: John Crispin <john@phrozen.org>
package/utils/busybox/patches/600-cve-2017-16544.patch [new file with mode: 0644]