CVE-2024-48985 Memory corruption in n/a
An attacker can achieve arbitrary code execution via a buffer overflow in MBed OS HCI packet processing due to missing exception handling on allocation failure.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-48985?
CVE-2024-48985 is a high-severity memory corruption vulnerability in n/a, published on 20 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-120
Which versions are affected by CVE-2024-48985?
It affects 1 product.
Products include Arm Mbed.
How do I fix CVE-2024-48985?
No fix has been published for CVE-2024-48985 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-48985 being exploited?
There is no known exploitation of CVE-2024-48985 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-vchv-pqrf-xh97.