PT-2024-33313 · Arm · Mbed Os

Diff-Fusion

·

Published

2024-11-20

·

Updated

2024-11-25

·

CVE-2024-48984

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions MBed OS version 6.16.0
Description An issue was discovered in the parsing of hci reports. The hci parsing software dynamically determines the length of a list of reports by reading a byte from an input stream. It then fetches the length of the first report, uses it to calculate the beginning of the second report, etc. However, it does not validate that these addresses are all contained within the buffer passed to hciEvtProcessLeExtAdvReport. This can lead to a situation where the buffer designated to hold the reports is allocated in such a way that one of these out-of-bounds length fields is contained within the new buffer. When the (n-1)th report is copied, it overwrites the length field of the nth report. This now corrupted length field is then used for a memcpy into the new buffer, which may lead to a buffer overflow.
Recommendations For MBed OS version 6.16.0, as a temporary workaround, consider restricting the use of the hciEvtProcessLeExtAdvReport function until a patch is available. Avoid using the hciEvtProcessLeExtAdvReport function with unvalidated input to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this issue.

Fix

Buffer Overflow

Weakness Enumeration

Related Identifiers

CVE-2024-48984

Affected Products

Mbed Os