Vulnerability · Published May 3, 2024 · Assigned by zdi

CVE-2023-50229BlueZ Phone Book Access Profile Heap-based Buffer Overflow Remote Code Execution Vulnerability

High 7.1

In plain English

A high-severity heap buffer overflow in BlueZ from BlueZ. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.3% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)7.1High
Exploit odds (30 days)2.3%top 16.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

BlueZ Phone Book Access Profile Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of BlueZ. User interaction is required to exploit this vulnerability in that the target must connect to a malicious Bluetooth device. The specific flaw exists within the handling of the Phone Book Access profile. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-20936.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9bluez5.72-2.el9ALSA-2024:9413
AlmaLinux:9bluez-cups5.72-2.el9ALSA-2024:9413
AlmaLinux:9bluez-libs5.72-2.el9ALSA-2024:9413
AlmaLinux:9bluez-libs-devel5.72-2.el9ALSA-2024:9413
AlmaLinux:9bluez-obexd5.72-2.el9ALSA-2024:9413
Debian:12bluez5.66-1+deb12u2DEBIAN-CVE-2023-50229
Debian:13bluez5.70-1DEBIAN-CVE-2023-50229
Debian:14bluez5.70-1DEBIAN-CVE-2023-50229
Rocky Linux:9bluez0:5.72-2.el9RLSA-2024:9413
Ubuntu:22.04:LTSbluez5.64-0ubuntu1.4USN-7222-1
Ubuntu:22.04:LTSbluez5.64-0ubuntu1.4UBUNTU-CVE-2023-50229

Affected products (as reported)

VendorProductVersions
BlueZ BlueZ 5.66

Weakness: CWE-122 · Vector: CVSS:3.0/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

References