{"id":"CVE-2026-126957","aliases":["CVE-2026-126957"],"related":[],"kind":"vulnerability","state":"published","title":"ICMPv4 Record Route / Timestamp option: stack OOB read via ptr underflow in icmpv4.c","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-12T02:23:44.385Z","modified":"2026-11-16T21:17:25.667Z","severity":{"scorer":"zephyr","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"zephyr","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"zephyr","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"}],"cwes":["CWE-125","CWE-191","CWE-200"],"affected":[{"ranges":[{"type":"git","introduced":"*","lastAffected":"4.4.0","status":"affected"}],"vendor":"zephyrproject-rtos","product":"Zephyr","package":"Zephyr","repo":"https://github.com/zephyrproject-rtos/zephyr","source":"cvelist"}],"references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-cvv6-5f6x-87qf","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"zephyr","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-11-16T20:17:27.372Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-126957","url":"https://www.cve.org/CVERecord?id=CVE-2026-126957","licence":"CVE Terms of Use","modified":"2026-11-16T20:17:45.993Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-126957","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126957","licence":"Public domain","modified":"2026-11-16T21:17:25.667Z"}],"updatedAt":"2026-11-25T22:59:50.488Z","epss":{"score":0.00343,"percentile":0.29886,"date":"2026-12-01T12:00:22.000Z"}}