CVE-2026-11742: Zephyr Kernel - Use After Free
- Cve: CVE-2026-11742
- Name: Zephyr Kernel - Use After Free
- 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.
- Impact: Local attackers can cause memory corruption or leak stale heap contents, potentially crashing the system or corrupting memory.
- Remediation: Update to the latest version with k_spin_lock synchronization on peek operations.
- Vulnerability type: use_after_free
- Vulnerability impact: information_disclosure, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: low
- Cvss score: 3.6
- Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:L
- Epss score: 0.00127
- Epss percentile: 0.02368
- Assignee: [email protected]
- Published at: 2026-08-07T22:16:57Z
- Age in days: 109
- Modified at: 2026-11-04T05:18:29Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-11742
- Nvd status: awaiting_analysis
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-416 | Use After Free |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/zephyrproject-rtos/zephyr/commit/a6b6149a50cb0f64061869f7536acbf80ccc5e0c | nvd | |
| https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-8xm3-4w69-29mm | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| zephyrproject:zephyr | >= 4.4.0, < 4.4.2; >= 1.12.0, < 4.3.2 | no | cna_alias | /v1/products/zephyrproject/zephyr |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| zephyrproject-rtos/zephyr | commit, fix, security_advisory | yes | /v1/repositories/zephyrproject-rtos/zephyr |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts