Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft TCP segment with IPv6 Destination Options header
-
DeliverySend to listening socket off-link
-
ExploitTCP header straddles net_buf boundary
-
Installtcp_pkt_linearize() unrefs attached frag chain
-
C2Leak net_buf from RX pool (or free in-use payload)
-
ExecuteRepeat until pool exhausted
-
ImpactDevice stops receiving / double-free corruption
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a listening TCP socket on an affected Zephyr build (>= 2.3.0, < 4.3.2 or >= 4.4.0, < 4.5.0) and a received TCP header that straddles a net_buf boundary; the attacker arranges this off-link by adding an IPv6 Destination Options extension header of a length that pushes the TCP header across the fixed CONFIG_NET_BUF_DATA_SIZE receive-buffer boundary. The guaranteed DoS path (net_buf pool leak) needs only this. The escalated memory-corruption/double-free path additionally requires a packet chain that presents a short interior fragment the loop empties exactly - produced by IPv4/IPv6 reassembly, 6LoWPAN/802.15.4 reassembly, tunnel/virtual interfaces stripping an outer header, or scatter-gather driver chains - so corruption is deployment- and link-layer-dependent, not a default-configuration guarantee. Limiting factors: no authentication is required (PR:N), but the device must expose a listening socket and run a vulnerable, un-backported release line. |
| Impact | The composite signals point to a genuine but bounded availability threat rather than a system-compromise emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5) is internally consistent with the evidence: the reliably reachable outcome is remote, unauthenticated receive-buffer-pool exhaustion (A:H, C:N/I:N) triggered before connection lookup or header validation, so a single crafted segment matching a listening socket suffices. No CISA KEV entry, no EPSS score, and no PoC reference are present in the input, so exploitation status is 'no public exploit identified at time of analysis' - distinct from active exploitation. The vuln.today priority is 'this_week' (not act_now/emergency), which aligns with a patch-available availability bug lacking confirmed in-the-wild use. One nuance to flag explicitly: the description distinguishes two impact tiers - the always-reachable DoS (AC:L) versus a memory-corruption/double-free escalation that requires a packet chain presenting an exactly-emptied interior fragment (IP/6LoWPAN reassembly, tunnel/virtual interfaces, or scatter-gather drivers); that corruption path is condition-dependent and not reflected in the base 7.5 score, so the headline C:N/I:N understates worst-case impact on specific deployments. Priority is real for any Internet-exposed Zephyr device with a listening TCP socket, but this is an availability/targeted-corruption issue, not a broad RCE. |
| Exploit ScenarioDerived | An off-link attacker sends a single TCP segment to a listening socket on a Zephyr device, prepending an IPv6 Destination Options extension header sized so the TCP header straddles the boundary between fixed-size receive buffers. This forces tcp_pkt_linearize() to unref a fragment with its frag chain still attached, leaking a net_buf per segment; repeating it drains the CONFIG_NET_BUF_RX_COUNT pool until the device can no longer receive traffic until reboot. No public exploit code is identified, but the trigger mechanism is fully described in the vendor advisory and patch. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Remote denial of service in Zephyr's TCP receive path: when a received TCP header straddles a net_buf boundary, tcp_pkt_linearize() unreferences an emptied fragment while its frags chain is still attached, so net_buf_unref() frees the payload buffers behind it and the stale pointer is reinstalled into the packet, producing a use-after-free and a later double free at teardown; the same loop also splices out a still-populated fragment without unreferencing it, leaking that buffer. Affected builds are Zephyr >= 2.3.0, < 4.3.2 and >= 4.4.0, < 4.5.0 that expose a listening TCP socket. A single unauthenticated segment (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, CWE-416) suffices, and the reliably reachable outcome is exhaustion of the fixed CONFIG_NET_BUF_RX_COUNT receive buffer pool until reboot, with memory corruption where an interior fragment is emptied exactly; no public exploit identified at time of analysis.
RemediationAI
Vendor-released patches fix the flaw in Zephyr 4.3.2 and 4.5.0, with the main-branch fix at commit c66e7c6cc0c01492a423fa94fa0e5005308799b6 and merged backports on the v4.4-branch (PR #120851), v4.3-branch (PR #120850) and v3.7-branch (PR #120849); the patch saves and clears second->frags before net_buf_unref() and advances only when second->len == 0, so upgrading to 4.3.2 or 4.5.0 (or picking up the branch backport) is the complete remediation. Because the defect is hit in tcp_recv() via th_get() before connection lookup and before header validation, packet filtering aimed at TCP fields is not a substitute for the fix; exposure is bounded by the prerequisite that the device must have a listening TCP socket reachable over the network, so reducing reachable listening sockets on unpatched nodes lowers exposure, and nodes that cannot be updated promptly should be considered prone to receive-buffer pool exhaustion requiring a reboot to recover. Advisory: https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-5g8m-jj22-82f5.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Zephyr's network stack represents packets as net_pkt objects built from net_buf fragments chained through a frags pointer, drawn from fixed pools sized by CONFIG_NET_BUF_DATA_SIZE and CONFIG_NET_BUF_RX_COUNT. th_get() in subsys/net/ip/tcp.c calls tcp_pkt_linearize() whenever net_pkt_is_contiguous(pkt, sizeof(struct tcphdr)) fails, pulling header bytes forward out of subsequent fragments; the bug is a CWE-416 ownership error in that loop, because net_buf_unref() (lib/net_buf/buf.c) recursively walks the entire frags list and frees every downstream buffer whose refcount reaches zero, so unref'ing a fragment with its chain still attached releases the rest of the packet and leaves buf->frags pointing at freed memory (later caught by the __ASSERT(old_ref != 0, "buf %p double free") during teardown). The correct detach-before-unref pattern is the one used by net_pkt_trim_buffer(). Reachability comes from tcp_recv() calling th_get() at the top of the receive path, before connection lookup and before th_off() validation, and the attacker controls the offset of the TCP header from off-link: subsys/net/ip/ipv6.c accumulates attacker-chosen extension-header lengths into net_pkt_set_ipv6_ext_len(), which th_get() adds to ip_len, so a Destination Options header of suitable length pushes the TCP header across the 128-byte RX fragment boundary (ethernet.c leaves 114 bytes of IP data in the first fragment). Packet chains that additionally present a short interior fragment the loop empties exactly - IPv4/IPv6 reassembly, 6LoWPAN/802.15.4 reassembly, tunnel or virtual interfaces stripping an outer header, or scatter-gather drivers - are the precondition for the escalated corruption path rather than a guarantee in default configurations.
Know when Zephyr gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Reliably reachable, unauthenticated remote buffer-pool exhaustion before any validation gives AV:N/AC:L/PR:N/UI:N/A:H; base scope/CIA match the guaranteed DoS, not the conditional corruption path.
Primary rating from Vendor (zephyr).
CVSS VectorVendor: zephyr
DescriptionCVE.org
tcp_pkt_linearize() in subsys/net/ip/tcp.c is used by th_get() whenever a received TCP header is not contiguous in a single net_buf. While pulling the header bytes out of the following fragments, the loop called net_buf_unref() on an emptied fragment without first detaching its frags pointer. net_buf_unref() walks the whole fragment list, so the payload buffers still linked behind that fragment were freed as well, and the stale pointer was then reinstalled into the packet as buf->frags, producing a use-after-free and a later double free during packet teardown. The same loop also advanced to second->frags unconditionally: when the fragment still held payload after the header remainder was pulled, it was spliced out of the packet without ever being unreferenced, permanently leaking that buffer and silently dropping the data it carried.
The defect is reached from tcp_recv() via th_get() on every received TCP segment, before connection lookup or any header validation, so a single unauthenticated segment that matches a listening socket is sufficient. An attacker only needs the TCP header to straddle a net_buf boundary, which they can arrange from off-link: IPv6 extension headers are accepted on receive and their length is added to the header offset by th_get(), so a Destination Options header of a suitable length places the TCP header across the boundary of the fixed-size receive buffers (CONFIG_NET_BUF_DATA_SIZE). Packet chains assembled from several sources - IPv4/IPv6 reassembly, 6LoWPAN/802.15.4 reassembly, tunnel or virtual interfaces that strip an outer header, or drivers producing scatter-gather chains - can additionally present a short interior fragment that the loop empties exactly, which is the case that frees the remainder of the packet while it is still in use.
The reliably reachable consequence is exhaustion of the receive buffer pool: each crafted segment leaks one net_buf from the fixed CONFIG_NET_BUF_RX_COUNT pool, the buffers are never reclaimed, and once the pool is empty the device can no longer receive network traffic until it is rebooted. Where a fragment is emptied exactly, the impact rises to memory corruption: freed pool buffers are written through by the remainder of the loop, their contents may be delivered to the application, and the packet is double-freed on teardown.
The fix saves and clears second->frags before the net_buf_unref() so only the emptied header fragment is released, and advances to the next fragment only when second->len == 0, keeping any fragment that still holds payload in the packet. This restores the detach-before-unref ownership pattern used elsewhere in the stack, for example in net_pkt_trim_buffer().
Technical POC Analysis
CWE-416 (use-after-free), with an adjacent resource leak and a downstream double free, in tcppktlinearize() in subsys/net/ip/tcp.c.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Zephyr TCP/IP stack (versions 2.3.0 through 4.3.1 and 4.4.0) contains a remotely exploitable use-after-free that allows an unauthenticated attacker to exhaust receive buffers and cause a denial of service on any device exposing a listening TCP socket. A single malformed TCP segment can halt network operations until reboot, impacting availability of IoT endpoints (e.g., medical devices, industrial sensors, consumer equipment) and potentially disrupting business continuity or safety-critical functions.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),
An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on
Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit
Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS
Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner
Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability
Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable
DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul
zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(
Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul
The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte
Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c
EUVD-2026-128891
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB