Bug 1198092 - (CVE-2022-28391) VUL-0: CVE-2022-28391: busybox: arbitrary code execution if netstat is used to print a DNS PTR record's value to a VT compatible terminal
(CVE-2022-28391)
VUL-0: CVE-2022-28391: busybox: arbitrary code execution if netstat is used t...
Status: NEW
Classification: Novell Products
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents
unspecified
Other Other
: P3 - Medium : Major
: ---
Assigned To: Radoslav Kolev
Security Team bot
https://smash.suse.de/issue/327985/
CVSSv3.1:SUSE:CVE-2022-28391:7.5:(AV:...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-04-05 13:06 UTC by Robert Frohl
Modified: 2022-11-04 11:00 UTC (History)
8 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
stoyan.manolov: needinfo? (radoslav.kolev)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Frohl 2022-04-05 13:06:19 UTC
CVE-2022-28391

BusyBox through 1.35.0 allows remote attackers to execute arbitrary code if
netstat is used to print a DNS PTR record's value to a VT compatible terminal.
Alternatively, the attacker could choose to change the terminal's colors.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-28391
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28391
https://git.alpinelinux.org/aports/plain/main/busybox/0002-nslookup-sanitize-all-printed-strings-with-printable.patch
https://gitlab.alpinelinux.org/alpine/aports/-/issues/13661
https://git.alpinelinux.org/aports/plain/main/busybox/0001-libbb-sockaddr2str-ensure-only-printable-characters-.patch
Comment 1 Robert Frohl 2022-04-05 13:23:11 UTC
tracking as affected, based on busybox.SuSE.config/busybox.config:

- SUSE:SLE-11:Update/busybox
- SUSE:SLE-12:Update/busybox
- SUSE:SLE-15:Update/busybox
- SUSE:SLE-15-SP4:Update/busybox
- openSUSE:Factory/busybox
Comment 3 Radoslav Kolev 2022-07-19 16:02:29 UTC
I investigated this further, and the problem seems to only be present when busybox is build against musl. At least I couldn't reproduce the issue with our busybox package in carwos, based on SLE15-SP2. With the exact same DNS server config the issue is reproducible on Alpine Linux, which uses musl.