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

> Remote attackers can send ICMP packets with Record Route or Timestamp options to leak stack memory from Zephyr devices with IPv4 options enabled.

- **Severity:** Medium 6.9 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** No
- **Fix available:** No
- **Published:** 12 Nov 2026
- **Updated:** 16 Nov 2026
- **Also known as:** GHSA-cvv6-5f6x-87qf

## What is CVE-2026-126957?

CVE-2026-126957 is a medium-severity integer overflow vulnerability in zephyrproject-rtos Zephyr, published on 12 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official 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.

Weakness: CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor), CWE-191 (Integer Underflow (Wrap or Wraparound)), CWE-125 (Out-of-bounds Read)

## Which versions are affected by CVE-2026-126957?

Only installations with a non-default setting turned on are exposed.


## How do I fix CVE-2026-126957?

No fix has been published for CVE-2026-126957 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-126957 being exploited?

There is no known exploitation of CVE-2026-126957 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-126957 and fix it if it is affected.

What it is: CVE-2026-126957 is a medium-severity integer overflow vulnerability in zephyrproject-rtos Zephyr, published on 12 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-126957 in the wild and no public exploit code.
Exposure: Only installations with a non-default setting turned on are exposed.

Affected product: zephyrproject-rtos Zephyr. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-126957/ (Markdown: https://insights.sbomify.com/CVE-2026-126957/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-126957
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-126957
- OSV: https://osv.dev/vulnerability/CVE-2026-126957

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-126957/
Summaries are generated and may contain mistakes; the official description above is the record.
