CVE-2026-11894: use-after-free in zephyrproject zephyr
The Realtek BEE Bluetooth HCI driver's send callback, bt_hci_bee_send() in drivers/bluetooth/hci/hci_bee.c, violated the bt_hci_driver_api buffer-ownership contract. That contract requires the driver to consume (unref) the transmit net_buf only on success; on an error return the host caller retains ownership and unrefs the buffer itself. The pre-fix code routed all error paths through a shared cleanup label that unconditionally called net_buf_unref(buf) before returning the error code. Because the host TX paths (in subsys/bluetooth/host/hci_core.c) unref the buffer again after send() returns an error, the buffer is freed twice: the driver returns it to its net_buf pool and the host then unrefs the already-freed buffer, corrupting the shared pool / underflowing the reference count (CWE-415). The same error branch additionally dereferenced buf->len inside a LOG_ERR call after the buffer had already been unref'd, a read of freed memory (CWE-416) that is compiled in at the default error log level. The failing edges are reached when the controller's host-to-controller buffer allocation fails or the controller send fails (resource-exhaustion / IO conditions). A remote Bluetooth peer can push the device toward these conditions indirectly by driving heavy host transmit activity, at which point the double-free corrupts the host net_buf pool and most likely crashes the device, with residual potential for further memory corruption. The impact is confined to builds using this specific Realtek BEE HCI driver. The fix returns early from each error path without unreffing and unrefs the buffer only on the success path, restoring the ownership contract and eliminating both the double-free and the use-after-free read.
AI Analysis
Technical Summary
The Realtek BEE Bluetooth HCI driver's send callback function (bt_hci_bee_send) in Zephyr incorrectly handled buffer ownership on error returns by unconditionally calling net_buf_unref on the transmit buffer. The host also unreferences the buffer after an error, resulting in a double-free and use-after-free scenario that corrupts the shared net_buf pool. This occurs when host-to-controller buffer allocation or controller send operations fail, typically under resource exhaustion or IO error conditions. A remote Bluetooth peer can indirectly trigger these conditions by causing heavy transmit activity. The vulnerability is limited to builds using this specific Realtek BEE HCI driver. The fix modifies the error paths to avoid unreferencing the buffer on failure, restoring the ownership contract and eliminating the memory corruption issues.
Potential Impact
The vulnerability can cause memory corruption and device crashes due to double-free and use-after-free conditions in the Bluetooth HCI driver. This impacts device stability and availability but does not directly compromise confidentiality or integrity. The issue arises under specific error conditions related to buffer allocation or transmission failures, potentially triggered by remote Bluetooth peers through heavy transmit activity. The impact is confined to Zephyr builds using the Realtek BEE HCI driver.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix corrects the buffer ownership handling by unreferencing the transmit buffer only on successful sends and returning early on error paths without unreferencing. Users should monitor the official Zephyr project advisories for an official fix and apply updates when available. Until then, avoid configurations that heavily stress the Bluetooth transmit path if possible.
CVE-2026-11894: use-after-free in zephyrproject zephyr
Description
The Realtek BEE Bluetooth HCI driver's send callback, bt_hci_bee_send() in drivers/bluetooth/hci/hci_bee.c, violated the bt_hci_driver_api buffer-ownership contract. That contract requires the driver to consume (unref) the transmit net_buf only on success; on an error return the host caller retains ownership and unrefs the buffer itself. The pre-fix code routed all error paths through a shared cleanup label that unconditionally called net_buf_unref(buf) before returning the error code. Because the host TX paths (in subsys/bluetooth/host/hci_core.c) unref the buffer again after send() returns an error, the buffer is freed twice: the driver returns it to its net_buf pool and the host then unrefs the already-freed buffer, corrupting the shared pool / underflowing the reference count (CWE-415). The same error branch additionally dereferenced buf->len inside a LOG_ERR call after the buffer had already been unref'd, a read of freed memory (CWE-416) that is compiled in at the default error log level. The failing edges are reached when the controller's host-to-controller buffer allocation fails or the controller send fails (resource-exhaustion / IO conditions). A remote Bluetooth peer can push the device toward these conditions indirectly by driving heavy host transmit activity, at which point the double-free corrupts the host net_buf pool and most likely crashes the device, with residual potential for further memory corruption. The impact is confined to builds using this specific Realtek BEE HCI driver. The fix returns early from each error path without unreffing and unrefs the buffer only on the success path, restoring the ownership contract and eliminating both the double-free and the use-after-free read.
CVSS v3.1
Score 5.9medium
Affected software
zephyrproject
zephyr
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Realtek BEE Bluetooth HCI driver's send callback function (bt_hci_bee_send) in Zephyr incorrectly handled buffer ownership on error returns by unconditionally calling net_buf_unref on the transmit buffer. The host also unreferences the buffer after an error, resulting in a double-free and use-after-free scenario that corrupts the shared net_buf pool. This occurs when host-to-controller buffer allocation or controller send operations fail, typically under resource exhaustion or IO error conditions. A remote Bluetooth peer can indirectly trigger these conditions by causing heavy transmit activity. The vulnerability is limited to builds using this specific Realtek BEE HCI driver. The fix modifies the error paths to avoid unreferencing the buffer on failure, restoring the ownership contract and eliminating the memory corruption issues.
Potential Impact
The vulnerability can cause memory corruption and device crashes due to double-free and use-after-free conditions in the Bluetooth HCI driver. This impacts device stability and availability but does not directly compromise confidentiality or integrity. The issue arises under specific error conditions related to buffer allocation or transmission failures, potentially triggered by remote Bluetooth peers through heavy transmit activity. The impact is confined to Zephyr builds using the Realtek BEE HCI driver.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix corrects the buffer ownership handling by unreferencing the transmit buffer only on successful sends and returning early on error paths without unreferencing. Users should monitor the official Zephyr project advisories for an official fix and apply updates when available. Until then, avoid configurations that heavily stress the Bluetooth transmit path if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-06-10T15:25:18.616Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7ab61bbf8831d5393186f9
Added to database: 08/11/2026, 05:41:47 UTC
Last enriched: 08/11/2026, 05:59:31 UTC
Last updated: 09/23/2026, 13:47:42 UTC
Views: 55
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.