Vulnerability DatabaseCVE-2026-134171

CVE-2026-134171: 
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2026-134171 is an out-of-bounds read vulnerability in Cesanta Mongoose's built-in TCP/IP stack affecting the IPv6 checksum validation logic in rx_ip6(). It allows remote unauthenticated attackers to trigger reads past the end of received packet buffers by sending crafted IPv6 packets with extension headers. Affected versions are Mongoose 7.21 through 7.23 (fixed in 7.24). The vulnerability was published on November 20, 2026, with a CVSS v3.1 base score of 5.3 (Medium) and a CVSS v4.0 base score of 6.9 (Medium) (Github Advisory, Cesanta Advisory).

Technical details

The root cause is classified as CWE-130 (Improper Handling of Length Parameter Inconsistency). In src/net_builtin.c (lines 318–325 in version 7.23), the functions tcp6csum_ok() and icmp6csum_ok() pass the attacker-controlled ip6->plen field directly to the p6csum() checksum function as the data length. When IPv6 extension headers (e.g., Hop-by-Hop) are present, rx_ip6() advances the data pointer past those headers, reducing the actual available payload — but the checksum functions still use the original, larger plen value. This causes csumup() to read beyond the actual received frame boundary into adjacent receive-buffer memory. The fix in version 7.24 modifies tcp6csum_ok() and icmp6csum_ok() to accept an explicit len parameter derived from the actual remaining payload rather than the header-declared plen (Cesanta Advisory, Patch Commit).

Impact

Successful exploitation primarily results in a crash (denial of service) of the embedded device running Mongoose with the built-in TCP/IP stack. On embedded systems, the out-of-bounds read can extend up to 65,535 bytes past the buffer boundary, and because the over-read data feeds into a checksum comparison, there is secondary potential for information disclosure of adjacent receive-buffer memory contents. No integrity impact or lateral movement capability has been identified. The vulnerability affects only deployments with both MG_ENABLE_TCPIP=1 and MG_ENABLE_IPV6=1 (Cesanta Advisory, Github Advisory).

Exploitability

A proof-of-concept Python script is publicly available in the Cesanta security advisory (GHSA-99jq-33q7-4w7q) that generates a malformed IPv6 Ethernet frame demonstrating the out-of-bounds read and crash. The PoC constructs a raw Ethernet frame with an IPv6 Hop-by-Hop extension header and an inconsistent plen field; ASAN confirms a heap-buffer-overflow in csumup(). No authentication or TCP connection is required — a single crafted Layer-2 frame suffices. There is no evidence of in-the-wild exploitation at this time, and the vulnerability is not listed in the CISA KEV catalog. The EPSS score is approximately 0.827% (Cesanta Advisory, Github Advisory).

Exploitation steps

  1. Identify target: Locate a device running Cesanta Mongoose 7.21–7.23 with the built-in TCP/IP stack enabled (MG_ENABLE_TCPIP=1, MG_ENABLE_IPV6=1) on the local network segment.
  2. Construct Ethernet header: Build a raw Ethernet frame with EtherType 0x86DD (IPv6): eth = b'\x00'*6 + b'\x00'*6 + b'\x86\xdd'.
  3. Craft IPv6 header with inflated plen: Set the IPv6 plen field to a value larger than the actual remaining payload (e.g., plen=28 when only 20 bytes of TCP data follow after an 8-byte extension header): ip6 = struct.pack('!BBHBB16s16s', 0x60, 0, 28, 0, 64, b'\x00'*16, b'\x00'*16).
  4. Append IPv6 extension header: Add a Hop-by-Hop Options extension header with next-header set to TCP (6): hbh = struct.pack('BB', 6, 0) (padded to 8 bytes per RFC).
  5. Append TCP header: Append a minimal 20-byte TCP header: tcp = struct.pack('!HHIIBBHHH', 80, 80, 0, 0, 0, 0x50, 0, 0, 0).
  6. Transmit the frame: Send the assembled frame (eth + ip6 + hbh + tcp) directly over the network interface using a raw socket to the target device. The tcp6csum_ok() function will read plen (28) bytes starting from the TCP header pointer, going 8 bytes past the actual data into adjacent receive-buffer memory, causing a crash or memory disclosure (Cesanta Advisory).

Indicators of compromise

  • Network: Unexpected IPv6 packets with extension headers (e.g., Hop-by-Hop, Next Header=0x00) destined to devices running Mongoose; packets where the declared plen is inconsistent with the actual frame length; single-packet probes from unknown sources targeting IPv6-enabled embedded devices.
  • Logs: Mongoose crash logs or core dumps referencing csumup, p6csum, tcp6csum_ok, or icmp6csum_ok in stack traces; ASAN output showing heap-buffer-overflow READ in src/net_builtin.c around lines 242, 309, or 321.
  • Process/System: Unexpected device reboots or watchdog resets on embedded systems running Mongoose; abnormal termination of the Mongoose process without application-level errors.

Mitigation and workarounds

Upgrade Cesanta Mongoose to version 7.24 or later, which fixes the vulnerability by passing the actual remaining payload length to tcp6csum_ok() and icmp6csum_ok() instead of the attacker-controlled ip6->plen field (Patch Commit, Release 7.24). As a temporary workaround where immediate patching is not possible, restrict or block IPv6 traffic with extension headers at network boundaries (e.g., firewall rules dropping packets with Next Header values 0, 43, 44, 60). Disabling IPv6 support at compile time (MG_ENABLE_IPV6=0) also eliminates the attack surface entirely.

Community reactions

The vulnerability was discovered by researchers credited as the-red-ace and allanvictor and disclosed via Cesanta's GitHub security advisory. No significant public commentary, media coverage, or vendor statements beyond the official advisory have been identified at this time (Cesanta Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

sid

mongoose: 7.24+ds-1

Fixed

Source: This report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-134170HIGH8.2
  • Linux Debian logoLinux Debian
  • mongoose
NoNoNov 20, 2026
CVE-2026-134043HIGH7.8
  • Linux Debian logoLinux Debian
  • krita
NoNoNov 20, 2026
CVE-2026-134042HIGH7.8
  • Linux Debian logoLinux Debian
  • krita
NoNoNov 20, 2026
CVE-2026-134041HIGH7.8
  • Linux Debian logoLinux Debian
  • krita
NoNoNov 20, 2026
CVE-2026-134171MEDIUM6.9
  • Linux Debian logoLinux Debian
  • mongoose
NoNoNov 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management