# CVE-2026-102961: Race between IP fragment reassembly and its timeout handler causes use-after-free in the Zephyr IPv6, IPv4 and 6LoWPAN stacks

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.55% (percentile 39, 2026-11-30)
- **CWE:** CWE-362
- **Published:** 2026-11-29T20:56:51.297Z
- **Modified:** 2026-11-29T21:17:00.960Z

> **AI summary (AI-generated, claude-haiku-5-5):** A remote unauthenticated attacker can send fragmented packets to time them around the reassembly timeout, triggering use-after-free and double free in Zephyr's IPv6, IPv4 and 6LoWPAN fragment reassembly, crashing the device.

## Who should check

- Anyone running zephyrproject zephyr \>= 1.7.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0

## Description

Zephyr's IPv6, IPv4 and IEEE 802.15.4 (6LoWPAN) fragment reassembly implementations each keep a global reassembly cache that two threads modify with no synchronization. In the IPv6 code in subsys/net/ip/ipv6\_fragment.c, the receive path runs net\_ipv6\_handle\_fragment\_hdr() and reassemble\_packet(), and the reassembly\_timeout() delayable-work handler runs on the system workqueue. When a datagram completes, reassemble\_packet() calls only the non-synchronous k\_work\_cancel\_delayable(), which does not stop a timeout handler that is already running. Separately, reassembly\_get() treats a slot as free as soon as its timer is no longer pending, even while that slot's handler is still running. The IPv4 code in subsys/net/ip/ipv4\_fragment.c has the same structure. In the 6LoWPAN code in subsys/net/l2/ieee802154/ieee802154\_6lo\_fragment.c, the reass\_timeout() handler frees a cache entry's packet and releases the entry while fragment\_add\_to\_cache() on the receive path may still be using it, and set\_reass\_cache() re-initializes the entry's timer on every allocation.

A remote, unauthenticated attacker who can send fragmented packets to a device built with CONFIG\_NET\_IPV6\_FRAGMENT, CONFIG\_NET\_IPV4\_FRAGMENT or CONFIG\_NET\_L2\_IEEE802154\_FRAGMENT (for 6LoWPAN, from within IEEE 802.15.4 radio range) can time fragments around the reassembly timeout. In the IPv6 code two interleavings are reachable. In the first, the timeout handler frees the stored fragments with reassembly\_cancel() while the receive path is still merging them. In the second, the receive path reuses the slot and frees a stale first fragment while the handler is blocked inside net\_icmpv6\_send\_error() still using that fragment as the source of the ICMPv6 Time Exceeded message. The race is widest with preemptive network threads, driver-context receive processing, or SMP. With the default cooperative threads on a single core, the attacker needs the handler to block while allocating a buffer.

Winning the race causes use-after-free, double free of net\_pkt objects, or a NULL pointer dereference in the network receive or workqueue thread. The typical result is a crash, which is a remote denial of service. The fixes add a mutex to each implementation that serializes its cache between the receive path and the timeout handler (and, for IPv6 and IPv4, the slot iterator net\_ipv6\_frag\_foreach() / net\_ipv4\_frag\_foreach()), and make a handler whose entry was released or reused while it waited leave that entry alone. The IPv6 fix also detaches the first fragment before sending the ICMPv6 error, and the 6LoWPAN fix initializes the entry timers once instead of on every allocation.

## Affected and fixed versions

- zephyrproject zephyr: \>= 1.7.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0 (cvelist)

## Technologies

Zephyr RTOS

## Mitigation

- Upgrade zephyr to 4.5.0 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-102961. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-102961.md
Affected: zephyrproject zephyr >= 1.7.0, < 4.3.2; >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0

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-102961 being exploited?

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

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

Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

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

zephyrproject zephyr \>= 1.7.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0.

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

Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

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

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-rwm8-p5fg-rwq7>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/5c2cf0d57765550f12b61f712499af744e7bee0b>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/6222db4de27ab2418eda5167fade6fa907a8a37c>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/30f8c581fc4623f7d645b864e500c4ecf0b2da85>

## 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-102961>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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