BusyBox up to 1.23.1/1.4.x cmdline arp_main IFNAME memory corruption

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
5.1$0-$5k0.00

Summaryinfo

A vulnerability classified as critical was found in BusyBox up to 1.23.1/1.4.x. Affected is the function arp_main of the component cmdline. Such manipulation of the argument IFNAME leads to memory corruption. The attack must be carried out locally. There is no available exploit. Applying a patch is advised to resolve this issue.

Detailsinfo

A vulnerability, which was classified as critical, has been found in BusyBox up to 1.23.1/1.4.x. Affected by this issue is the function arp_main of the component cmdline. The manipulation of the argument IFNAME with an unknown input leads to a memory corruption vulnerability. Using CWE to declare the problem leads to CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. Impacted is confidentiality, integrity, and availability.

The weakness was presented 01/01/2017 by 0x721427D8 as SSD Advisory – BusyBox (local) cmdline stack buffer overwrite as confirmed advisory (Blog). The advisory is shared for download at blogs.securiteam.com. The public release was coordinated in cooperation with the vendor. The attack needs to be approached locally. The successful exploitation requires a simple authentication. There are known technical details, but no exploit is available. The following code is the reason for this vulnerability:

if (opts & (ARP_OPT_d | ARP_OPT_s)) {
   if (argv[0] == NULL)
      bb_error_msg_and_die("need host name");
   if (opts & ARP_OPT_s)
      return arp_set(argv);
   return arp_del(argv);
}
The advisory points out:
By providing an overly long string for param IFNAME while setting -D (read HW Address from IFACE) and -s (set new entry) a strcpy operation can be reached that allows to write past the stack buffer ifreq.ifr_name[IFANMESIZ] [5,6]

Applying a patch is able to eliminate this problem. The bugfix is ready for download at bugs.busybox.net. The advisory contains the following remark:

strcpy => strncpy(dst,src,n=sizeof(ifreq.ifr_name)-1) or less error prone but more overhead snprintf()

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Affected

  • BusyBox 1.3.x

Productinfo

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.3
VulDB Meta Temp Score: 5.1

VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Memory corruption
CWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: No

Availability: 🔍
Status: Not defined
Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Patch
Status: 🔍

0-Day Time: 🔍

Patch: bugs.busybox.net

Timelineinfo

01/01/2017 🔍
01/02/2017 +1 days 🔍
07/25/2019 +934 days 🔍

Sourcesinfo

Advisory: SSD Advisory – BusyBox (local) cmdline stack buffer overwrite
Researcher: 0x721427D8
Status: Confirmed
Coordinated: 🔍

GCVE (VulDB): GCVE-100-94808

Entryinfo

Created: 01/02/2017 10:18
Updated: 07/25/2019 11:40
Changes: 01/02/2017 10:18 (48), 07/25/2019 11:40 (1)
Complete: 🔍
Cache ID: 216::103

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!