CVE-2024-48985: mbed-os · Classic Buffer Overflow
Affects mbed-osSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 31% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 20 Nov 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubmbed-ce/mbed-ospkg:github/mbed-ce/mbed-osOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-48985, organizations should prioritize updating MBed OS to a patched version once available from the vendor or community. In the absence of an official patch, developers and integrators should implement input validation to enforce strict limits on HCI packet sizes before processing to prevent oversized packets from triggering allocation failures. Adding robust error handling for memory allocation failures in the HCI packet processing code is critical to prevent buffer overflows. Employing runtime protections such as stack canaries, address space layout randomization (ASLR), and control-flow integrity (CFI) can help reduce exploitation success. Network-level controls should be applied to restrict access to Bluetooth interfaces and limit exposure to untrusted devices. Monitoring for anomalous Bluetooth traffic patterns and implementing intrusion detection systems tailored for embedded environments can provide early warning of exploitation attempts. Finally, conducting thorough code audits and fuzz testing of Bluetooth stack implementations can help identify and remediate similar vulnerabilities proactively.
Description
An issue was discovered in MBed OS 6.16.0. During processing of HCI packets, the software dynamically determines the length of the packet data by reading 2 bytes from the packet data. A buffer is then allocated to contain the entire packet, the size of which is calculated as the length of the packet body determined earlier and the header length. If the allocate fails because the specified packet is too large, no exception handling occurs and hciTrSerialRxIncoming continues to write bytes into the 4-byte large temporary header buffer, leading to a buffer overflow. This can be leveraged into an arbitrary write by an attacker. It is possible to overwrite the pointer to the buffer that is supposed to receive the contents of the packet body but which couldn't be allocated. One can then overwrite the state variable used by the function to determine which step of the parsing process is currently being executed. This advances the function to the next state, where it proceeds to copy data to that arbitrary location. The packet body is then written wherever the corrupted data pointer is pointing.