# CVE-2026-10640: Use-after-free reading \`net\_pkt\` \`iface\` after send in IPv6 Neighbor Discovery (\`ipv6\_nbr.c\`)

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.2
- **CVSS:** 4.2 (v3.1, CNA) `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-06-16T13:28:24.493Z
- **Modified:** 2026-11-04T04:58:11.315Z

## Who should check

- Anyone running zephyrproject zephyr \>= 3.3.0, \< 4.3.1; \>= 4.4.0, \< 4.4.1

## Description

Zephyr's IPv6 Neighbor Discovery send paths (net\_ipv6\_send\_na, net\_ipv6\_send\_ns, net\_ipv6\_send\_rs in subsys/net/ip/ipv6\_nbr.c) updated the per-interface ICMP-sent statistics by calling net\_pkt\_iface(pkt) after net\_send\_data(pkt) had already returned successfully. On the success path the network stack owns and releases the packet's reference (the L2/driver send unrefs it, e.g. ethernet\_send -\> net\_pkt\_unref), so for a freshly allocated packet with refcount 1 the net\_pkt slab block can be freed before the statistics line runs (synchronously when no TX queue thread is configured, or via a concurrent TX thread otherwise).

The subsequent net\_pkt\_iface(pkt) reads pkt-\>iface from the freed slab block, and with CONFIG\_NET\_STATISTICS\_PER\_INTERFACE enabled that loaded pointer is dereferenced to increment iface-\>stats.icmp.sent, a use-after-free (CWE-416). If the slab block was reallocated in the meantime the read/increment targets unrelated or attacker-influenced memory, yielding corrupted statistics, a fault/crash (denial of service), or potential limited memory corruption.

The vulnerable Neighbor Advertisement path is reachable by any unauthenticated on-link node simply by sending ICMPv6 Neighbor Solicitations to a Zephyr node with native IPv6 enabled (handle\_ns\_input -\> net\_ipv6\_send\_na).

Affected from v3.3.0 through v4.4.0; the fix uses the already-available iface argument instead of touching the sent packet. Configurations without per-interface statistics dereference only a global counter and are not affected by the memory-safety aspect.

## Affected and fixed versions

- zephyrproject zephyr: \>= 3.3.0, \< 4.3.1; \>= 4.4.0, \< 4.4.1 (cvelist)

## Mitigation

- Upgrade zephyr to 4.4.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-10640. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-10640.md
Affected: zephyrproject zephyr >= 3.3.0, < 4.3.1; >= 4.4.0, < 4.4.1
Fixed in: zephyrproject zephyr 4.3.1, zephyrproject zephyr 4.4.1

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-10640 being exploited?

There is no confirmed exploitation: CVE-2026-10640 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-10640?

Medium: CVSS 4.2 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

zephyrproject zephyr \>= 3.3.0, \< 4.3.1; \>= 4.4.0, \< 4.4.1.

### Is there a fix for CVE-2026-10640?

Yes. Fixed in zephyrproject zephyr 4.3.1, zephyrproject zephyr 4.4.1. Upgrade zephyr to 4.4.1 or later.

### How do I check if I'm affected by CVE-2026-10640?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-r74c-mr4m-7g9g>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/aaed8332a62b0490a2f3c2cbabe272f575068eaa>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-10640>

HTML: <https://flawdb.com/CVE-2026-10640> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-10640>
