CVE-2022-39176
High · 8.8CVSS
8.8
EPSS
0.7%
Published
Sep 2, 2022
CISA due date
—
Cloudanix analysis
A flaw in the Bluetooth software used by many devices lets someone standing nearby read private information from the device without needing a password.
- Exploitation
- Physical Access
- Attacker needs
- Physical Access
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Library
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Missing length validation on params_len in profiles/audio/avrcp.c permits out-of-bounds memory access over Bluetooth AVRCP, resulting in disclosure of adjacent heap or stack contents to a paired or discoverable peer.
Why it matters to the business
Nearby attackers can silently extract sensitive device or user data such as contact lists, media metadata, or internal state without authentication, increasing regulatory and reputational exposure for any product shipping the vulnerable Bluetooth stack.
How an attack unfolds
An attacker within Bluetooth range pairs or connects to the target device, sends a crafted AVRCP command packet with an invalid or oversized params_len field, and receives the resulting memory contents returned by the unvalidated handler.
How to fix it
Upgrade BlueZ to version 5.59 or later; the GIT tree is fixed by commit 1285bca9bde014a292e67632f83ef6e3386eb262. Rebuild and redeploy any downstream packages that statically link or bundle the vulnerable BlueZ libraries.
How to confirm the fix worked
Confirm the running bluetoothd binary or library reports version 5.59 or newer; inspect the source of profiles/audio/avrcp.c for the presence of the length check introduced in commit 1285bca9bde014a292e67632f83ef6e3386eb262; perform regression testing with malformed AVRCP packets to verify no memory disclosure occurs.
Typical attack path
- Discover and connect to the target over Bluetooth
- Issue a malformed AVRCP vendor-dependent or passthrough command containing an oversized or negative params_len
- Receive the leaked memory buffer in the response
- Parse disclosed data for credentials, keys, or other sensitive artifacts
How to detect it
Review Bluetooth daemon logs and HCI snoop traces for unexpected AVRCP command packets with anomalous length fields or repeated connection attempts from unknown addresses; correlate with any outbound memory-sized responses on the control channel.
What your security team should do
- Immediately inventory all systems and embedded devices using BlueZ versions prior to 5.59
- Apply the 5.59 update or the referenced commit through distribution channels or vendor firmware
- Disable Bluetooth when not required or restrict pairing to authenticated devices only
- Monitor vendor advisories for downstream products that embed the affected library
The record
BlueZ before 5.59 allows physically proximate attackers to obtain sensitive information because profiles/audio/avrcp.c does not validate params_len.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | bluez | 0 | 5.50-1.2~deb10u3 |
| Debian:11 | bluez | 0 | 5.55-3.1+deb11u2 |
| Debian:12 | bluez | 0 | 5.61-1 |
| Debian:13 | bluez | 0 | 5.61-1 |
| SUSE:Enterprise Storage 6 | bluez | 0 | 5.48-150000.5.46.1 |
| SUSE:Enterprise Storage 7 | bluez | 0 | 5.48-150200.13.22.1 |
| SUSE:Enterprise Storage 7.1 | bluez | 0 | 5.55-150300.3.19.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | bluez | 0 | 5.48-150000.5.46.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | bluez | 0 | 5.48-150200.13.22.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | bluez | 0 | 5.55-150300.3.19.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | bluez | 0 | 5.55-150300.3.19.1 |
| SUSE:Linux Enterprise Real Time 15 SP3 | bluez | 0 | 5.55-150300.3.19.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | bluez | 0 | 5.13-5.36.1 |
| SUSE:Linux Enterprise Server 12 SP4-LTSS | bluez | 0 | 5.13-5.36.1 |
| SUSE:Linux Enterprise Server 12 SP5 | bluez | 0 | 5.13-5.36.1 |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | bluez | 0 | 5.48-150000.5.46.1 |
| SUSE:Linux Enterprise Server 15 SP2-LTSS | bluez | 0 | 5.48-150200.13.22.1 |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | bluez | 0 | 5.55-150300.3.19.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | bluez | 0 | 5.13-5.36.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | bluez | 0 | 5.13-5.36.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | bluez | 0 | 5.48-150000.5.46.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | bluez | 0 | 5.48-150200.13.22.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | bluez | 0 | 5.55-150300.3.19.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | bluez | 0 | 5.13-5.36.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP5 | bluez | 0 | 5.13-5.36.1 |
| SUSE:Manager Proxy 4.2 | bluez | 0 | 5.55-150300.3.19.1 |
| SUSE:Manager Retail Branch Server 4.2 | bluez | 0 | 5.55-150300.3.19.1 |
| SUSE:Manager Server 4.2 | bluez | 0 | 5.55-150300.3.19.1 |
| SUSE:OpenStack Cloud 9 | bluez | 0 | 5.13-5.36.1 |
| SUSE:OpenStack Cloud Crowbar 9 | bluez | 0 | 5.13-5.36.1 |
| Ubuntu:18.04:LTS | bluez | 0 | 5.48-0ubuntu3.9 |
| Ubuntu:20.04:LTS | bluez | 0 | 5.53-0ubuntu3.6 |
| Ubuntu:22.04:LTS | bluez | 0 | 5.64-0ubuntu1 |
| Ubuntu:Pro:16.04:LTS | bluez | 0 | No fix |
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-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-2023-51594 BlueZ OBEX Library Out-Of-Bounds Read Information Disclosure Vulnerability. Also affects bluez
- CVE-2023-51596 BlueZ Phone Book Access Profile Heap-based Buffer Overflow Remote Code Execution… Also affects bluez
- CVE-2023-51589 BlueZ Audio Profile AVRCP parse_media_element Out-Of-Bounds Read Information Disclosure… Also affects bluez