Skip to main content

Zephyr RTOS CVE-2026-95823

| EUVDEUVD-2026-128891 HIGH
Use After Free (CWE-416)
2026-11-18 zephyr
7.5
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft TCP segment with IPv6 Destination Options header
  2. Delivery
    Send to listening socket off-link
  3. Exploit
    TCP header straddles net_buf boundary
  4. Install
    tcp_pkt_linearize() unrefs attached frag chain
  5. C2
    Leak net_buf from RX pool (or free in-use payload)
  6. Execute
    Repeat until pool exhausted
  7. Impact
    Device 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Zephyr 2.3.0 <4.3.2
Zephyr 4.4.0 <4.5.0

Affected Packages

euvd zephyr fix: 4.3.2, 4.5.0

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

Vendor (zephyr) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyr).

CVSS VectorVendor: zephyr

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Medium
Popular open-source embedded/IoT RTOS; broad but not ubiquitous device footprint
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Zephyr

View all
CVE-2023-4260 CRITICAL POC
10.0 Sep 27

Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),

CVE-2026-1678 CRITICAL POC
9.8 Mar 05

An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on

CVE-2023-5055 CRITICAL POC
9.8 Nov 21

Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2023-4257 CRITICAL POC
9.8 Oct 13

Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS

CVE-2023-3725 CRITICAL POC
9.8 Oct 06

Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner

CVE-2021-3323 CRITICAL POC
9.8 Oct 12

Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2021-3625 CRITICAL POC
9.8 Oct 05

Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable

CVE-2021-3319 CRITICAL POC
9.8 Oct 05

DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul

CVE-2018-1000800 CRITICAL POC
9.8 Sep 06

zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(

CVE-2023-4264 CRITICAL POC
9.6 Sep 27

Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul

CVE-2024-1638 CRITICAL POC
9.1 Feb 19

The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte

CVE-2023-5753 HIGH POC
8.8 Oct 25

Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy