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

- Severity: Medium 6.9 (CVSS:4.0, scored by zephyr) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2026-11-12T02:23:44.385Z
- Modified: 2026-11-16T21:17:25.667Z
- Weaknesses: CWE-125, CWE-191, CWE-200
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: zephyr

## Description

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, icmpv4_update_record_route() and icmpv4_update_time_stamp() in subsys/net/ip/icmpv4.c compute the length of the already recorded data as ptr - ptr_offset in uint8_t 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. net_pkt_write() then reads past the 40-byte opt_data 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 CONFIG_NET_IPV4_HDR_OPTIONS, which CONFIG_NET_IPV4_IGMP selects, are affected.

(As written by CVE List.)

## Affected

- Zephyr: from * up to 4.4.0

## Every score

- zephyr: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- zephyr: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-cvv6-5f6x-87qf>

## Sources

- CVE List: [CVE-2026-126957](https://www.cve.org/CVERecord?id=CVE-2026-126957), CVE Terms of Use, modified 2026-11-16
- NVD: [CVE-2026-126957](https://nvd.nist.gov/vuln/detail/CVE-2026-126957), Public domain, modified 2026-11-16

---

Page: https://cve.day/CVE-2026-126957 · Whole record: https://cve.day/CVE-2026-126957.json · Rebuilt by cve.day 2026-11-25T22:59:50.488Z
