# CVE-2026-10634: Use-after-free in Zephyr native TCP \`net\_tcp\_foreach()\` due to dropping \`tcp\_lock\` during the callback

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.8
- **CVSS:** 4.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: High; Privileges required: Low; 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.27% (percentile 13, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2026-06-15T14:16:43.871Z
- **Modified:** 2026-11-05T19:50:52.377Z

## Who should check

- Anyone running zephyrproject zephyr \>= 3.6.0, \< 4.3.1; \>= 4.4.0, \< 4.4.1

## Description

Zephyr's native TCP stack iterates the global connection list in net\_tcp\_foreach() (subsys/net/ip/tcp.c) using the SYS\_SLIST\_FOR\_EACH\_CONTAINER\_SAFE macro, which caches a pointer to the next list node. Prior to this fix the function released tcp\_lock while invoking the per-connection callback and re-acquired it afterwards.

During that window a concurrent tcp\_conn\_release(), running on the dedicated TCP work-queue thread when a connection's reference count drops to zero (e.g. a remote peer closing or resetting the connection), can remove and k\_mem\_slab\_free() the cached next connection. When the iterator advances it dereferences the freed (and possibly reallocated) slab memory — a use-after-free that can crash the system (denial of service) and, if the slot has been reused, cause the callback to operate on an attacker-influenced object (potential information disclosure or further fault).

net\_tcp\_foreach() is reached in production via the net conn network shell command and via net\_tcp\_close\_all\_for\_iface() on interface-down; the freeing side is driven by ordinary TCP traffic.

The fix moves the connection/context teardown in tcp\_conn\_release() inside the tcp\_lock critical section and keeps tcp\_lock held across the callback in net\_tcp\_foreach(). The defect was introduced with the modern (TCP2) stack in 2020 and affects releases up to and including v4.4.0.

## Affected and fixed versions

- zephyrproject zephyr: \>= 3.6.0, \< 4.3.1; \>= 4.4.0, \< 4.4.1 (cvelist)

## Mitigation

- Upgrade zephyr to 4.4.1 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-10634. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-10634.md
Affected: zephyrproject zephyr >= 3.6.0, < 4.3.1; >= 4.4.0, < 4.4.1
Fixed in: zephyrproject zephyr 4.3.1, zephyrproject zephyr 4.4.1

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-10634 being exploited?

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

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

Medium: CVSS 4.8 (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-10634?

zephyrproject zephyr \>= 3.6.0, \< 4.3.1; \>= 4.4.0, \< 4.4.1.

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

Yes. Fixed in zephyrproject zephyr 4.3.1, zephyrproject zephyr 4.4.1. Upgrade zephyr to 4.4.1 or later.

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

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-6c57-xfhw-j26x>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/cd85e0e890ab89815c4cbc0a8fbc03a3efa84dc2>

## 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-10634>

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