Buffer overflow in Bluez
CVE-2019-8922
A heap-based buffer overflow was discovered in bluetoothd in BlueZ through 5.48. There isn't any check on whether there is enough space in the destination buffer. The function simply appends all data passed to it. The values of all attributes that are requested are appended to the output buffer. There are no size checks whatsoever, resulting in a simple heap overflow if one can craft a request where the response is large enough to overflow the preallocated buffer. This issue exists in service_attr_req gets called by process_request (in sdpd-request.c), which also allocates the response buffer.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.015, 75.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Bluez
- Debian Linux — versions 10.0
Weakness classification (CWE)
References
- ssd-disclosure.com/ssd-advisory-linux-bluez-information-leak-and-heap-overflow/ (Exploit, Third Party Advisory)
- security.netapp.com/advisory/ntap-20211203-0002/ (Third Party Advisory)
- [debian-lts-announce] 20221024 [SECURITY] [DLA 3157-1] bluez security update (mailing-list, Mailing List, Third Party Advisory)