Security Advisory

CVE-2016-2148: BusyBox udhcpc 6RD Option Heap Overflow

Last updated:
  • CVE-2016-2148

CVE-2016-2148 is a heap-based buffer overflow (CWE-119) in udhcpc, the BusyBox DHCP client, before 1.25.0: when it converts the 6rd option (code 212) of a DHCP reply to text, a long option overruns the heap buffer sized for it. NVD scores it 9.8. BusyBox 1.25.0 fixes it; older firmware needs the backport.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

27.1%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2016-2148 · Source: NVD

Affected components

ComponentCPEVersion range
BusyBox (udhcpc, networking/udhcp/dhcpc.c and common.c)cpe:2.3:a:busybox:busybox:*:*:*:*:*:*:*:*1.24.2 and earlier (NVD); fix 352f79a first in 1.25.0 (22 June 2016)
OpenWrt 15.05 (Chaos Calmer): busybox package and netifd DHCP handler—BusyBox 1.23.2 with no patch for this fix; netifd requests option 212 when 6rd support is installed; OpenWrt/LEDE 17.01.0 ships 1.25.1

What does this mean for affected devices?

NVD's description: "Heap-based buffer overflow in the DHCP client (udhcpc) in BusyBox before 1.25.0 allows remote attackers to have unspecified impact via vectors involving OPTION_6RD parsing." NVD's Primary score is CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) with CWE-119; the CPE configuration lists BusyBox up to and including 1.24.2. The record was published on 2017-02-09 (NVD).

Where is the overflow?

udhcpc hands each DHCP option to its script as an environment variable, and xmalloc_optname_optval() sizes that string from the option length. The 6rd option, code 212 (ip6rd in the script), carries a mask length, a prefix length, an IPv6 prefix and one or more IPv4 border relay addresses. Before the fix, the size table counted the option in 22-byte units while each extra 4-byte relay address adds a 16-character string, so a 6rd option with several relay addresses produced more text than the buffer held. Commit 352f79a of 2016-02-26, "udhcpc: fix OPTION_6RD parsing (could overflow its malloced buffer)", changes the unit to 12 bytes, enlarges the per-element string width and adds one element to the size estimate. Nico Golde disclosed it on oss-security on 2016-03-11 together with CVE-2016-2147, as a "heap overflow in OPTION_6RD parsing".

Which releases and firmware carry it?

The BusyBox news page lists the fix in 1.25.0 of 22 June 2016, labelled unstable; 1.24.2 does not contain it. udhcpc decodes option 212 only when it receives one, and OpenWrt asks for it: the OpenWrt 15.05 (Chaos Calmer) netifd DHCP handler passes -O 212 to udhcpc when the 6rd protocol script is installed, and that release pins BusyBox 1.23.2 with no patch for this commit. OpenWrt/LEDE 17.01.0 moved to 1.25.1. Debian fixed its 1.22.0 packages in jessie (DLA-1445-1) and stretch (DLA-2559-1), per the Debian security tracker. We found no vendor or CISA advisory naming a device for this CVE.

How do you fix or mitigate it?

Move to BusyBox 1.25.0 or later, or backport commit 352f79a. Turning off 6rd support where it is unused stops OpenWrt from requesting option 212, but only the patch removes the overflow. Our BusyBox firmware guide and DHCP client and server guide show how to find udhcpc and its options in an image, and the memory corruption fix guide covers heap overflows from undersized length estimates. Later udhcp flaws include CVE-2018-20679 and CVE-2019-5747.

CVE-2016-2148 is not in the CISA KEV catalog as of 2026-11-18 (catalog version 2026.11.17). FIRST EPSS gives it 0.27111, the 98th percentile, in the 2026-11-17 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • NVD: heap-based buffer overflow in udhcpc in BusyBox before 1.25.0, unspecified impact via OPTION_6RD parsing; Primary CVSS v3.1 9.8; CWE-119; CPE busybox <=1.24.2; published 2017-02-09. — NVD
  • Commit 352f79a (2016-02-26) 'udhcpc: fix OPTION_6RD parsing (could overflow its malloced buffer)': dhcp_option_lengths[OPTION_6RD] 22 -> 12, len_of_option_as_string widened, upper_length uses (len + optlen) / optlen; comment: each additional IPv4 address takes 4 bytes and appends a 16-byte string. In tag 1_25_0, not 1_24_2. — BusyBox (GitHub mirror)
  • BusyBox 1.24.2 common.c: OPTION_6RD code 0xd4 (212), name 'ip6rd'. — BusyBox (GitHub mirror)
  • oss-security 2016-03-11, Nico Golde: CVE-2016-2148 heap overflow in OPTION_6RD parsing. — oss-security
  • BusyBox news: 1.25.0 (22 June 2016, unstable) changes include 'udhcpc: fix OPTION_6RD parsing (could overflow its malloced buffer)'. — BusyBox
  • OpenWrt chaos_calmer netifd proto/dhcp.sh: [ "$iface6rd" != 0 -a -f /lib/netifd/proto/6rd.sh ] && append dhcpopts "-O 212"; busybox 1.23.2, no matching patch; v17.01.0 busybox 1.25.1. — OpenWrt (GitHub)
  • Debian security tracker: fixed in jessie 1:1.22.0-9+deb8u2 (DLA-1445-1), stretch 1:1.22.0-19+deb9u1 (DLA-2559-1), unstable 1:1.27.2-1. — Debian security tracker
  • CVE-2016-2148 is not in the CISA KEV catalog, version 2026.11.17 (1,782 entries), checked 2026-11-18. — CISA KEV
  • EPSS 0.27111, percentile 0.98081, dataset 2026-11-17. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. BusyBox commit 352f79a
  3. oss-security: two udhcpc (busybox) issues (2016-03-11)
  4. BusyBox news (release change logs)
  5. OpenWrt 15.05 netifd DHCP handler
  6. OpenWrt 15.05 busybox Makefile
  7. Debian security tracker
  8. CISA KEV
  9. FIRST EPSS

Frequently asked questions

Which BusyBox versions are affected by CVE-2016-2148?

NVD lists BusyBox up to and including 1.24.2. The fix, commit 352f79a, first shipped in 1.25.0 of 22 June 2016 (per NVD and the BusyBox news page).

What is OPTION_6RD and when does udhcpc parse it?

It is DHCP option 212, which configures IPv6 rapid deployment (6rd) tunnels, exported to the udhcpc script as ip6rd. udhcpc formats it when a reply carries it; OpenWrt 15.05 requests it with -O 212 when its 6rd protocol support is installed (per the BusyBox source and OpenWrt's netifd DHCP handler).

Why does NVD score CVE-2016-2148 at 9.8?

NVD rates it as a network-reachable heap overflow with no privileges or user interaction and high confidentiality, integrity and availability impact; its description says the impact is unspecified. Any host that can answer DHCP on the segment can send the option (per NVD).

Is CVE-2016-2148 in the CISA KEV catalog?

No, not as of 2026-11-18 (catalog version 2026.11.17). FIRST EPSS gives it 0.27111, the 98th percentile, in the 2026-11-17 dataset (per CISA KEV and FIRST EPSS).