Bug 1198092 (CVE-2022-28391)

Summary: 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
Product: [Novell Products] SUSE Security Incidents Reporter: Robert Frohl <rfrohl>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Major    
Priority: P3 - Medium CC: gabriele.sonnu, ncutler, smash_bz
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/327985/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-28391:7.5:(AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1199106    

Description Robert Frohl 2022-04-05 13:06:19 UTC

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.

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.