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

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.36% (percentile 22, 2026-11-28)
- **CWE:** CWE-911
- **Published:** 2026-11-20T17:54:12.627Z
- **Modified:** 2026-11-20T19:18:57.673Z

## Who should check

- Anyone running zephyrproject zephyr \>= 3.7.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0

## Description

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 loss of a configured IP address while connections are still using it, and a corrupted reference count that propagates: the slot can be handed to a newly added address, and when the stale holder later tears down, net\_if\_addr\_unref() resolves the address by value and drops the new incarnation's only reference, removing a live address a second time. The affected objects are static array slots and the counter is never decremented below zero, so there is no memory corruption or information disclosure; the consequence is denial of service against the device's network connectivity, repeatable at the attacker's pace.

The fix resolves the address before touching the reference count and returns false without calling net\_if\_addr\_unref() when the address is already marked as removed, so the public removal API can no longer consume a reference it does not own.

## Affected and fixed versions

- zephyrproject zephyr: \>= 3.7.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0 (cvelist)

## Technologies

Zephyr RTOS

## Mitigation

- Upgrade zephyr to 4.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-95825. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-95825.md
Affected: zephyrproject zephyr >= 3.7.0, < 4.3.2; >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-95825 being exploited?

There is no confirmed exploitation: CVE-2026-95825 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.36% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-95825?

Medium: CVSS 5.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-95825?

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

### Is there a fix for CVE-2026-95825?

Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

### How do I check if I'm affected by CVE-2026-95825?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gfv3-7jx7-4jhc>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/6c90a4581c492802e4f83f1a0b429e9bb0374f33>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-95825>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-95825> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-95825>
