Advisory Details

December 21st, 2023

(0Day) BlueZ Phone Book Access Profile Heap-based Buffer Overflow Remote Code Execution Vulnerability

ZDI-23-1902
ZDI-CAN-20939

CVE ID CVE-2023-51596
CVSS SCORE 7.1, AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
AFFECTED VENDORS BlueZ
AFFECTED PRODUCTS BlueZ
VULNERABILITY DETAILS

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.

ADDITIONAL DETAILS

07/26/23 – ZDI reported the vulnerability to the vendor
12/18/23 – ZDI asked for updates and notified the vendor of the intention to publish the cases as 0-day advisories

-- Mitigation: Given the nature of the vulnerability, the only salient mitigation strategy is to restrict interaction with the application.


DISCLOSURE TIMELINE
  • 2023-04-26 - Vulnerability reported to vendor
  • 2023-12-21 - Coordinated public release of advisory
  • 2023-12-21 - Advisory Updated
CREDIT Lucas Leong (@_wmliang_) of Trend Micro Zero Day Initiative
BACK TO ADVISORIES