Out-of-Bounds Read in traceroute MPLS Extension Parsing
Patch & Detection Intelligence · 5 sources · Updated 5mo ago · First seen Apr 29, 2026

A remotely triggerable out-of-bounds read vulnerability was disclosed in traceroute 2.1.2, affecting MPLS extension parsing when the tool is run with -e. Researcher Mohamed Aziz Rahmouni reported that in traceroute/traceroute.c, the packet buffer pointer is advanced past the IP header after recvmsg(), but the packet length variable is not reduced before handle_extensions() is called. That mismatch can cause the parser to read past the actual received packet boundary and into uninitialized stack memory in buf[1280] when processing a crafted ICMP Time Exceeded response carrying MPLS extensions from an on-path network device.
The researcher said the flaw was identified through manual code review and dynamic fuzzing, confirmed with a working proof of concept, and could be corrected with a one-line fix that subtracts the header length from the packet length after advancing the buffer pointer. traceroute maintainer Dmitry Butskoy acknowledged the report on the oss-sec mailing list and said he would review it within hours, while the disclosure followed a 90-day responsible disclosure timeline with public technical details planned unless a patch is released sooner.


