Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-53922 Overview
CVE-2026-53922 is an integer underflow and stack-based out-of-bounds write [CWE-121] in odhcpd, the DHCPv6, DHCPv4, and router-advertisement server used by OpenWrt. An unauthenticated attacker on the same link can craft a DHCPv6 RENEW message containing multiple IA_NA options to trigger an unsigned size_t underflow in dhcpv6_ia_handle_IAs(). The underflow disables subsequent length checks and permits attacker-controlled IA_ADDR serialization beyond the 512-byte pdbuf stack buffer in handle_client_request(). The stack canary terminates the process, but procd respawns it, so sustained traffic repeatedly disrupts DHCPv6 service.
Critical Impact
Adjacent-network attackers can cause recurring DHCPv6 denial of service by crashing odhcpd on OpenWrt routers through crafted RENEW packets.
Affected Products
- OpenWrt odhcpd at commit cfddd56 and earlier
- OpenWrt releases prior to v25.12.5
- Downstream distributions bundling vulnerable odhcpd builds
Discovery Timeline
- 2026-10-12 - CVE-2026-53922 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-53922
Vulnerability Analysis
The flaw lives in the DHCPv6 Identity Association (IA) handling path. An attacker first obtains two valid bindings via normal SOLICIT and REQUEST exchanges. The attacker then sends a RENEW containing multiple IA_NA options arranged in a specific order.
An earlier matched IA consumes most of the response buffer. An unmatched IA then invokes the build_ia() status branch, which writes and returns a NOBINDING response larger than the remaining buffer space. When dhcpv6_ia_handle_IAs() subtracts that over-return from an unsigned size_t, the counter wraps to a very large value.
The wrapped length disables subsequent bounds checks. A later matched IA then serializes attacker-controlled IA_ADDR data past the end of the 512-byte stack buffer pdbuf in handle_client_request(). The stack canary detects the corruption and aborts the process. According to the advisory, the observed configuration does not establish code execution.
Root Cause
Two defects combine. First, build_ia() writes the status option without verifying remaining buffer capacity. Second, dhcpv6_ia_handle_IAs() performs unsigned subtraction on buflen without checking whether the returned length exceeds it, producing an integer underflow [CWE-121].
Attack Vector
Exploitation requires link-local access to the DHCPv6 service, which is normally the LAN side of an OpenWrt router. No authentication or user interaction is required. Repeated malicious RENEW packets keep odhcpd in a crash-respawn loop and starve legitimate clients of DHCPv6 leases.
// Patch: bound handshake_len before pointer arithmetic (dhcpv6-ia.c)
if (handshake_len > buflen)
handshake_len = buflen;
buf += handshake_len;
buflen -= handshake_len;
response_len += handshake_len;
// Patch: verify remaining space before writing status option in build_ia()
if (buflen < ia_len + sizeof(o_status))
return 0;
memcpy(buf + ia_len, &o_status, sizeof(o_status));
ia_len += sizeof(o_status);
// Source: https://github.com/openwrt/odhcpd/commit/c6792bac3905d4bf726d914e9994f6d4b98c5b57
// Source: https://github.com/openwrt/odhcpd/commit/d168c27fb6a55a07ac4c888e09ff2f41e263d7b7
Detection Methods for CVE-2026-53922
Indicators of Compromise
- Repeated odhcpd crashes with *** stack smashing detected *** entries in logread or dmesg
- procd repeatedly respawning the odhcpd service in a short window
- DHCPv6 clients on the LAN failing to renew or acquire leases while link-local reachability is intact
- Unusual bursts of DHCPv6 RENEW messages carrying multiple IA_NA options from a single link-local source
Detection Strategies
- Monitor odhcpd process restart frequency through procd state and alert on abnormal rates
- Inspect DHCPv6 traffic on UDP port 547 for RENEW messages containing more than one IA_NA option
- Correlate stack canary abort messages in system logs with DHCPv6 service outages
Monitoring Recommendations
- Forward OpenWrt system logs to a central collector and alert on repeated odhcpd termination events
- Baseline normal DHCPv6 RENEW volumes per client and flag statistical outliers
- Track LAN DHCPv6 lease acquisition success rates as a service health signal
How to Mitigate CVE-2026-53922
Immediate Actions Required
- Upgrade affected devices to OpenWrt v25.12.5 or later, which includes the fixed odhcpd build
- If upgrade is not immediately possible, restrict LAN access to the DHCPv6 service to trusted hosts only
- Audit all OpenWrt-based appliances and downstream firmware for the vulnerable odhcpd version
Patch Information
OpenWrt released fixes across multiple commits in src/dhcpv6-ia.c, including bounds checks in build_ia() and corrected length arithmetic in dhcpv6_ia_handle_IAs(). Review the OpenWrt Security Advisory GHSA-7hcw-g2jh-pqv5, the odhcpd commit c6792ba, the odhcpd commit d168c27, and the OpenWrt v25.12.5 release for full details.
Workarounds
- Disable DHCPv6 server functionality on affected interfaces where IPv6 autoconfiguration is not required
- Use firewall rules to limit UDP port 547 traffic to known management segments
- Enforce LAN segmentation to reduce the population of hosts that can reach the vulnerable service
# Example: disable the DHCPv6 server on the LAN interface via UCI
uci set dhcp.lan.dhcpv6='disabled'
uci set dhcp.lan.ra='disabled'
uci commit dhcp
/etc/init.d/odhcpd restart
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

