# CVE-2026-19935: Use-after-free of an L2CAP CoC channel object in the Zephyr Bluetooth host: RX work item is not cancelled on channel teardown

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **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.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-10-11T17:15:03.386Z
- **Modified:** 2026-11-04T05:18:51.360Z

## Who should check

- Anyone running zephyrproject zephyr \>= 2.0.0, \< 4.5.0

## Description

The Bluetooth LE host queues received L2CAP connection-oriented channel (CoC) data for deferred processing through a struct k\_work embedded in the channel object (le\_chan-\>rx\_work, handler l2cap\_rx\_process()) whenever the channel uses a dynamic PSM (0x0080-0x00FF). Channel teardown in l2cap\_chan\_destroy() in subsys/bluetooth/host/l2cap.c cancels the retransmission-timeout work and drains the RX FIFO, but never cancels rx\_work. Because that work item was submitted to the system workqueue while HCI receive processing runs on the dedicated Bluetooth RX workqueue (CONFIG\_BT\_RECV\_WORKQ\_BT, the default), a queued rx\_work item can outlive the channel it points into.

A remote, unauthenticated peer with an established CoC channel triggers this by sending a data K-frame immediately followed by an L2CAP Disconnect Request. The K-frame submits rx\_work to the system workqueue; because both workqueue threads are cooperative and the Bluetooth RX workqueue runs at the higher priority (K\_PRIO\_COOP(CONFIG\_BT\_RX\_PRIO) versus CONFIG\_SYSTEM\_WORKQUEUE\_PRIORITY), the pending item cannot run before the following Disconnect Request is processed in le\_disconn\_req() -\> l2cap\_chan\_del() -\> l2cap\_chan\_destroy(). The stack then invokes the released() callback, which the API documents as meaning the stack has dropped all references and the application may free the channel memory.

The application therefore frees or re-accepts into an object that the system workqueue still holds in its pending list. If the memory is freed and reallocated, the workqueue later dereferences a list node and a handler function pointer read from reused memory; if the object is re-used for a later connection, l2cap\_chan\_add() calls k\_work\_init() on a still-enqueued work item, corrupting the workqueue's pending list so that unrelated work items are dropped or the queue spins on a looped list. A related variant lets l2cap\_rx\_process() run concurrently with teardown, racing the net\_buf unref of le\_chan-\>\_sdu and the clearing of chan-\>conn.

The fix routes the channel RX work to the Bluetooth workqueue - the same context in which every teardown path runs - and adds an explicit k\_work\_cancel() of le\_chan-\>rx\_work in l2cap\_chan\_destroy(), so no reference to the channel survives the released() callback. Configurations without CONFIG\_BT\_L2CAP\_DYNAMIC\_CHANNEL, or that only use SIG-assigned PSMs (EATT 0x0027, OTS 0x0025) which take the inline receive path, are not affected.

## Affected and fixed versions

- zephyrproject zephyr: \>= 2.0.0, \< 4.5.0 (cvelist)

## Mitigation

- Upgrade zephyr to 4.5.0 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-19935. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-19935.md
Affected: zephyrproject zephyr >= 2.0.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.5.0

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-19935 being exploited?

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

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

High: CVSS 7.5 (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-19935?

zephyrproject zephyr \>= 2.0.0, \< 4.5.0.

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

Yes. Fixed in zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

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

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-6gp4-cwf7-2vp8>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/22896cb8d6f23feffe4b637119fb3e974ac3bed8>

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

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