CVE-2024-48986
Description
An issue was discovered in MBed OS 6.16.0. Its hci parsing software dynamically determines the length of certain hci packets by reading a byte from its header. Certain events cause a callback, the logic for which allocates a buffer (the length of which is determined by looking up the event type in a table). The subsequent write operation, however, copies the amount of data specified in the packet header, which may lead to a buffer overflow. This bug is trivial to exploit for a denial of service but is not certain to suffice to bring the system down and can generally not be exploited further because the exploitable buffer is dynamically allocated.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A buffer overflow in Mbed OS 6.16.0's BLE HCI event parser allows denial of service via crafted packets.
Vulnerability
An issue exists in Mbed OS version 6.16.0, specifically in its HCI parsing software within the BLE host stack (file hci_evt.c). The parser dynamically determines the length of certain HCI packets by reading a byte from the packet header. For certain events, a callback is triggered that allocates a buffer based on a lookup table indexed by event type. However, the subsequent write operation uses the length specified in the packet header rather than the allocated buffer size, leading to a heap-based buffer overflow [1].
Exploitation
An attacker needs the ability to send crafted HCI packets to the target device over a BLE connection. By supplying a packet with a header length field that exceeds the buffer size determined by the event type lookup table, the attacker can trigger a buffer overflow during the write operation. No authentication is required, as HCI events are generally processed before any security checks. The attack is trivial to execute [1].
Impact
Successful exploitation results in a denial of service condition, as the overflow can corrupt heap metadata or cause a crash. The official description states that the overflow is not certain to suffice to bring the system down, but it can cause instability. The vulnerability is unlikely to be exploited for arbitrary code execution because the overflow occurs in a dynamically allocated buffer, making reliable exploitation difficult [1].
Mitigation
A fix has been implemented in pull request #385 to the mbed-ce/mbed-os repository, which was created on November 19, 2024. The fix addresses the issue by ignoring messages with overlong headers and using the event length to determine allocation size [2]. Users are advised to apply this patch or upgrade to a version that includes the fix once released. No workaround is documented.
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- MBed OS/MBed OSdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
2News mentions
0No linked articles in our index yet.