CVE-2026-126957
published medium CVSS 4.0 · 6.9ICMPv4 Record Route / Timestamp option: stack OOB read via ptr underflow in icmpv4.c
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| zephyrproject-rtos | — | Zephyrthrough 4.4.0 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- zephyr · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.3 | medium | zephyr · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| zephyrproject-rtos | Zephyr | through 4.4.0 (affected · git)Default: unaffected | zephyr · cna |
Weaknesses
3- CWE-125 Out-of-bounds Read
- CWE-191 Integer Underflow (Wrap or Wraparound)
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
References
1Provider assertions
2zephyr · cna
ICMPv4 Record Route / Timestamp option: stack OOB read via ptr underflow in icmpv4.c
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0f4d06758eee154e4ce86794ca0efabefe243383904624e35af2e03cc40b9a82
- Ingested
- 16 Nov 2026, 20:21:52 UTC
- Source record
- Official CVE record