Submit #954737: lwIP Project lwIP 2.2.1 and earlier Heap-based Buffer Overflowinfo

TitlelwIP Project lwIP 2.2.1 and earlier Heap-based Buffer Overflow
DescriptionA heap-based out-of-bounds write exists in the lwIP MQTT client. In mqtt_parse_incoming(), the MQTT Remaining Length field is parsed without enforcing the protocol limit of four encoded bytes. A broker can send a malformed Remaining Length containing excessive continuation bytes, causing msg_idx to advance beyond the fixed rx_buffer and overwrite adjacent heap memory. The issue was reproduced with AddressSanitizer using a crafted MQTT input. The lwIP maintainer confirmed the issue and marked Savannah bug #68590 as fixed, with the fix planned for lwIP 2.2.2.
Source⚠️ https://savannah.nongnu.org/bugs/?68590
User
 xuyun (UID 100919)
Submission09/01/2026 04:48 (2 months ago)
Moderation10/10/2026 17:18 (1 month later)
StatusDuplicate
VulDB entry408720 [lwIP up to 2.2.1 MQTT out-of-bounds write]
Points0

Do you want to use VulDB in your project?

Use the official API to access entries easily!