# CVE-2026-11742: Use-after-free race in kernel \`k\_queue\_peek\_head/tail\` due to missing spinlock

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

- **Severity:** LOW 3.6
- **CVSS:** 3.6 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: Low
- **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.13% (percentile 1, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2026-08-07T21:10:23.002Z
- **Modified:** 2026-11-04T05:18:29.600Z

## Who should check

- Anyone running zephyrproject zephyr \>= 1.12.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2

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

## Affected and fixed versions

- zephyrproject zephyr: \>= 1.12.0, \< 4.3.2; \>= 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-11742. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-11742.md
Affected: zephyrproject zephyr >= 1.12.0, < 4.3.2; >= 4.4.0, < 4.4.2
Fixed in: zephyrproject zephyr 4.3.2, 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-11742 being exploited?

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

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

Low: CVSS 3.6 (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-11742?

zephyrproject zephyr \>= 1.12.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2.

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

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

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

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-8xm3-4w69-29mm>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/a6b6149a50cb0f64061869f7536acbf80ccc5e0c>

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

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