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.
Published: 2026-10-18
Score: 6 Medium
EPSS: n/a
KEV: No
Impact: Stack out-of-bounds write that can lead to local denial of service by crashing the host
Action: Apply Patch
AI Analysis

Impact

lwIP versions up to 2.2.1 contain a stack buffer overflow in the mDNS search response handler. An attacker on the same local network can send specially crafted multicast PTR or SRV DNS answers whose RDLENGTH fields are invalid, causing the 256‑byte stack buffer to be overwritten. This overflow corrupts adjacent stack memory, which may crash the device and interrupt services. The vulnerability is an out‑of‑bounds write (CWE‑121) that does not provide remote code execution but can disrupt availability for the target.

Affected Systems

All lwIP 2.2.1 and earlier implementations are affected. This includes embedded systems, IoT devices, routers, and other network appliances running the lwIP TCP/IP stack that enable mDNS service discovery. The flaw resides in the mdns.c source file of the lwIP project, and the vulnerability applies to any build that includes this code.

Risk and Exploitability

The CVSS base score is 6, indicating a moderate severity. No EPSS data is available, so the exploitation probability is uncertain, but the flaw is local and simple to trigger. The vulnerability is not listed in the CISA KEV catalog. Because the attack requires only local network traffic, the risk is confined to compromised LAN segments. An attacker can easily craft and send the malicious mDNS packets using standard tools or scripts. There are no authentication or privilege checks before processing the responses, so any device on the link can exploit it.

Generated by OpenCVE AI on October 18, 2026 at 13:35 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade lwIP to version 2.2.1 or later that includes the fix from commit ab2f69c7d8980c01cdd67ed4b23ac61118ed0205
  • If an upgrade is not immediately possible, disable the mDNS responder or remove the mdns_app module from the build to eliminate the vulnerable code path
  • Configure network devices to block multicast traffic on the local segment, preventing mDNS responses from reaching the target

Generated by OpenCVE AI on October 18, 2026 at 13:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 18 Oct 2026 12:45:00 +0000

Type Values Removed Values Added
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.
Title lwIP through 2.2.1 Stack Out-of-Bounds Write via mDNS Search Response Handler
First Time appeared Lwip Project
Lwip Project lwip
Weaknesses CWE-121
CPEs cpe:2.3:a:lwip_project:lwip:*:*:*:*:*:*:*:*
Vendors & Products Lwip Project
Lwip Project lwip
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H'}

cvssV4_0

{'score': 6, 'vector': 'CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Lwip Project Lwip
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-18T12:19:52.023Z

Reserved: 2026-10-18T12:00:07.926Z

Link: CVE-2026-112062

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T13:16:38.750

Modified: 2026-10-18T13:16:38.750

Link: CVE-2026-112062

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T13:45:14Z

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow