Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

Skip to content
Check your stack
CVE-2026-95821

Dangling stack pointer left installed as TCP receive callback after a failed SOCKS5 handshake

Products / packages zephyrproject zephyr

Published

Share

Severity and exploitation

Not in CISA KEV

KEV coverage does not rule out exploitation.

KEV checked 30/11/2026, 22:45:31 UTC
zephyr · CVSS:3.1 · 6.5
Assessment vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

Severity

medium6.5

CVSS measures technical severity, not the likelihood of an attack.

Known exploitation

Not listed in the checked CISA KEV catalog

Absence from CISA KEV does not rule out attacks.

Public exploit

Not established by this record

Missing evidence does not mean no public exploit exists.

Remediation

Fix status not established

No structured fix or guidance is available here. Check the latest publisher advisory.

What this means

The Zephyr project's SOCKS5 client in versions 2.0.0 to 4.3.2 and 4.4.0 to 4.5.0 has a dangling stack pointer vulnerability. A remote peer can trigger this issue by responding with certain protocol-legal responses, causing a write of peer-supplied bytes to a stack region. This can lead to limited corruption or a crash.

Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.

Attack conditions

No attack-condition excerpt has been identified here. Review the full source description and references for authentication, network access, and configuration requirements.

Review supporting sources →

Affected versions

Check the exact model, release, and any platform requirements against your installation.

zephyrproject · zephyr

zephyr

2 ranges

Compare with this publisher’s ranges. This does not inspect your installation.

affected

2.0.0 → before 4.3.2

semver versions

4.4.0 → before 4.5.0

semver versions

unaffected

unknown

Other versions: unaffected

Automatic dependency matching is unavailable for this record. Use the product evidence and publisher’s instructions to check your installation.

What to do

Compare your installed product and version with the affected versions above. A matching product name alone does not confirm exposure.

No structured fix or remediation guidance is available here. Check the full source description and vendor’s latest advisory for a patch or workaround; do not assume another version is safe.

cve.new guidance unless attributed to a publisher. This page does not inspect your installation.

Public exploit evidence

No public exploit reference is identified in the imported evidence. This is not a claim that no exploit exists.

Original source description

Read the full publisher description

The SOCKS5 client in subsys/net/lib/socks/socks.c passes the addresses of two of socks5_tcp_connect()'s own stack variables, method_rsp and cmd_rsp, to net_context_recv() as the user data for the negotiation and CONNECT response callbacks. For a TCP context net_context_recv() reaches net_tcp_recv(), which only stores context->recv_cb and conn->recv_user_data and never removes them. On the success path zsock_connect_ctx() immediately replaces them with zsock_received_cb(), but on every error path nothing did, so the network context was left holding a pointer into a stack frame that had already been destroyed.

Any remote peer acting as the proxy can arm this with a protocol-legal response: answering the method negotiation with NO ACCEPTABLE METHODS (0xFF), sending a bad version byte, returning a non-success REP in the CONNECT reply, or simply stalling until CONFIG_NET_SOCKETS_CONNECT_TIMEOUT expires all make socks5_tcp_connect() return an error while the callbacks stay installed. The dangling pointer is then dereferenced asynchronously from the networking threads: tcp_conn_close() in subsys/net/ip/tcp.c invokes context->recv_cb() on FIN, RST or timeout, and the callback memset()s through the stale pointer, while any further data on the socket reaches net_context_packet_received() and makes net_pkt_read() write peer-supplied bytes there.

The result is a write of two to four bytes (zeroes on the teardown path, peer-chosen bytes on the data path) into a stack region of the thread that called connect(), at a moment when that thread may have reused the memory for a live frame. The write address is not attacker-controlled, so the practical impact is limited corruption or a crash rather than a directed memory-write primitive; the author observed it as a SEGV in tcp_conn_close() under CONFIG_ASAN. Only configurations with CONFIG_SOCKS enabled and a SOCKS5 proxy configured on the socket are affected.

The fix routes the error returns through a common exit that calls net_context_recv(ctx, NULL, K_NO_WAIT, NULL), uninstalling the callback and the user-data pointer before the stack frame goes away.

References

3 sources

Inside the record

Evidence available

Package identity · not supplied
Version evidence
Remediation guidance · not supplied
Weakness classification
Additional publishers · not supplied

Describes the evidence in this view, not whether the product is safe.

Original records

CVE-2026-95821

View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.

cve.new JSON →

Underlying weaknesses

The source’s classification of what caused the vulnerability.

CWE-825 ↗

memory-safety

zephyr

Related →
Contributing organizations · 1
zephyr

Assigning organization

2026-11-29

Timeline

All times UTC
  1. Advisory published

    Publication date supplied by the source.

  2. Last imported by cve.new

    Latest catalog import, not the date we first saw this advisory.

What changed

Follow changes
No substantive changes have been recorded here yet. History starts when cve.new observes a change after tracking is enabled; earlier edits are not reconstructed.

Large field values are marked as truncated previews. Original source snapshots remain retained.

Recent advisories affecting the same package or the same recorded vendor and product. These are separate vulnerabilities, not additional evidence for this advisory.

high7.0
CVE-2026-105415

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

The Espressif MCPWM PWM driver (drivers/pwm/pwm_mc_esp32.c) indexed its per-channel configuration array config->channel_config[] with the caller-supplied channel_idx in mcpwm_esp32_set_cycles() without any bounds check; the existing if (!channel) test can never fail. The driver then wrote channel->freq, channel->duty and channel->inverted through the out-of-bounds element and used out-of-bounds timer_id/operator_id/generator_id values to index MCPWM hardware registers.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

zephyrproject · zephyr
medium5.9
CVE-2026-102961

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

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.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

zephyrproject · zephyr
medium5.9
CVE-2026-104930

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

The STM32 Ethernet driver built with CONFIG_ETH_STM32_HAL_API_V2 can stop receiving permanently after it drops one frame. eth_stm32_rx() in drivers/ethernet/eth_stm32_hal_v2.c drops a received frame when net_pkt_rx_alloc_with_buffer() or net_pkt_write() fails. It releases the frame's DMA buffers and returns NULL. rx_thread() reads that NULL as "ring empty" and blocks on rx_int_sem. The HAL only re-arms RX descriptors inside the next HAL_ETH_ReadData() call, because the dropped frame's buffers were still marked in use while HAL_ETH_ReadData() ran. So that frame's descriptors are left without DMA ownership.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

zephyrproject · zephyr
medium5.9
CVE-2026-104379

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

net_if_try_send_data() in subsys/net/ip/net_if.c reads net_pkt_family(pkt) a second time after calling net_ipv6_prepare_for_send(). When that function returns NET_CONTINUE it has already handed the packet off: IPv6 fragmentation (CONFIG_NET_IPV6_FRAGMENT) unreferences it before returning, and the neighbor discovery path queues it on the neighbor's pending queue, from where the RX thread may transmit and free it as soon as a Neighbor Advertisement arrives, or the NS error and timeout paths may free it.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

zephyrproject · zephyr
medium6.5
CVE-2026-104929

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

The STM32WBA HCI driver (drivers/bluetooth/hci/hci_stm32wba.c) receives every HCI event and ACL/ISO packet from the ST link-layer library through BLECB_Indication(). Returning 1 from this callback, together with setting ll_state_busy, tells the controller that the host has no buffers. The controller then holds the packet and indicates it again later. Before this fix, receive_data() turned every failure from treat_evt(), treat_acl() and treat_iso() into -ENOMEM, and BLECB_Indication() reported it as busy. Malformed packets and packets too large for the host RX buffer were included.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

zephyrproject · zephyr
high8.8
CVE-2026-104378

Out-of-bounds write in DesignWare I3C driver direct CCC handling via unbounded target count

The Synopsys DesignWare I3C controller driver (drivers/i3c/i3c_dw.c) builds one command descriptor per target when issuing a direct CCC in dw_i3c_do_ccc(). It stored payload->targets.num_targets in xfer->ncmds and filled xfer->cmds[i] for every target without checking the count against the size of the cmds[] array (DW_I3C_MAX_CMD_BUF_SIZE, 16 entries). A direct CCC with more than 16 targets wrote command descriptors past the end of struct dw_i3c_xfer, which is embedded in the driver's per-instance struct dw_i3c_data.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

zephyrproject · zephyr