CVE-2026-30872: OpenWrt Project has a Stack-based Buffer Overflow vulnerability via IPv6 reverse DNS lookup
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 matchipv6addresses 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 namebuffer 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 (INET6ADDRSTRLEN). 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 matchipv6addresses, potentially enabling remote code execution. This issue has been fixed in versions 24.10.6 and 25.12.1.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-30872?
CVE-2026-30872 has a high severity rating due to its potential to cause a stack-based buffer overflow.
How do I fix CVE-2026-30872?
To fix CVE-2026-30872, upgrade your OpenWrt installation to version 24.10.6 or later, or version 25.12.1 or later.
What versions are affected by CVE-2026-30872?
CVE-2026-30872 affects OpenWrt versions prior to 24.10.6 and 25.12.1.
What causes the vulnerability in CVE-2026-30872?
The vulnerability in CVE-2026-30872 is caused by a stack-based buffer overflow in the mdns daemon during IPv6 reverse DNS lookups.
Who is affected by CVE-2026-30872?
Users of OpenWrt versions prior to 24.10.6 and 25.12.1 are affected by CVE-2026-30872.