QID 356420

Date Published: 2023-10-31

QID 356420: Amazon Linux Security Advisory for bluez : ALAS2-2023-2309

An issue was discovered in bluetoothd in bluez through 5.48.
The vulnerability lies in the handling of a svc_attr_req by the sdp implementation.
By crafting a malicious cstate, it is possible to trick the server into returning more bytes than the buffer actually holds, resulting in leaking arbitrary heap data.
The root cause can be found in the function service_attr_req of sdpd-request.c.
The server does not check whether the cstate data is the same in consecutive requests, and instead simply trusts that it is the same. (
( CVE-2019-8921) 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. (
( CVE-2019-8922)



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as Critical - 8.8 severity.
  • CVSS V2 rated as Medium - 5.8 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2-2023-2309 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 356420

    Software Advisories
    Advisory ID Software Component Link
    ALAS2-2023-2309 amazon linux 2 URL Logo alas.aws.amazon.com/AL2/ALAS-2023-2309.html