ESP-Protocols mDNS denial of service in DNS name compression parsing
espressif esp-protocols
espressif esp-protocols
| Product | Affected | Fixed in |
|---|---|---|
| espressif esp-protocols |
| No fix yet |
ESP-Protocols is a collection of protocol components for ESP-IDF. Prior to mDNS version 1.11.2, the `mdns` component follows DNS name-compression pointers recursively when parsing fully qualified domain names (FQDNs) in inbound mDNS packets without capping pointer-follow depth in `mdns_utils_read_fqdn()`. An unauthenticated attacker on the same link-local network can send a crafted packet to UDP port 5353 on an `ESP-IDF` device using `espressif/mdns` with mDNS enabled. Deep recursion exhausts the fixed-size stack of the mDNS FreeRTOS task, causing a controlled panic and reboot; persistent malicious traffic can cause a crash loop. No confidentiality or integrity impact has been demonstrated, and remote code execution is not claimed. This issue is fixed in mDNS version 1.11.2.
From the CVE record · GitHub_M
Before mDNS 1.11.2, the mdns component follows DNS compression pointers in inbound packets without limiting recursion depth. An unauthenticated attacker on the same link-local network can send a crafted packet to an ESP-IDF device with mDNS enabled, exhausting the mDNS task stack and causing a reboot; persistent traffic can cause a crash loop.
Check ESP-IDF devices using espressif/mdns versions before 1.11.2 with mDNS enabled.