CVE-2026-10653
Last modified
CVE-2026-10653 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 0.28% chance of exploitation in the next 30 days.
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).
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Zephyrproject | Zephyr | >= 2.7.0, <= 4.4.1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-10653?
How severe is CVE-2026-10653?
How do I fix CVE-2026-10653?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-10648mcumgr_serial_process_frag() in subsys/mgmt/mcumgr/transport…5.5
- CVE-2026-10649A flaw was found in Pacemaker. An unauthenticated remote att…8.6
- CVE-2026-1065The Form Maker by 10Web plugin for WordPress is vulnerable t…7.2
- CVE-2026-10650A flaw has been found in warmcat libwebsockets up to 4.5.8. …5.5
- CVE-2026-10651bt_sdp_parse_attribute() in subsys/bluetooth/host/classic/sd…6.5
- CVE-2026-10652Zephyr's DNS resolver (subsys/net/lib/dns) parses resource r…7.4
- CVE-2026-10654A race condition in the Zephyr Bluetooth Classic RFCOMM host…3.1
- CVE-2026-10655The asynchronous SNTP client in Zephyr (subsys/net/lib/sntp/…5.9
- CVE-2026-10656The MAX32xxx USB device controller driver (drivers/usb/udc/u…4.6
- CVE-2026-10657Zephyr's DNS resolver detects mDNS (.local) queries in dns_r…5.3
- CVE-2026-10658bt_iso_recv() in subsys/bluetooth/host/iso.c pulled the ISO …7.1
- CVE-2026-10659The Dhara flash translation layer disk driver (drivers/disk/…4.7
Are you affected by CVE-2026-10653?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
