Skip to content

CVE-2026-141470 Mongoose: IPv6 TCP packet can cause a null dereference while matching an IPv4 connection

HighCVSS 8.2 EPSS 0.96%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
Debian

Description

Mongoose is an embedded web server and network library. From 7.21 until 7.24, Mongoose's built-in TCP/IP stack with MG_ENABLE_TCPIP and MG_ENABLE_IPV6 enabled can dereference a null IPv4 header in getpeer() in src/net_builtin.c when rx_tcp() receives an IPv6/TCP packet whose source and destination ports match an established IPv4 connection. The cross-family lookup reaches pkt->ip->src even though only pkt->ip6 is present, allowing a network attacker able to deliver IPv6 packets to crash the process or networking task. This issue is fixed in 7.24.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
cesanta mongoose = >= 7.21, < 7.24; >= 7.21, < 7.24 7.24 Fixed
debian/mongoose(Debian 14) < 7.24+ds-1; = 7.21+ds-1; = 7.21+ds-1~bpo13+1; = 7.21+ds-2 +5 more 7.24+ds-1 Fixed

Affected products

ProductAffected versionsFixed in
cesanta mongoose = >= 7.21, < 7.24 No fix listed
cesanta mongoose >= 7.21, < 7.24 7.24
debian/mongoose(Debian:14) < 7.24+ds-1 7.24+ds-1
debian/mongoose(Debian:14) = 7.21+ds-1 No fix listed
debian/mongoose(Debian:14) = 7.21+ds-1~bpo13+1 No fix listed
debian/mongoose(Debian:14) = 7.21+ds-2 No fix listed
debian/mongoose(Debian:14) = 7.22+ds-1 No fix listed
debian/mongoose(Debian:14) = 7.22+ds-1~bpo13+1 No fix listed
debian/mongoose(Debian:14) = 7.23+ds-1 No fix listed
debian/mongoose(Debian:14) = 7.23+ds-1~bpo13+1 No fix listed
debian/mongoose(Debian:14) = 7.24+ds-1~bpo13+1 No fix listed

References