Use-after-free in BlueZ - CVE-2021-43400

 

Use-after-free in BlueZ - CVE-2021-43400

Published: November 22, 2023


Vulnerability identifier: #VU83407
CSH Severity: Medium
CVSS v4: 6.8 [CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-43400
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an attacker to compromise vulnerable system.

The vulnerability exists due to a use-after-free error in gatt-database.c on a gatt server if a client disconnects while a WriteValue call is being processed with D-Bus. An attacker with physical proximity to the system can trigger a use-after-free error and potentially execute arbitrary code.


Affected software

BlueZ
SmartFabric Storage Software
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Enterprise Storage
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Workstation Extension
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Module for Desktop Applications
SUSE Linux Enterprise Module for Basesystem
openSUSE Leap
Ubuntu
openEuler
OpenManage Network Integration (OMNI)
bluez (Ubuntu package)
libbluetooth3 (Ubuntu package)
libbluetooth3
bluez-devel
bluez-debugsource
bluez-debuginfo
bluez
libbluetooth3-debuginfo
bluez-cups
bluez-libs
bluez-help
bluez-devel-32bit
libbluetooth3-32bit-debuginfo
libbluetooth3-32bit
bluez-auto-enable-devices
bluez-test-debuginfo
bluez-test
bluez-deprecated-debuginfo
bluez-deprecated
bluez-cups-debuginfo

How to mitigate CVE-2021-43400

Install updates from vendor's website.

BlueZ - update to 5.62
SmartFabric Storage Software - update to 1.4.3
OpenManage Network Integration (OMNI) - update to 3.7
bluez (Ubuntu package) - addressed in versions 5.48-0ubuntu3.6, 5.53-0ubuntu3.4, 5.56-0ubuntu4.3, 5.60-0ubuntu2.1
libbluetooth3 (Ubuntu package) - addressed in versions 5.48-0ubuntu3.6, 5.53-0ubuntu3.4, 5.56-0ubuntu4.3, 5.60-0ubuntu2.1
libbluetooth3 - addressed in versions 5.48-150000.5.41.1, 5.48-150200.13.17.1, 5.55-150300.3.14.1
bluez-devel - addressed in versions 5.48-150000.5.41.1, 5.48-150200.13.17.1, 5.55-150300.3.14.1
bluez-debugsource - addressed in versions 5.48-150000.5.41.1, 5.48-150200.13.17.1, 5.55-150300.3.14.1
bluez-debuginfo - addressed in versions 5.48-150000.5.41.1, 5.48-150200.13.17.1, 5.55-150300.3.14.1
bluez - addressed in versions 5.48-150000.5.41.1, 5.48-150200.13.17.1, 5.55-150300.3.14.1
libbluetooth3-debuginfo - addressed in versions 5.48-150000.5.41.1, 5.48-150200.13.17.1, 5.55-150300.3.14.1
bluez-debugsource - addressed in versions 5.54-7, 5.54-15
bluez - addressed in versions 5.54-7, 5.54-15
bluez-devel - addressed in versions 5.54-7, 5.54-15
bluez-debuginfo - addressed in versions 5.54-7, 5.54-15
bluez-cups - addressed in versions 5.54-7, 5.54-15
bluez-libs - addressed in versions 5.54-7, 5.54-15
bluez-help - addressed in versions 5.54-7, 5.54-15
bluez-devel-32bit - update to 5.55-150300.3.14.1
libbluetooth3-32bit-debuginfo - update to 5.55-150300.3.14.1
libbluetooth3-32bit - update to 5.55-150300.3.14.1
bluez-auto-enable-devices - update to 5.55-150300.3.14.1
bluez-test-debuginfo - update to 5.55-150300.3.14.1
bluez-test - update to 5.55-150300.3.14.1
bluez-deprecated-debuginfo - update to 5.55-150300.3.14.1
bluez-deprecated - update to 5.55-150300.3.14.1
bluez-cups-debuginfo - update to 5.55-150300.3.14.1
bluez-cups - update to 5.55-150300.3.14.1

External References

Related Security Bulletins