CVE-2026-126957: ICMPv4 Record Route / Timestamp option: stack OOB read via ptr underflow in icmpv4.c

Published Nov 12, 2026
·
Updated

An integer underflow in Zephyr's IPv4 option handling allows a remote, unauthenticated attacker to read stack memory. When replying to an ICMP Echo Request that carries an IPv4 Record Route or Timestamp option, icmpv4updaterecordroute() and icmpv4updatetimestamp() in subsys/net/ip/icmpv4.c compute the length of the already recorded data as ptr - ptroffset in uint8t arithmetic. The attacker-controlled Pointer field is checked against the option length but not against the RFC 791 minimum (4 for Record Route, 5 for Timestamp), so a smaller value wraps the length to up to 252 bytes. netpktwrite() then reads past the 40-byte optdata stack buffer and up to 213 bytes of stack memory, which can include stack and heap pointers, are returned in the ICMP Echo Reply. A single packet triggers the leak and the device does not crash, so it can be repeated. Devices built with CONFIGNETIPV4HDROPTIONS, which CONFIGNETIPV4IGMP selects, are affected.

Event History

Nov 12, 2026
CVE Published
via MITRE·02:23 AM
Data Sourced
via MITRE·02:23 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:17 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which Zephyr builds are exposed?

Devices built with CONFIG_NET_IPV4_HDR_OPTIONS are affected. CONFIG_NET_IPV4_IGMP selects this option, so builds that enable IGMP are also affected.

2

What must an attacker be able to do to exploit this?

An attacker only needs network access to send a crafted ICMP Echo Request carrying an IPv4 Record Route or Timestamp option. No authentication, prior privileges, or user interaction is required.

3

What information can be exposed and how reliable is exploitation?

The ICMP Echo Reply can return up to 213 bytes of stack memory beyond the intended 40-byte option buffer, potentially including stack and heap pointers. A single crafted packet triggers the leak without crashing the device, allowing repeated attempts.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203