Skip to content
FlawDB
Sign in

CVE-2026-102961

MEDIUM 5.9EPSS 39%

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

AI summary AI generated

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.

Mitigation

  • Upgrade zephyr to 4.5.0 or later.

Who should check

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

Vulnerability facts

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
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
5.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.55% chance of exploitation in 30 days (percentile 39, 2026-11-30)
CWE
CWE-362
Published
Modified

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

Package / productAffectedFixedSource
zephyrproject zephyr>= 1.7.0, < 4.3.2; >= 4.4.0, < 4.5.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

Technologies

References

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.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
MEDIUM 4.6CVE-2026-104931

NULL pointer dereference in USB device_next class handlers on zero-length control OUT requests

Zephyr RTOS
HIGH 7.0CVE-2026-105415

Out-of-bounds write via unchecked channel index in ESP32 MCPWM PWM driver set_cycles syscall

Zephyr RTOS
EPSS 4%
MEDIUM 5.9CVE-2026-104930

STM32 Ethernet driver (HAL API v2) RX path stalls permanently after a dropped frame

Zephyr RTOS
EPSS 30%
MEDIUM 5.9CVE-2026-104379

Use-after-free of transmitted IPv6 packet in Zephyr net_if_try_send_data

Zephyr RTOS
EPSS 14%
MEDIUM 6.5CVE-2026-104929

Remote Bluetooth RX livelock in STM32WBA HCI driver when receive errors are reported as busy

Zephyr RTOS
EPSS 16%
Sponsors