zephyrproject-rtos.zephyr is vulnerable to Double Free
59
Medium Risk
The Realtek BEE Bluetooth HCI driver send callback routes all error paths through a shared cleanup label that unrefs the transmit buffer, violating the contract that the buffer is consumed only on success. When send returns an error the host transmit path unrefs the same buffer again, freeing it twice and corrupting the shared net_buf pool, and one error branch also reads the buffer length after it was freed. Heavy host transmit activity that drives allocation or controller send failures reaches these paths and most likely crashes the device with potential further memory corruption. The fix returns early from error paths without unreffing and unrefs only on success.
You are affected if you are using a version that falls within the vulnerable range and you use the Realtek BEE Bluetooth HCI driver.
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