CVE-2019-8921
Medium · 6.5CVSS
6.5
EPSS
1.0%
Published
Nov 29, 2021
CISA due date
—
Cloudanix analysis
A Bluetooth component can be tricked into accidentally sending out pieces of its internal memory to nearby devices, which could contain private information.
- Exploitation
- Adjacent Network
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw in SDP handling allows crafting a malicious CSTATE in an SVC_ATTR_REQ that bypasses checks, causing the server to return more bytes than the buffer holds and leak arbitrary heap data from bluetoothd.
Why it matters to the business
Attackers can remotely extract sensitive memory contents over Bluetooth, risking exposure of credentials or internal data without authentication, increasing urgency for any affected deployments given the long time since disclosure.
How an attack unfolds
An attacker within Bluetooth range sends a sequence of SDP service attribute requests using a deliberately inconsistent continuation state value; the server trusts the CSTATE without verification and returns excess heap memory, allowing gradual data exfiltration.
How to fix it
Update yeswiki/yeswiki (GIT) to the fixed commit c9785f9a92744c3475f9676a0d8f95de24750094; apply vendor patches for BlueZ 5.48+ and disable unnecessary SDP services where possible.
How to confirm the fix worked
Verify the commit hash in the repository, test SDP request handling with malformed CSTATE values to confirm no excess data is returned, and review service logs for prior anomalous continuation state usage.
Typical attack path
- Establish a Bluetooth connection to the target device
- Send initial SVC_ATTR_REQ with crafted CSTATE
- Follow with subsequent requests using mismatched CSTATE
- Capture returned heap data containing sensitive information
How to detect it
Inspect Bluetooth daemon logs for repeated SDP attribute requests with varying CSTATE values; look for unusually large response sizes from sdpd-request handling; correlate with network captures showing non-standard continuation state patterns.
What your security team should do
- Prioritize patching yeswiki/yeswiki instances to the referenced commit within 30 days
- Disable Bluetooth SDP if not required
- Monitor for unusual SDP traffic volumes
- Review downstream dependents for inherited exposure
The record
An issue was discovered in bluetoothd in BlueZ through 5.48. The vulnerability lies in the handling of a SVC_ATTR_REQ by the SDP implementation. By crafting a malicious CSTATE, it is possible to trick the server into returning more bytes than the buffer actually holds, resulting in leaking arbitrary heap data. The root cause can be found in the function service_attr_req of sdpd-request.c. The server does not check whether the CSTATE data is the same in consecutive requests, and instead simply trusts that it is the same.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | bluez | 0 | 5.50-1.2~deb10u3 |
| Debian:11 | bluez | 0 | 5.54-1 |
| Debian:12 | bluez | 0 | 5.54-1 |
| Debian:13 | bluez | 0 | 5.54-1 |
| Debian:9 | bluez | 0 | 5.43-2+deb9u5 |
| SUSE:Enterprise Storage 6 | bluez | 0 | 5.48-150000.5.41.1 |
| SUSE:Enterprise Storage 7 | bluez | 0 | 5.48-150200.13.17.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | bluez | 0 | 5.48-150000.5.41.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | bluez | 0 | 5.48-150000.5.41.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS | bluez | 0 | 5.48-150200.13.17.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | bluez | 0 | 5.48-150200.13.17.1 |
| SUSE:Linux Enterprise High Performance Computing 15-ESPOS | bluez | 0 | 5.48-150000.5.41.1 |
| SUSE:Linux Enterprise High Performance Computing 15-LTSS | bluez | 0 | 5.48-150000.5.41.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | bluez | 0 | 5.13-5.31.1 |
| SUSE:Linux Enterprise Server 12 SP3-BCL | bluez | 0 | 5.13-5.31.1 |
| SUSE:Linux Enterprise Server 12 SP4-LTSS | bluez | 0 | 5.13-5.31.1 |
| SUSE:Linux Enterprise Server 12 SP5 | bluez | 0 | 5.13-5.31.1 |
| SUSE:Linux Enterprise Server 15 SP1-BCL | bluez | 0 | 5.48-150000.5.41.1 |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | bluez | 0 | 5.48-150000.5.41.1 |
| SUSE:Linux Enterprise Server 15 SP2-BCL | bluez | 0 | 5.48-150200.13.17.1 |
| SUSE:Linux Enterprise Server 15 SP2-LTSS | bluez | 0 | 5.48-150200.13.17.1 |
| SUSE:Linux Enterprise Server 15-LTSS | bluez | 0 | 5.48-150000.5.41.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | bluez | 0 | 5.13-5.31.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | bluez | 0 | 5.13-5.31.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 | bluez | 0 | 5.48-150000.5.41.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | bluez | 0 | 5.48-150000.5.41.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | bluez | 0 | 5.48-150200.13.17.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | bluez | 0 | 5.13-5.31.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP5 | bluez | 0 | 5.13-5.31.1 |
| SUSE:Manager Proxy 4.1 | bluez | 0 | 5.48-150200.13.17.1 |
| SUSE:Manager Retail Branch Server 4.1 | bluez | 0 | 5.48-150200.13.17.1 |
| SUSE:Manager Server 4.1 | bluez | 0 | 5.48-150200.13.17.1 |
| SUSE:OpenStack Cloud 9 | bluez | 0 | 5.13-5.31.1 |
| SUSE:OpenStack Cloud Crowbar 9 | bluez | 0 | 5.13-5.31.1 |
| Ubuntu:18.04:LTS | bluez | 0 | 5.48-0ubuntu3.6 |
| Ubuntu:20.04:LTS | bluez | 0 | 5.53-0ubuntu3 |
| Ubuntu:Pro:16.04:LTS | bluez | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | bluez | 0 | 5.37-0ubuntu5.3+esm5 |
Related vulnerabilities
- CVE-2023-27349 BlueZ Audio Profile AVRCP Improper Validation of Array Index Remote Code Execution… Also affects bluez
- CVE-2023-45866 Bluetooth HID Hosts in BlueZ may permit an unauthenticated Peripheral role HID Device to… Also affects bluez
- CVE-2022-39176 BlueZ before 5.59 allows physically proximate attackers to obtain sensitive information… Also affects bluez
- CVE-2022-39177 BlueZ before 5.59 allows physically proximate attackers to cause a denial of service… Also affects bluez
- CVE-2022-0204 A heap overflow vulnerability was found in bluez in versions prior to 5.63. Also affects bluez
- CVE-2019-8922 A heap-based buffer overflow was discovered in bluetoothd in BlueZ through 5.48. Also affects bluez
- CVE-2020-27153 In BlueZ before 5.55, a double free was found in the gatttool disconnect_cb() routine… Also affects bluez
- CVE-2016-9918 In BlueZ 5.42, an out-of-bounds read was identified in "packet_hexdump" function in… Also affects bluez