Vulnerability · Published May 3, 2024 · Assigned by zdi
CVE-2023-51596BlueZ 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 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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-20939.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | bluez | 5.72-2.el9 | ALSA-2024:9413 |
| AlmaLinux:9 | bluez-cups | 5.72-2.el9 | ALSA-2024:9413 |
| AlmaLinux:9 | bluez-libs | 5.72-2.el9 | ALSA-2024:9413 |
| AlmaLinux:9 | bluez-libs-devel | 5.72-2.el9 | ALSA-2024:9413 |
| AlmaLinux:9 | bluez-obexd | 5.72-2.el9 | ALSA-2024:9413 |
| Debian:12 | bluez | no fix listed | DEBIAN-CVE-2023-51596 |
| Debian:13 | bluez | no fix listed | DEBIAN-CVE-2023-51596 |
| Debian:14 | bluez | no fix listed | DEBIAN-CVE-2023-51596 |
| Rocky Linux:9 | bluez | 0:5.72-2.el9 | RLSA-2024:9413 |
| Ubuntu:22.04:LTS | bluez | no fix listed | UBUNTU-CVE-2023-51596 |
| Ubuntu:24.04:LTS | bluez | no fix listed | UBUNTU-CVE-2023-51596 |
| Ubuntu:25.10 | bluez | no fix listed | UBUNTU-CVE-2023-51596 |
| Ubuntu:26.04:LTS | bluez | no fix listed | UBUNTU-CVE-2023-51596 |
| Ubuntu:26.10 | bluez | no fix listed | UBUNTU-CVE-2023-51596 |
Affected products (as reported)
Weakness: CWE-122 · Vector: CVSS:3.0/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- ZDI-23-1902 x_research-advisory