Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-102961

published medium CVSS 3.1 · 5.9

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

Published
29 Nov 2026, 20:56:51 UTC
Updated
29 Nov 2026, 20:56:51 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
zephyrproject — zephyr1.7.0 to < 4.3.2 · 4.4.0 to < 4.5.0 · Other versions: unaffected Affected Not stated zephyr

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.

en · zephyr · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
5.9 / 10
Severity
medium
Provider
zephyr · cna
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
zephyrproject zephyr 1.7.0 to < 4.3.2 (affected · semver)4.4.0 to < 4.5.0 (affected · semver)Default: unaffected zephyr · cna

Weaknesses

1
  • CWE-362 race (zephyr · cna)

References

4
  • Fix commit 30f8c581fc46 https://github.com/zephyrproject-rtos/zephyr/commit/30f8c581fc4623f7d645b864e500c4ecf0b2da85 patch Contributors: zephyr (cna)
  • Fix commit 5c2cf0d57765 https://github.com/zephyrproject-rtos/zephyr/commit/5c2cf0d57765550f12b61f712499af744e7bee0b patch Contributors: zephyr (cna)
  • Fix commit 6222db4de27a https://github.com/zephyrproject-rtos/zephyr/commit/6222db4de27ab2418eda5167fade6fa907a8a37c patch Contributors: zephyr (cna)
  • GHSA-rwm8-p5fg-rwq7 https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-rwm8-p5fg-rwq7 Contributors: zephyr (cna)

Provider assertions

1

zephyr · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
6fb1f2d86c1f705e334ef2cccfb39fccf9ee1f65eab688498af6707fb10fa718
Ingested
29 Nov 2026, 21:05:13 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected