Skip to main content

lwIP CVE-2026-112062

| EUVDEUVD-2026-103504 MEDIUM
Stack-based Buffer Overflow (CWE-121)
2026-10-18 VulnCheck GHSA-7m6v-7jf3-5x4h
6.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain adjacent local-link network access
  2. Delivery
    Wait for or trigger device mDNS service search
  3. Exploit
    Send malformed multicast PTR/SRV response
  4. Execution
    Overflow 256-byte stack domain buffer
  5. Impact
    Crash device (denial of service)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires (1) the lwIP MDNS application to be compiled in and enabled, and (2) the target device to be actively performing an mDNS service search when the attacker's response arrives - this service-search state is the specific trigger (reflected as AT:P) and is the primary limiting factor, not a mere timing nicety. The attacker must be on the same local link (AV:A) to send the multicast mDNS answer, but needs no authentication (PR:N) and no user interaction (UI:N). The concrete malicious inputs are a multicast PTR answer with oversized RDLENGTH, or an SRV answer with RDLENGTH below 6 (less than the fixed SRV header size), which drive an out-of-bounds write against the 256-byte stack domain buffer. Limiting factors: local-link adjacency requirement, dependence on the optional mDNS feature being active and in a search state, and affected versions being lwIP through 2.2.1.

Impact

This is a genuine but moderate-priority issue, not a top-tier emergency. The vendor-assigned CVSS 4.0 vector (AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H) scores 6.0 and the signals are internally consistent: exploitation is limited to the local link (AV:A) and requires a present attack condition (AT:P) - the target device must be actively performing an mDNS service search when the malicious response arrives. Impact is dominated by availability (VA:H - device crash) with only low integrity impact (VI:L, the bounded stack corruption) and no confidentiality impact (VC:N). Although CWE-121 (stack-based overflow) can in principle enable code execution, both the description ('crashing the device') and the VI:L/VC:N rating indicate the realistic, demonstrated outcome is a denial of service rather than reliable RCE; any RCE claim would be speculation beyond the provided data. No EPSS score was provided and the CVE is NOT in CISA KEV, so there is no evidence of active or widespread exploitation; VulnCheck reporting plus a public technical writeup raise the likelihood of a working exploit emerging, but POC/exploit-code availability is not confirmed in the input. Net: prioritize patching on embedded/IoT fleets reachable from untrusted local networks (guest Wi-Fi, shared LANs) that use lwIP's mDNS service discovery, but this is not a drop-everything remote-unauthenticated-internet-facing RCE.

Exploit ScenarioDerived

An attacker on the same local link (e.g., shared office/guest Wi-Fi or LAN segment) waits for or induces an lwIP-based embedded device to perform an mDNS service search, then sends a crafted multicast PTR answer with an oversized RDLENGTH (or an SRV answer with RDLENGTH below 6). The malformed domain data overflows the 256-byte stack buffer in mdns_handle_response, corrupting the stack and crashing the device. A detailed public technical writeup exists, but no confirmed exploit code is identified in the provided data.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 18, 2026

Stack-based out-of-bounds write in lwIP's mDNS response handler affects lwIP through 2.2.1 when the optional mDNS application is compiled in and the device is performing an mDNS service search. An unauthenticated attacker on the same local link can send a multicast PTR answer with an oversized RDLENGTH or an SRV answer with RDLENGTH below 6, corrupting a 256-byte stack buffer and causing a crash with possible limited integrity impact. Patch guidance is available via an upstream commit, no public exploit identified at time of analysis, and no CISA KEV entry is present; the assessed severity is moderate (CVSS 6.0).

RemediationAI

Apply the upstream lwIP fix in commit ab2f69c7d8980c01cdd67ed4b23ac61118ed0205, which adds RDLENGTH validation and bounded pbuf_copy_partial handling; because the input does not specify a tagged release version, confirm the patched release with the vendor advisory rather than assuming a version number. If immediate upgrade is not possible, compile out or disable the lwIP mDNS application/responder on devices that do not need service discovery, or isolate untrusted local-link hosts from devices running mDNS using VLAN/L2 segmentation or port-level restrictions; these workarounds reduce exposure but break mDNS-based discovery and can affect legitimate multicast service operation. Blocking UDP 5353 may reduce attack traffic but also disables mDNS, so prefer patching or feature removal where operationally feasible; see https://www.vulncheck.com/advisories/lwip-through-2.2.1-stack-out-of-bounds-write-via-mdns-search-response-handler.

Affected VersionsENISA

lwIP 0 ≤2.2.1

Affected Packages

euvd lwip no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

lwIP is an embedded TCP/IP stack widely used in constrained devices; its optional mDNS responder parses DNS resource records received from the local link. In mdns_handle_response, the domain-name handling for PTR and SRV answers uses attacker-controlled RDLENGTH to size a copy into a 256-byte stack buffer. A PTR answer with an oversized RDLENGTH or an SRV answer with RDLENGTH less than the 6-byte fixed SRV header can drive the length calculation out of bounds, a CWE-121 stack-based buffer overflow; the upstream patch ab2f69c adds an ans.rd_length < off check and uses pbuf_copy_partial with LWIP_MIN(MDNS_DOMAIN_MAXLEN, ...). The CPE cpe:2.3:a:lwip:lwip:*:*:*:*:*:*:*:* reflects affected lwIP releases through 2.2.1, with practical exposure limited to builds that enable the mDNS application and are in an active service-search state.

Know when Lwip gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.0 MEDIUM
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
vuln.today AI 5.9 MEDIUM

Adjacent-only (AV:A); AC:H because the device must be mid-mDNS-service-search; no auth or UI (PR:N/UI:N); outcome is primarily a crash (A:H) with limited stack corruption (I:L) and no data disclosure (C:N).

3.1 AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
4.0 AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Adjacent
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

Prevalence
High
lwIP is a widely deployed open-source embedded/IoT TCP/IP stack
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact· derived
High

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy