Description
lwIP through 2.2.1 contains a stack out-of-bounds write vulnerability in mdns_handle_response that allows adjacent attackers to corrupt stack memory by sending mDNS responses with invalid domain names. Attackers on the local link can send multicast PTR answers with oversized RDLENGTH or SRV answers with RDLENGTH below 6 during a service search, overflowing a 256-byte stack buffer and crashing the device.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| lwIP | lwIP | ≤ 2.2.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | lwip | No fix yet | — |
| Debian 13 | lwip | No fix yet | — |
| Debian 12 | lwip | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | lwip | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 26.04 LTS | lwip | No fix yet | — |
| Ubuntu Pro 24.04 LTS | lwip | No fix yet | — |
| Ubuntu Pro 22.04 LTS | lwip | No fix yet | — |
| Ubuntu Pro 20.04 LTS | lwip | No fix yet | — |
References
- https://hackmd.io/@haindpwn/lwip-mdns-search-result-domain-oob-write third-party-advisory
- https://github.com/lwip-tcpip/lwip/commit/ab2f69c7d8980c01cdd67ed4b23ac61118ed0205 patch
- https://github.com/lwip-tcpip/lwip/blob/STABLE-2_2_1_RELEASE/src/apps/mdns/mdns.c technical-description
- VulnCheck Advisory: lwIP through 2.2.1 Stack Out-of-Bounds Write via mDNS Search Response Handler third-party-advisory