CVE-2026-112062

lwIP 2.2.0 - 2.2.1 Stack Out-of-Bounds Write via mDNS Search Response Handler

Published Oct 18, 2026 CVSS 4.0 · 6 Medium EPSS < 1% KEV · Not listed
Description
lwIP 2.2.0 through 2.2.1, fixed in commit ab2f69c, 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.

Analysis

AI-generated

Technical impact

lwIP 2.2.0 through 2.2.1 contain a stack out‑of‑bounds write in the mDNS search response handler. An attacker on the local network can send multicast PTR or SRV responses with malformed RDLENGTH values that overflow a 256‑byte stack buffer. The overwritten stack memory can crash the device, resulting in a denial of service. This flaw is an out‑of‑bounds write (CWE‑121) and does not provide remote code execution.

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 moderate severity. The EPSS score is below 1 %, suggesting a low but nonzero exploitation probability. 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. Exploitation is straightforward: a local attacker can craft and send malicious mDNS packets using standard tools or scripts without authentication or privilege checks before processing the responses.

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 November 25, 2026 at 01:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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. lwIP 2.2.0 through 2.2.1, fixed in commit ab2f69c, 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 lwIP 2.2.0 - 2.2.1 Stack Out-of-Bounds Write via mDNS Search Response Handler
References
Type Values Removed Values Added
References
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Lwip
Lwip lwip
Vendors & Products Lwip
Lwip lwip
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'}

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 24, 2026, 4:59 PM
Reserved
Oct 18, 2026, 12:00 PM
Status
Awaiting Analysis
Published
Oct 18, 2026, 1:16 PM
Modified
Nov 24, 2026, 5:18 PM