Openwrt odhcpd
odhcpd: Stack buffer overflow in DHCPv6 IA reply serialization (2 independent sites)
Edge device · Router / network deviceknown edge product: openwrt odhcpd odhcpd: Stack buffer overflow in (high confidence)
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 25.12
Fixed in 25.12
Mitigation
Upgrade odhcpd to 25.12 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 87 days before publication; not in CISA KEV. First PoC: 0xBlackash/CVE-2026-53921 (created 28 Jul 2026, found by us: backfilled).
PoC repositories
Found on GitHub.4 PoCs
PoCs 4
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 0xBlackash/CVE-2026-53921 | 28 Jul 2026 −87 d | 2 | PoC |
| 0xredash/CVE-2026-53921 | 28 Jul 2026 −87 d | 2 | PoC |
| ashrafzaryouh/CVE-2026-53921 | 28 Jul 2026 −87 d | 2 | PoC |
| tc4dy/CVE-2026-53921-PoC-Exploit | 28 Jul 2026 −87 d | 6 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 4 PoC reposGET //{var}
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^//[^/?#]*(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-53921 openwrt odhcpd exploit attempt"; flow:established,to_server; http.method; content:"GET"; reference:url,poc.griffinguard.io/cve/CVE-2026-53921; classtype:web-application-attack; sid:9281408; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: openwrt odhcpd exploit attempt (CVE-2026-53921)
id: gg-pocmon-cve-2026-53921-9281408
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-53921. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-53921
logsource:
category: webserver
detection:
selection:
cs-method: GET
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.53921