CVE-2026-30872 OpenWrt Project has a Stack-based Buffer Overflow vulnerability via IPv6 reverse DNS lookup
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
Description
OpenWrt Project is a Linux operating system targeting embedded devices. In versions prior to 24.10.6 and 25.12.1, the mdns daemon has a Stack-based Buffer Overflow vulnerability in the match_ipv6_addresses function, triggered when processing PTR queries for IPv6 reverse DNS domains (.ip6.arpa) received via multicast DNS on UDP port 5353. During processing, the domain name from name_buffer is copied via strcpy into a fixed 256-byte stack buffer, and then the reverse IPv6 request is extracted into a buffer of only 46 bytes (INET6_ADDRSTRLEN). Because the length of the data is never validated before this extraction, an attacker can supply input larger than 46 bytes, causing an out-of-bounds write. This allows a specially crafted DNS query to overflow the stack buffer in match_ipv6_addresses, potentially enabling remote code execution. This issue has been fixed in versions 24.10.6 and 25.12.1.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| openwrt | < 24.10.6; = < 24.10.6; = >= 25.12.0-rc1, < 25.12.1; >= 25.12.0, < 25.12.1 | 24.10.6, 25.12.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| openwrt | = >= 25.12.0-rc1, < 25.12.1 | No fix listed |
| openwrt | = < 24.10.6 | No fix listed |
| openwrt | < 24.10.6 | 24.10.6 |
| openwrt | >= 25.12.0, < 25.12.1 | 25.12.1 |
References
- https://github.com/openwrt/openwrt/security/advisories/GHSA-mpgh-v658-jqv5 vendor-advisory
- https://github.com/openwrt/openwrt/releases/tag/v24.10.6 release-notes
- https://github.com/openwrt/openwrt/releases/tag/v25.12.1 release-notes
- ENISA EUVD EUVD-2026-13249 third-party-advisory