IT SBIT Services
Schneeberger
DEEN
CVE tracker

OpenWrt odhcpd: Stack buffer overflow in DHCPv6 IA reply handling

CVE-2026-53921Critical 9.8Public exploit

← All vulnerabilities

Summary

odhcpd, the DHCPv6, DHCPv4 and router advertisement server used by OpenWrt, contains two stack buffer overflows in the handling of DHCPv6 IA replies. A single unauthenticated UDP packet carrying many IA options can write past a fixed 512-byte stack buffer. Because odhcpd runs as root and embedded targets often lack stack canaries and ASLR, remote code execution as root is realistic. Public proof-of-concept code exists, but no confirmed in-the-wild exploitation was known at the time of the research notes.

Affected

  • OpenWrt odhcpd versions before 25.12 (CNA range)
  • OpenWrt releases older than 24.10.8 and 25.12.5 should be treated as vulnerable, as the 24.10.x branch was fixed separately
  • odhcpd is enabled by default on OpenWrt
  • Exposure: UDP port 547 (DHCPv6)

Fixed in

  • OpenWrt 25.12.5 and later
  • OpenWrt 24.10.8 and later
  • Upstream commits in 25.12 (d168c27, 6634b7a, 2a42d34) and master (d329a15, 0320032, 03dacc2)
  • No vendor-stated fixed odhcpd package version was found; check the installed odhcpd package version against the release notes.

Workaround

  • Upgrade is the primary remedy.
  • If upgrading is not possible immediately, disable odhcpd if IPv6 is not used (community recommendation, not from the vendor; verify that IPv6 still works).
  • Block UDP 547 on the WAN side and on untrusted segments.

Exploitation

  • Public proof-of-concept code exists for both overflow paths.
  • No confirmed in-the-wild exploitation as of late July 2026.
  • Not marked as known exploited in the sources reviewed; the CISA KEV catalogue was not checked directly.
  • CISA SSVC: exploitation poc, automatable yes, technical impact total.

Our recommendation

  • Inventory all OpenWrt devices and their release and odhcpd package versions.
  • Upgrade to OpenWrt 24.10.8, 25.12.5 or later.
  • Confirm that UDP 547 is not reachable from the WAN or from untrusted or guest segments.
  • Re-check the GHSA advisory and the CISA KEV catalogue in the coming weeks.

Public exploits

Links to third-party sites, not checked by us – exploit code can contain malware. Only use it in isolated test environments.

Research sources

Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 30 Oct 2026, 16:42.

Original description (NVD)

odhcpd is the DHCPv6, DHCPv4, and router-advertisement server used by OpenWrt. Prior to version 25.12, odhcpd's DHCPv6 IA response handler writes past the end of a fixed 512-byte stack buffer (pdbuf) when a single DHCPv6 REQUEST carries enough IA options to nearly exhaust the reply space. Two independent overflow sites exist in the same call chain, both reachable from the network via a single unauthenticated UDP packet. odhcpd runs as root on OpenWrt; embedded targets often lack stack canaries and ASLR, making code execution realistic. This issue has been patched in version 25.12.

NVD references (8)

Sources

The tracker combines official, freely usable data sources – updated continuously:

This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.

Affected? We can help.

We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.