ZephyrOperating system · Zephyrproject

CVE-2026-10653

HIGH · 8.1 CVSS v3.1 Published 2026-06-30
Fix available
A fix is available. Upgrade to after 4.4.1 or later.
See remediation →
90/100
Remediation priority · Urgent
Public exploit Remotely reachable No privileges Zero-click Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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).

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Zephyr's net_buf library uses non-atomic operations to manipulate reference counts (buf->ref++ and ref_count), allowing two concurrent callers to both believe they're the last holder of a buffer. This causes double-free of heap-allocated data blocks or corruption of the buffer pool free list.

MitigationUpdate to a Zephyr release containing the atomic operations fix (atomic_inc/atomic_dec for both refcounts). Applications should audit buffer-sharing patterns across threads, as the vulnerability is triggered by concurrent net_buf_unref() calls on the same buffer.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
ZephyrOperating system
Affected:>= 2.7.0, <= 4.4.1

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify Zephyr version in use
    Check the Zephyr version in your project by inspecting the VERSION file in the Zephyr base directory, or check the ZEPHYR_VERSION variable if using the Zephyr SDK. This is typically found in the west manifest or build configuration.
    Affected if The installed Zephyr version is between 2.7.0 and 4.4.1 inclusive, or if you cannot determine the exact version and are using a Zephyr release from this range.
  2. Confirm net_buf library is included
    Verify that your project uses the net_buf module by checking for inclusion of net_buf.h header, or by reviewing your build configuration (prj.conf) for CONFIG_NET_BUF setting.
    Affected if Your project includes and uses the net_buf library for buffer management.
  3. Check for concurrent execution context
    Determine if your Zephyr build has SMP (Symmetric Multiprocessing) enabled by checking for CONFIG_SMP=y in your build configuration, or if preemption is possible by verifying CONFIG_PREEMPT_ENABLED=y and multi-threading usage.
    Affected if SMP is enabled or your application uses multiple threads that can simultaneously access net_buf buffers.
  4. Inspect refcount implementation in net_buf source
    Examine the net_buf.c source file in your Zephyr tree (typically under subsys/net/buf.c). Look for non-atomic refcount operations: specifically check if ref and ref_count are modified using plain ++, --, or +=1/-=1 operators instead of atomic_inc/atomic_dec.
    Affected if The refcount operations use non-atomic C operators (plain increment/decrement) rather than atomic operations, making concurrent access unsafe.

You are affected if your Zephyr version is between 2.7.0 and 4.4.1, your project uses the net_buf library, your system supports concurrent execution (SMP or preemption), and the net_buf refcount code uses non-atomic operations.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to a release after 4.4.1
Vendor patch github.com →
Interim mitigation

Update to a Zephyr release containing the atomic operations fix (atomic_inc/atomic_dec for both refcounts). Applications should audit buffer-sharing patterns across threads, as the vulnerability is triggered by concurrent net_buf_unref() calls on the same buffer.

Recommended fix High confidence

Zephyr v4.4.2 or later

  1. Identify the current Zephyr version in use by checking the VERSION file or west manifest
  2. If running a version >= 2.7.0 and <= 4.4.1, upgrade to Zephyr v4.4.2 or later
  3. Alternatively, apply the vendor patch from commit 9bb2878319d5f46c29ab5fe855a378d87cd75fc3 which converts buf->ref and data-block ref_count to atomic operations
  4. Verify the fix by building the project and running any existing reference counting tests (e.g., tests/lib/net_buf/)
Caveat atomic_t requires slightly more memory per buffer (4 bytes vs 1 byte for data refcount); verify memory budget if tightly constrained

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Zephyr Scoped from the published advisory
  • Consultation8.0 h
  • Implementation16.0 h
  • Testing24.0 h
  • Review / QA12.0 h
60.0 hours of engineering $10,240
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $16,384.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-10653 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-10653 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data