Mongoose: IPv6 TCP packet can cause a null dereference while matching an IPv4 connection
- CVE-2026-141470
- EUVD-2026-140702
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.
Text from the CVE.org record.
Recommendation
cesanta mongoose
- If you run a version from 7.21 to before 7.24update to 7.24 or laterMinor version change: check the release notes
Taken from the version ranges of the NVD record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
cesanta mongoose
Affected versions Fixed in from 7.21 to before 7.24 7.24
Product versions from the NVD record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.