zephyrproject-rtos.zephyr is vulnerable to Double Free
59
Medium Risk
The Bouffalo Lab on-chip Bluetooth HCI driver send callback routes all error paths through a shared label that unrefs the transmit buffer, breaking the contract that the reference is consumed only on success. When send returns an error the host transmit path unrefs the same buffer again, over-decrementing its reference count and prematurely freeing a parent fragment still queued on the connection, a use-after-free that corrupts the shared net_buf pool. Controller send failures or unsupported packet types reach these paths, producing a Bluetooth-stack crash with possible further memory corruption. The fix returns early from error paths without unreffing and unrefs the buffer only on success.
You are affected if you are using a version that falls within the vulnerable range and you use the Bouffalo Lab on-chip Bluetooth HCI driver (BL60x/BL70x/BL61x).
zephyrproject-rtos.zephyr is vulnerable to Double Free in versions 4.4.0 - 4.4.1.
Upgrade the zephyrproject-rtos.zephyr library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant