# CVE-2026-19940: Bluetooth HFP AG reuses a connection slot while a delayable work item is still armed, corrupting kernel timeout bookkeeping

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

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-10-13T16:40:10.541Z
- **Modified:** 2026-11-04T05:18:52.310Z

## Who should check

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

## Description

The Bluetooth Classic Hands-Free Profile Audio Gateway implementation in subsys/bluetooth/host/classic/hfp\_ag.c keeps its struct bt\_hfp\_ag objects in a static pool indexed by ACL connection index. On link teardown, hfp\_ag\_disconnected() cancels ag-\>tx\_work and the per-call work items and then clears ag-\>acl\_conn, which marks the pool slot as free — but it leaves ag-\>ongoing\_call\_work (and ag-\>slc\_work) untouched. The next connection that lands on the same slot enters hfp\_ag\_create(), whose only occupancy test is ag-\>acl\_conn, and immediately executes memset(ag, 0, sizeof(struct bt\_hfp\_ag)) followed by k\_work\_init\_delayable(). Zeroing and re-initialising a k\_work\_delayable whose struct \_timeout node is still linked into the kernel timeout list leaves the kernel holding a reference to a node with NULL prev/next links.

ag-\>ongoing\_call\_work is armed by the remote peer: when a Hands-Free unit sends AT+CIND? during Service Level Connection establishment and the application provides the asynchronous get\_ongoing\_call callback, the AG schedules the work for CONFIG\_BT\_HFP\_AG\_GET\_ONGOING\_CALL\_TIMEOUT milliseconds (default 10000). The timer is cancelled only if the application answers in time via bt\_hfp\_ag\_ongoing\_calls(). A peer that sends AT+CIND?, then disconnects the HFP RFCOMM DLC, then immediately re-opens it on the same ACL link, reuses the same pool slot deterministically while the timeout is still pending — the AG's RFCOMM server accept path (hfp\_ag\_accept()) calls hfp\_ag\_create() directly, so the remote side drives both teardown and re-creation.

The result is corruption of the kernel's timeout list: sys\_dlist\_remove() on the zeroed node performs writes through NULL pointers from the clock-announce path, and rescheduling the re-initialised work re-inserts a node the list already references, creating a cycle that the announce loop walks with interrupts locked. The observable impact is a fault or hang of the whole system, i.e. a denial of service reachable from Bluetooth radio range; no attacker-controlled data is written, so this does not by itself yield code execution. Exposure is limited to builds with CONFIG\_BT\_HFP\_AG (marked experimental and disabled by default) whose application implements the asynchronous get\_ongoing\_call callback.

## Affected and fixed versions

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

Details: https://flawdb.com/CVE-2026-19940.md
Affected: zephyrproject zephyr >= 4.2.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-19940 being exploited?

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

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

Medium: CVSS 6.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-19940?

zephyrproject zephyr \>= 4.2.0, \< 4.5.0.

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

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-19940?

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-v47w-8959-rx62>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/204c36b896fe8d68ca3cb3d00216f245f91d14be>

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

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