Amazon Linux 2 : bluez (ALAS-2023-2309)

high Nessus Plugin ID 183481

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of bluez installed on the remote host is prior to 5.44-7. It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2-2023-2309 advisory.

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)

Tenable has extracted the preceding description block directly from the tested product security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update bluez' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2023-2309.html

https://alas.aws.amazon.com/cve/html/CVE-2019-8921.html

https://alas.aws.amazon.com/cve/html/CVE-2019-8922.html

https://alas.aws.amazon.com/faqs.html

Plugin Details

Severity: High

ID: 183481

File Name: al2_ALAS-2023-2309.nasl

Version: 1.2

Type: local

Agent: unix

Published: 10/20/2023

Updated: 12/11/2024

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 5.8

Temporal Score: 4.5

Vector: CVSS2#AV:A/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2019-8922

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.9

Vector: CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:bluez-cups, p-cpe:/a:amazon:linux:bluez, p-cpe:/a:amazon:linux:bluez-hid2hci, p-cpe:/a:amazon:linux:bluez-libs-devel, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:bluez-debuginfo, p-cpe:/a:amazon:linux:bluez-libs

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 10/12/2023

Vulnerability Publication Date: 11/29/2021

Reference Information

CVE: CVE-2019-8921, CVE-2019-8922