# CVE-2026-104379: Zephyr RTOS use-after-free in IPv6 packet handling

Source: https://junglewise.ai/threats/cve-2026-104379-net-if-try-send-data-in-subsys-net-ip-net-if-c-reads-net-pkt  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-11-29. Updated: 2026-11-29  
License: CC BY 4.0 with a link back

CVE-2026-104379 · Severity: medium · CVSS 5.9 · Published 2026-11-29

Zephyr RTOS is an embedded real-time operating system used in IoT and microcontroller devices. A race condition in the network stack's packet transmission code can cause the same memory to be freed twice or used after being freed, typically crashing the device. An attacker on an adjacent network can trigger this by sending specific traffic patterns to dual-stack devices (those supporting both IPv4 and IPv6).

Technologies: [Zephyr Project Zephyr RTOS](https://junglewise.ai/threats/technologies/zephyr). Vendors: [Zephyr Project](https://junglewise.ai/threats/vendors/zephyr-project).

## Quick answers

**Is CVE-2026-104379 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-104379 being exploited in the wild.

**How severe is CVE-2026-104379?** Medium severity, with a CVSS score of 5.9, published 29 November 2026.

**Which products and versions are affected?** Zephyr Project Zephyr RTOS.

**Is there a fix for CVE-2026-104379?** No fixed version is recorded yet. Disable IPv6 fragmentation (CONFIG_NET_IPV6_FRAGMENT) or avoid dual-stack configurations where both IPv4 and IPv6 are enabled simultaneously if the fix cannot be applied immediately. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-104379 attacked?** It is attacked from the adjacent network, in an operating system.

**Am I affected by CVE-2026-104379?** Check whether you run Zephyr Project Zephyr RTOS. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix


Disable IPv6 fragmentation (CONFIG_NET_IPV6_FRAGMENT) or avoid dual-stack configurations where both IPv4 and IPv6 are enabled simultaneously if the fix cannot be applied immediately.

## Technical details

The vulnerability exists in net_if_try_send_data() in subsys/net/ip/net_if.c, which reads the packet family field twice with an intervening call to net_ipv6_prepare_for_send(). When that function returns NET_CONTINUE, it has handed off the packet and may free it before the calling thread resumes. If the freed packet memory is reallocated to an IPv4 packet, the stale pointer read causes the IPv4 path to run on a foreign packet, leading to double-free or use-after-free conditions. The race can be triggered by an adjacent attacker sending Neighbor Solicitation responses alongside IPv4 traffic on a dual-stack device.

## Affected products

- Zephyr Project Zephyr RTOS

## Timeline

- 2026-11-29: disclosed

## References

- [https://github.com/zephyrproject-rtos/zephyr](https://github.com/zephyrproject-rtos/zephyr)
- [https://github.com/zephyrproject-rtos/zephyr/commit/a38cb68982a7da25d75151997e1c3e4fe62772d9](https://github.com/zephyrproject-rtos/zephyr/commit/a38cb68982a7da25d75151997e1c3e4fe62772d9)

## Related threats

- [Zephyr USB device_next NULL pointer dereference in control handlers](https://junglewise.ai/threats/cve-2026-104931-since-the-control-transfer-rework-in-the-device-next-usb-device)
- [Zephyr SOCKS5 client use-after-free in stack callbacks](https://junglewise.ai/threats/cve-2026-95821-the-socks5-client-in-subsys-net-lib-socks-socks-c-passes-the)
- [Zephyr STM32 Ethernet driver denial of service after packet drop](https://junglewise.ai/threats/cve-2026-104930-the-stm32-ethernet-driver-built-with-config-eth-stm32-hal-api-v2)
- [Zephyr kernel object core framework use-after-free memory corruption](https://junglewise.ai/threats/cve-2026-104376-the-kernel-object-core-framework-kernel-obj-core-c-linked-every)
- [Zephyr IPv4/IPv6/6LoWPAN fragment reassembly race condition](https://junglewise.ai/threats/cve-2026-102961-zephyr-s-ipv6-ipv4-and-ieee-802-15-4-6lowpan-fragment-reassembly)
