# CVE-2026-19938: Use-after-free of an ATT PDU buffer when signing an outgoing Bluetooth ATT Signed Write Command fails

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

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; 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.25% (percentile 10, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2026-10-12T23:19:55.449Z
- **Modified:** 2026-11-04T05:18:51.937Z

## Who should check

- Anyone running zephyrproject zephyr \>= 2.3.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0

## Description

The Bluetooth host's ATT transmit path releases a buffer it does not own when signing fails. chan\_send() in subsys/bluetooth/host/att.c documents (and every other error exit implements) the contract that on failure the caller retains ownership of the net\_buf; the BT\_ATT\_OP\_SIGNED\_WRITE\_CMD branch instead called net\_buf\_unref(buf) when bt\_smp\_sign() returned an error and then returned that error to the caller. The callers act on the contract: process\_queue() re-queues the buffer with k\_queue\_prepend(), bt\_att\_chan\_send\_rsp() puts it back on chan-\>tx\_queue, bt\_att\_chan\_req\_send() restores it into the request, and att\_req\_retry() unreferences it — so the already-freed buffer was re-queued, later dereferenced, and eventually freed again.

An ATT Signed Write Command is produced when an application calls bt\_gatt\_write\_without\_response\_cb() with sign set on an unencrypted connection. bt\_smp\_sign() fails whenever no local CSRK exists for the peer (-ENOENT), and whether one exists is negotiated with the peer: smp\_distribute\_keys() stores a local CSRK only when the peer's pairing key-distribution field requests the signing key and bonding was agreed. A peer can therefore pair without accepting the CSRK, pair with No Bonding, remain unpaired, or keep the link unencrypted, and the victim's next signed write takes the failing path. Because struct net\_buf's node field is simultaneously the linkage word for the ATT TX FIFO, for the deferred-destroy list used by the att\_pool destroy callback att\_tx\_destroy(), and for the pool free list, the mishandled buffer corrupts these lists and can be re-issued by bt\_att\_create\_pdu() to a new PDU while the ATT TX path still holds it.

The same branch also saved the net\_buf\_simple\_state only after signing, so a buffer restored after a bt\_l2cap\_send\_pdu() failure kept its 12-octet signature; a subsequent retry re-signed it and appended a second signature with net\_buf\_add(buf, 12) to a buffer that bt\_att\_create\_pdu() sized for exactly one, writing past the end of the pooled buffer in builds where the net\_buf tailroom assertion is compiled out.

Impact is host-side memory corruption in the Bluetooth stack: list corruption, a pooled ATT buffer with two owners (wrong PDU contents transmitted, or a double free when the queues are drained at disconnect), and a bounded out-of-bounds write on the retry path — typically observed as a crash or assertion failure. Exposure requires the deprecated CONFIG\_BT\_SIGNING to be enabled and an application that actually issues signed writes; in that configuration the triggering condition is under the remote peer's control.

## Affected and fixed versions

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

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

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

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

Medium: CVSS 5.9 (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-19938?

zephyrproject zephyr \>= 2.3.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0.

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

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

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

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-p3r4-qw98-j59m>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/ba8627d91c8ce15c26224cbc7f7f92bb66f56b03>

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

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