CRITICAL🇵🇱 Wersja polska

CVE-2026-30871

CVSS 9.5v4.0pub. 2026-03-19upd. 2026-03-24

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 parse_question function. The issue is triggered by PTR queries for reverse DNS domains (.in-addr.arpa and .ip6.arpa). DNS packets received on UDP port 5353 are expanded by dn_expand into an 8096-byte global buffer (name_buffer), which is then copied via an unbounded strcpy into a fixed 256-byte stack buffer when handling TYPE_PTR queries. The overflow is possible because dn_expand converts non-printable ASCII bytes (e.g., 0x01) into multi-character octal representations (e.g., \001), significantly inflating the expanded name beyond the stack buffer's capacity. A crafted DNS packet can exploit this expansion behavior to overflow the stack buffer, making the vulnerability reachable through normal multicast DNS packet processing. This issue has been fixed in versions 24.10.6 and 25.12.1.

🤖 AI Analysis
How it works

The parse_question function processes PTR queries for reverse DNS domains (.in-addr.arpa and .ip6.arpa) received via UDP on port 5353 (multicast DNS). Data from the packet is first expanded by the dn_expand function into a global buffer of 8096 bytes, and then copied without length checking (unbounded strcpy) to a stack buffer of only 256 bytes. The key mechanism is that dn_expand converts non-printable ASCII bytes (e.g., 0x01) into multi-character octal representations (e.g., \001), which significantly increases the size of the expanded name, exceeding the stack buffer capacity. An attacker can craft a DNS packet sent over the multicast network that will trigger this expansion and overflow the stack buffer.

Impact

A successful attack allows an attacker to remotely execute arbitrary code (RCE) on the device without authentication, which can lead to complete takeover of the router or embedded device running OpenWrt, as well as violation of confidentiality, integrity, and availability of the entire network.

Mitigation & patch

OpenWrt should be updated to version 24.10.6 or 25.12.1, in which the vulnerability has been fixed. Patches are available in the vendor's repositories at the addresses indicated in the references. As a temporary measure, it is worth considering restricting access to UDP port 5353 at the firewall level for untrusted network segments.

Who is affected

OpenWrt in all versions prior to 24.10.6 and 25.12.1 (embedded devices with mdns daemon listening on UDP port 5353)

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Openwrt

    OS
    Openwrt
    < 24.10.625.12.0 – 25.12.1 (excl.)
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
Memory
CWE
References

Related vulnerabilities

CVE-2026-62948CRITICAL9.6PL ✓same product

OpenWrt odhcpd: XSS przez wstrzyknięcie newline w nazwę hosta DHCPv6

CVE-2026-30872CRITICAL9.5PL ✓same product

Stack-based Buffer Overflow w mdns daemon OpenWrt — możliwy RCE

CVE-2025-20682CRITICAL9.8PL ✓same product

Out-of-bounds write w sterowniku WLAN AP MediaTek — privilege escalation

CVE-2025-20681CRITICAL9.8PL ✓same product

Out-of-bounds write w sterowniku WLAN AP MediaTek – privilege escalation

CVE-2025-20683CRITICAL9.8PL ✓same product

Out of bounds write w sterowniku wlan AP — eskalacja uprawnień na układach MediaTek