CVE-2026-11742: use-after-free in zephyrproject zephyr
The kernel queue helper z_queue_node_peek() in kernel/queue.c dereferences a node taken from a queue's data_q list, reading the node's flag byte and, for items enqueued via k_queue_alloc_append/alloc_prepend, the data pointer of an internally allocated alloc_node struct. The implementations of z_impl_k_queue_peek_head() and z_impl_k_queue_peek_tail() performed this read-and-dereference without holding the queue's spinlock, while every other accessor of the same list — including k_queue_get(), which unlinks a node and k_free()s its backing alloc_node — operates under that lock. Because peek was unsynchronized, a concurrent k_queue_get() on the same queue (on an SMP build, or under preemption/ISR concurrency) can free the node between the moment peek obtains the node pointer and the moment it dereferences it. The peek then reads flag bits and a data pointer out of freed, potentially re-allocated heap memory and returns a stale or dangling pointer to its caller. k_fifo and k_lifo are thin wrappers over k_queue, so this affects buffer queues used throughout the net_buf, Bluetooth, USB, and networking subsystems; the peek operations are also system calls reachable from CONFIG_USERSPACE threads. The consequences are a use-after-free read that can leak stale heap contents (one pointer word) and, when the returned dangling pointer is subsequently consumed as a live buffer, a dereference that can crash the system or corrupt memory. Exploitation requires winning a small race window with local access (e.g. a userspace process racing k_queue_peek_* against k_queue_get on a shared queue, or two CPUs), so practical impact is bounded and of low severity. The fix wraps both peek implementations with k_spin_lock/k_spin_unlock on the queue lock, making the read-and-dereference atomic with respect to the concurrent unlink-and-free and bringing peek into line with the rest of the queue's locking discipline.
AI Analysis
Technical Summary
The kernel queue helper function z_queue_node_peek() in Zephyr's kernel/queue.c reads a node from a queue's data_q list without holding the queue's spinlock, unlike other queue accessors that do hold the lock. This unsynchronized access allows a concurrent k_queue_get() operation to free the node between the peek obtaining the pointer and dereferencing it, causing a use-after-free. The peek then reads flag bits and a data pointer from freed memory and returns a stale or dangling pointer. This affects k_fifo and k_lifo wrappers and subsystems like net_buf, Bluetooth, USB, and networking. The vulnerability can leak stale heap contents or cause crashes/memory corruption if the dangling pointer is used. Exploitation requires a race condition with local access (e.g., userspace threads or SMP concurrency). The fix is to wrap peek implementations with k_spin_lock/k_spin_unlock to synchronize access and prevent the race.
Potential Impact
The vulnerability allows a low-severity use-after-free condition that can leak a small amount of stale heap memory (one pointer word) and potentially cause system crashes or memory corruption if the dangling pointer is dereferenced. Exploitation requires winning a race condition locally, limiting the practical impact. There is no indication of remote exploitation or widespread active exploitation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves adding spinlock protection around the peek operations to prevent concurrent free races. Until an official fix is available, avoid concurrent peek and get operations on the same queue from different threads or CPUs. Monitor vendor advisories for updates and apply official patches once released.
CVE-2026-11742: use-after-free in zephyrproject zephyr
Description
The kernel queue helper z_queue_node_peek() in kernel/queue.c dereferences a node taken from a queue's data_q list, reading the node's flag byte and, for items enqueued via k_queue_alloc_append/alloc_prepend, the data pointer of an internally allocated alloc_node struct. The implementations of z_impl_k_queue_peek_head() and z_impl_k_queue_peek_tail() performed this read-and-dereference without holding the queue's spinlock, while every other accessor of the same list — including k_queue_get(), which unlinks a node and k_free()s its backing alloc_node — operates under that lock. Because peek was unsynchronized, a concurrent k_queue_get() on the same queue (on an SMP build, or under preemption/ISR concurrency) can free the node between the moment peek obtains the node pointer and the moment it dereferences it. The peek then reads flag bits and a data pointer out of freed, potentially re-allocated heap memory and returns a stale or dangling pointer to its caller. k_fifo and k_lifo are thin wrappers over k_queue, so this affects buffer queues used throughout the net_buf, Bluetooth, USB, and networking subsystems; the peek operations are also system calls reachable from CONFIG_USERSPACE threads. The consequences are a use-after-free read that can leak stale heap contents (one pointer word) and, when the returned dangling pointer is subsequently consumed as a live buffer, a dereference that can crash the system or corrupt memory. Exploitation requires winning a small race window with local access (e.g. a userspace process racing k_queue_peek_* against k_queue_get on a shared queue, or two CPUs), so practical impact is bounded and of low severity. The fix wraps both peek implementations with k_spin_lock/k_spin_unlock on the queue lock, making the read-and-dereference atomic with respect to the concurrent unlink-and-free and bringing peek into line with the rest of the queue's locking discipline.
CVSS v3.1
Score 3.6low
Affected software
zephyrproject
zephyr
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The kernel queue helper function z_queue_node_peek() in Zephyr's kernel/queue.c reads a node from a queue's data_q list without holding the queue's spinlock, unlike other queue accessors that do hold the lock. This unsynchronized access allows a concurrent k_queue_get() operation to free the node between the peek obtaining the pointer and dereferencing it, causing a use-after-free. The peek then reads flag bits and a data pointer from freed memory and returns a stale or dangling pointer. This affects k_fifo and k_lifo wrappers and subsystems like net_buf, Bluetooth, USB, and networking. The vulnerability can leak stale heap contents or cause crashes/memory corruption if the dangling pointer is used. Exploitation requires a race condition with local access (e.g., userspace threads or SMP concurrency). The fix is to wrap peek implementations with k_spin_lock/k_spin_unlock to synchronize access and prevent the race.
Potential Impact
The vulnerability allows a low-severity use-after-free condition that can leak a small amount of stale heap memory (one pointer word) and potentially cause system crashes or memory corruption if the dangling pointer is dereferenced. Exploitation requires winning a race condition locally, limiting the practical impact. There is no indication of remote exploitation or widespread active exploitation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves adding spinlock protection around the peek operations to prevent concurrent free races. Until an official fix is available, avoid concurrent peek and get operations on the same queue from different threads or CPUs. Monitor vendor advisories for updates and apply official patches once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-06-09T05:26:13.901Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a764da6bf8831d5392fda82
Added to database: 08/07/2026, 21:27:02 UTC
Last enriched: 08/15/2026, 15:13:18 UTC
Last updated: 09/22/2026, 01:52:41 UTC
Views: 69
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.