# CVE-2026-10653: Non-atomic \`net\_buf\` reference counts cause double-free / free-list corruption under concurrent unref

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

- **Severity:** MEDIUM 6.4
- **CVSS:** 6.4 (v3.1, CNA) `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; 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.42% (percentile 28, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2026-06-30T16:20:16.798Z
- **Modified:** 2026-11-04T04:58:31.211Z

## Who should check

- Anyone running zephyrproject zephyr \>= 2.7.0, \< 4.3.1; \>= 4.4.0, \< 4.4.2

## Description

The Zephyr net\_buf library (lib/net\_buf/buf.c) manipulated both of its reference counts -- the per-header buf-\>ref and the per-data-block ref\_count at the start of each variable/heap data allocation -- with plain non-atomic C operators (buf-\>ref++, if (--buf-\>ref \> 0), if (--(\*ref\_count))).

The API is documented as self-synchronizing: callers may share one buffer across threads (e.g. via k\_fifo) and each holder independently calls net\_buf\_unref() with no surrounding lock. Under true concurrency (SMP, or single-core preemption between the non-atomic load and store while another context unrefs the same buffer), two holders can both observe the same prior reference value and both conclude they are the last reference.

For heap/variable-data pools (mem\_pool\_data\_unref/heap\_data\_unref, used by zbus message subscribers, the IP stack RX/TX buffers when CONFIG\_NET\_BUF\_FIXED\_DATA\_SIZE=n, capture, wireguard, ISO-TP and usbip) this produces a double k\_heap\_free()/k\_free() of the same block -- heap-metadata corruption and a use-after-free on the heap-hardening poison pattern.

For the per-header refcount the buffer is returned to the pool free LIFO twice for any pool type (including fixed-data pools used by Bluetooth and networking), corrupting the free list so a later allocation hands the same buffer to two owners.

The fix converts both refcounts to atomic\_inc/atomic\_dec (overlaying buf-\>ref in an atomic\_t-sized union and changing the data-block refcount from uint8\_t to atomic\_t).

Impact is gated on genuine concurrency and on an application architecture that shares one buffer among multiple independent unref'ers; the trigger is a refcount/timing race rather than packet content, so an external attacker has at most weak indirect influence over the race window. Affects all Zephyr releases through v4.4.0.

This fix is not being backported to v3.7-branch (LTS). The backport was attempted and closed unmerged (\#111181): the v3.7 networking tree has diverged from main, and the new atomic word-packing -- together with the assertions it adds -- turns pre-existing v3.7-only reference-counting defects elsewhere in the stack into hard faults, so landing the change faithfully would mean pulling an open-ended set of additional v3.7-only fixes into an LTS branch. v3.7 remains affected. Applications on v3.7 that share one net\_buf across threads should serialize their own net\_buf\_unref() calls rather than rely on the documented self-synchronizing behaviour. The fix is on main and has been backported to v4.3-branch (\#110852) and v4.4-branch (\#110853).

## Affected and fixed versions

- zephyrproject zephyr: \>= 2.7.0, \< 4.3.1; \>= 4.4.0, \< 4.4.2 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-10653.md
Affected: zephyrproject zephyr >= 2.7.0, < 4.3.1; >= 4.4.0, < 4.4.2
Fixed in: zephyrproject zephyr 4.3.1, zephyrproject zephyr 4.4.2

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

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

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

Medium: CVSS 6.4 (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-10653?

zephyrproject zephyr \>= 2.7.0, \< 4.3.1; \>= 4.4.0, \< 4.4.2.

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

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

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

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-284j-5jm9-55hh>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/9bb2878319d5f46c29ab5fe855a378d87cd75fc3>

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

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