{"id":"CVE-2026-10685","published":"2026-07-31T14:41:47Z","modified":"2026-11-04T04:59:06Z","title":"Use-after-free of GATT subscribe params in Bluetooth host CCC-write response handler","vendor":"zephyrproject","product":"zephyr","tier":"tail","description":{"text":"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).\n\nPer 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.\n\nThe 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).\n\nFor 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00304,"percentile":0.23761,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/commit/c7292f20223637232b6f962141725611a38f6a52","tags":["patch"]},{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-29xh-jm2m-4qvx","tags":[]}],"priority":{"score":10.1,"factors":[{"name":"EPSS percentile","points":4.75},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"zephyrproject","affectedVersions":[{"vendor":"zephyrproject","product":"zephyr","versions":[">= 2.4.0, < 4.3.2",">= 4.4.0, < 4.4.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-31T17:46:39.697257Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-51554","exploited":false,"provenance":"source"}}