Skip to content
DayZeroHub
Medium Not yet writtenCVSS 5.3CVE-2026-95825

CVE-2026-95825: Reference-count underflow in Zephyr network interface address removal releases an IP address that is still in use

zephyrproject zephyr

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-95825: medium-severity vulnerability (CVSS 5.3) in zephyrproject zephyr.

What happened

Original description from the source: net_if_ipv4_addr_rm() and net_if_ipv6_addr_rm() in subsys/net/ip/net_if.c unconditionally called net_if_addr_unref() on the target address. When an earlier removal could not complete because another subsystem still held a reference (the TCP stack takes one on the local address of every connection, in tcp_conn_new() and on connect()), the address is left in place with is_added cleared and is_used still set. A second removal of such an address decremented the reference count again, consuming a reference owned by that other holder. When it was the last one, the address slot was released, its NET_EVENT_IPV*_ADDR_DEL event fired, and the slot became reusable while the holder still believed it owned a reference. Every address lookup helper matches on is_used and not on is_added, so a half-removed address stays visible to the rest of the stack and repeat removals are readily reachable from remote input. Under IPv6 SLAAC, an on-link node that sends a Router Advertisement with a short valid lifetime causes the address to expire into the deferred state; a refreshing Router Advertisement is handled by net_if_ipv6_addr_update_lifetime(), which re-arms the lifetime timer without restoring the reference, so the next expiry performs the second, reference-stealing removal. With CONFIG_NET_IPV4_ACD and DHCPv4, repeated spoofed ARP conflicts for the device's lease drive dhcpv4_acd_event_handler() into calling net_if_ipv4_addr_rm() more than once on the same address. Where CONFIG_USERSPACE is enabled, the net_if_ipv4_addr_rm_by_index() and net_if_ipv6_addr_rm_by_index() system calls let an unprivileged user-mode thread trigger the same kernel-side release deterministically. The impact is l…

Why it matters

Medium severity, CVSS 5.3.

Affected products and versions

zephyrproject zephyr >= 3.7.0, < 4.3.2; zephyrproject zephyr >= 4.4.0, < 4.5.0

ProductVersionsFixed in
zephyrproject zephyr>= 3.7.0, < 4.3.2—
zephyrproject zephyr>= 4.4.0, < 4.5.0—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-911

Relevant change history

  1. Published

    Preliminary advisory published.