Skip to main content

Heap-based Buffer Overflow

CVE-2023-50230

Severity High
Score 8/10

Summary

BlueZ Phone Book Access Profile Heap-based Buffer Overflow, which leads to 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. This 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 the root. This issue was assigned to ZDI-CAN-20938. This vulnerability affects bluez package versions 5.26 through 5.69.

  • LOW
  • ADJACENT_NETWORK
  • HIGH
  • UNCHANGED
  • REQUIRED
  • NONE
  • HIGH
  • HIGH

CWE-122 - Heap-based Buffer Overflow

A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

Advisory Timeline

  • Published