{"id":"CVE-2026-30872","summary":"OpenWrt Project has a Stack-based Buffer Overflow vulnerability via IPv6 reverse DNS lookup","details":"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.","aliases":["GHSA-mpgh-v658-jqv5"],"modified":"2026-04-10T05:41:57.471872Z","published":"2026-03-19T21:56:23.472Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30872.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-121"]},"references":[{"type":"WEB","url":"https://github.com/openwrt/openwrt/releases/tag/v24.10.6"},{"type":"WEB","url":"https://github.com/openwrt/openwrt/releases/tag/v25.12.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30872.json"},{"type":"ADVISORY","url":"https://github.com/openwrt/openwrt/security/advisories/GHSA-mpgh-v658-jqv5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30872"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openwrt/openwrt","events":[{"introduced":"b1a74b1cde0dd9b4c07bb5ba7020f94967912f2d"},{"fixed":"d6115e42127481645ae7210c9d8ca1bd14313473"}],"database_specific":{"versions":[{"introduced":"25.12.0-rc1"},{"fixed":"25.12.1"}]}},{"type":"GIT","repo":"https://github.com/openwrt/openwrt","events":[{"introduced":"0"},{"fixed":"ec8eeaa8fbd3122b9b9e68b7db02707884a19c9c"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"24.10.6"}]}}],"versions":["reboot","v24.10.0","v24.10.0-rc1","v24.10.0-rc2","v24.10.0-rc3","v24.10.0-rc4","v24.10.0-rc5","v24.10.0-rc6","v24.10.0-rc7","v24.10.1","v24.10.2","v24.10.3","v24.10.4","v24.10.5","v25.12.0","v25.12.0-rc1","v25.12.0-rc2","v25.12.0-rc3","v25.12.0-rc4","v25.12.0-rc5"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-30872.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"}]}