Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconEnter Bluetooth radio range of target
-
DeliveryConnect as GATT server peer
-
ExploitAccept GATT client subscription request (CCC write)
-
InstallReply with ATT Error Response
-
C2Trigger notify(NULL) before subscribe() in gatt_write_ccc_rsp()
-
ExecuteDereference freed params->subscribe pointer
-
ImpactCrash device or redirect execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target must be a Zephyr RTOS device operating in the GATT client role - specifically, it must have called bt_gatt_subscribe() to register for notifications from a remote GATT server. The vulnerability is triggered only when the remote GATT server (controlled by the attacker) replies to the CCC-write request with an ATT Error Response; a compliant server returning success does not trigger the path. Memory corruption additionally requires that the application's notify termination callback (called with NULL data) frees or recycles the bt_gatt_subscribe_params struct, which is the API-documented pattern but not universal. Applications that never free or reuse the struct in the notify callback will still receive the out-of-order subscribe callback but will not experience a use-after-free. Exploitation is bounded to Bluetooth adjacency - the attacker must be within radio range and must successfully complete Bluetooth pairing or connection to the victim device (depending on the device's pairing requirements). Authentication is not required from the attacker's perspective since they operate as the peer server role. |
| Impact | The CVSS 7.6 with AV:A accurately captures the most critical real-world constraint: the attacker must be within Bluetooth radio range of the target. This is a meaningful physical-proximity barrier that substantially reduces the exposed attack surface compared to network-reachable flaws of similar score. AC:L reflects that triggering the condition requires only a single ATT Error Response - no complex exploit chain. PR:N is correct from the attacker's vantage as the peer GATT server. A:H dominates the score and reflects the most reliable impact: a crash resulting from a bad function-pointer dereference. C:L and I:L acknowledge that memory corruption opens a theoretical path to controlled code execution, but this is highly dependent on heap layout and application behavior at the time of exploitation. No EPSS data was provided and the CVE is not in CISA KEV, indicating no confirmed or widespread exploitation. The requirement that the target application also frees or recycles bt_gatt_subscribe_params inside the notify termination handler is a second prerequisite that further limits the exploitable population to applications following the documented lifecycle pattern. |
| Exploit ScenarioDerived | An attacker within Bluetooth radio range of a Zephyr GATT client device advertises as a GATT server and accepts the client connection. When the Zephyr device calls bt_gatt_subscribe() and sends a CCC write to register for notifications, the attacker replies with an ATT Error Response containing an arbitrary error code. This drives the vulnerable gatt_write_ccc_rsp() code path: notify(NULL) fires first, the application frees bt_gatt_subscribe_params, and then the handler calls params->subscribe() through the now-freed function pointer - crashing the device or, with pre-conditioned heap state, redirecting execution. No public proof-of-concept code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 31, 2026
Use-after-free in the Zephyr RTOS Bluetooth GATT client stack allows an adjacent Bluetooth peer acting as a GATT server to crash a Zephyr device or potentially redirect its execution by replying to a CCC-write with an ATT Error Response. The defect is a callback-ordering bug in gatt_write_ccc_rsp(): the API-documented termination signal notify(NULL) was emitted before subscribe(), so applications that free or recycle bt_gatt_subscribe_params in their termination handler dereference a dangling function pointer. No public exploit code or CISA KEV entry exists; a vendor patch commit is available but a specific tagged release version has not been confirmed.
RemediationAI
Apply the upstream fix from commit c7292f20223637232b6f962141725611a38f6a52 (https://github.com/zephyrproject-rtos/zephyr/commit/c7292f20223637232b6f962141725611a38f6a52), which reorders both the ATT error path and the unsubscribe path in gatt_write_ccc_rsp() so that params->subscribe() is always invoked before params->notify(NULL). Monitor the GitHub security advisory at https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-29xh-jm2m-4qvx for an official tagged release containing this fix, as a specific patched version number was not confirmed from available data. As a compensating control where patching is not immediately feasible, application developers should defer freeing or recycling bt_gatt_subscribe_params to a workqueue or system thread context rather than directly inside the notify termination callback; this breaks the use-after-free chain without requiring a kernel patch but adds scheduling latency to subscription teardown. Restricting which Bluetooth peers the device will connect to via allowlisting (if supported by the platform) reduces exposure by preventing arbitrary adjacent attackers from acting as GATT server peers.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in subsys/bluetooth/host/gatt.c within the Zephyr RTOS Bluetooth Host stack (CPE: cpe:2.3:a:zephyrproject:zephyr:*:*:*:*:*:*:*:*). GATT (Generic Attribute Profile) runs over ATT (Attribute Protocol) on BLE and uses Client Characteristic Configuration (CCC) descriptors to establish notification/indication subscriptions. The bt_gatt_subscribe_params struct carries two application-supplied callbacks - notify() and subscribe() - and its lifetime is governed by API contract: a notify(conn, params, NULL, 0) call is the documented signal that the subscription has ended and the struct may be freed or reused. The original code in the error branch (att_error_rsp → att_handle_rsp → gatt_write_ccc_rsp) invoked notify(NULL) first, then subscribe(); any application conforming to the documented contract could free the struct inside the notify handler, causing the subsequent subscribe() call through the freed params->subscribe function pointer to constitute a CWE-416 use-after-free. The fix (commit c7292f20223637232b6f962141725611a38f6a52) reorders both the error path and the unsubscribe path so subscribe() is always called before notify(NULL).
Know when Zephyr gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
Bluetooth adjacency bounds reach to radio range; attacker needs no credentials as peer GATT server; A:H reflects reliable crash from freed function-pointer dereference.
Primary rating from Vendor (zephyr).
CVSS VectorVendor: zephyr
DescriptionCVE.org
The Zephyr Bluetooth GATT client CCC-write response handler gatt_write_ccc_rsp() in subsys/bluetooth/host/gatt.c invoked the application's params->subscribe() callback after it had already called params->notify(conn, params, NULL, 0).
Per the public GATT API, a notify callback with NULL data is the documented signal that the subscription has terminated and the bt_gatt_subscribe_params struct may be freed or reused by the application; calling subscribe() on the struct afterwards is a use-after-free, including an indirect call through the freed params->subscribe function pointer.
The error branch is remotely (adjacent) reachable: a Zephyr device acting as a GATT client that calls bt_gatt_subscribe() can be driven into this ordering when a connected GATT server peer answers the CCC write with an ATT Error Response (the peer-supplied error code flows through att_error_rsp -> att_handle_rsp into gatt_write_ccc_rsp).
For applications that free or recycle subscription parameters in their notification-termination handler, this results in memory corruption, a crash (denial of service), or potentially attacker-influenced control flow. The fix reorders the handler so the subscribe() callback runs before the terminating notify(NULL) in both the error and unsubscribe paths.
Executive ViewAI
Zephyr RTOS devices with active Bluetooth GATT connections face a use-after-free vulnerability (CVE-2026-10685) that allows adjacent Bluetooth peers to crash the device or redirect its execution. Affected organizations running Zephyr-based IoT, industrial, or medical devices should prioritize assessment of their Bluetooth deployments, as this vulnerability impacts availability and system integrity.
Enforce strict Bluetooth access controls by enabling device pairing only with trusted, pre-approved GATT servers, disabling Bluetooth on systems without business need, and monitoring for unexpected connection attempts or device crashes. Patch available per vendor advisory.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),
An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on
Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit
Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS
Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner
Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability
Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable
DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul
zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(
Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul
The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte
Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c
EUVD-2026-51554
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB