CVE-2021-3658
Medium · 6.5CVSS
6.5
EPSS
0.8%
Published
Mar 2, 2022
CISA due date
—
Cloudanix analysis
Some Bluetooth devices can stay visible to nearby gadgets even after being turned off and back on, letting strangers potentially connect without the owner realizing it.
- Exploitation
- Adjacent Network
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The bluetoothd daemon in BlueZ persists the Discoverable adapter flag across power cycles instead of resetting it, causing an adapter powered down while discoverable to restore that state on power-up and remain visible to nearby Bluetooth radios.
Why it matters to the business
Bluetooth-enabled devices can unintentionally expose their radio stack to physical-proximity attackers after routine restarts, raising the chance of unauthorized access or information disclosure without any user-visible change in settings.
How an attack unfolds
An attacker within Bluetooth range continuously scans for discoverable devices; when a target system is powered on after having been discoverable at shutdown, the restored flag makes the adapter visible, allowing the attacker to attempt pairing, connection, or further Bluetooth stack interaction.
How to fix it
Upgrade bluez to the commit d61f9dc54c04f4fc5791398a0dbae59d671846bf or later; after updating, verify that Discoverable state is not restored across power cycles and consider disabling discoverability by default in adapter configuration.
How to confirm the fix worked
Confirm the installed BlueZ version contains commit d61f9dc54c04f4fc5791398a0dbae59d671846bf; test by setting an adapter discoverable, powering the system off and on, then checking that the flag is cleared on restart.
Typical attack path
- Perform Bluetooth inquiry scans from a nearby location
- Detect adapters that become discoverable after power-on without user intent
- Initiate pairing or SDP queries against the exposed adapter
- Leverage any subsequent Bluetooth vulnerabilities or services for data access
How to detect it
Review system logs for bluetoothd messages indicating adapter power state changes paired with persistent discoverable flags; correlate with unexpected SDP or inquiry responses observed on the network or via Bluetooth monitoring tools.
What your security team should do
- Apply the fixed BlueZ commit to all affected systems as soon as possible
- Audit Bluetooth adapter configurations to enforce non-discoverable defaults
- Monitor logs for unexpected changes to adapter discoverable state
- Disable Bluetooth entirely on systems where it is not required
The record
bluetoothd from bluez incorrectly saves adapters' Discoverable status when a device is powered down, and restores it when powered up. If a device is powered down while discoverable, it will be discoverable when powered on again. This could lead to inadvertent exposure of the bluetooth stack to physically nearby attackers.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | bluez | 0 | 5.55-3.1+deb11u2 |
| Debian:12 | bluez | 0 | 5.61-1 |
| Debian:13 | bluez | 0 | 5.61-1 |
| Mageia:8 | bluez | 0 | 5.55-3.2.mga8 |
| 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 Module for Basesystem 15 SP3 | bluez | 0 | 5.55-150300.3.14.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP3 | bluez | 0 | 5.55-150300.3.14.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 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 Workstation Extension 15 SP3 | bluez | 0 | 5.55-150300.3.14.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 |
| Ubuntu:18.04:LTS | bluez | 0 | 5.48-0ubuntu3.6 |
| Ubuntu:20.04:LTS | bluez | 0 | 5.53-0ubuntu3.4 |
| Ubuntu:22.04:LTS | bluez | 0 | 5.62-0ubuntu1 |
| openSUSE:Leap 15.3 | bluez | 0 | 5.55-150300.3.14.1 |
Related vulnerabilities
- 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
- CVE-2023-51592 BlueZ Audio Profile AVRCP parse_media_folder Out-Of-Bounds Read Information Disclosure… Also affects bluez
- CVE-2023-51580 BlueZ Audio Profile AVRCP avrcp_parse_attribute_list Out-Of-Bounds Read Information… Also affects bluez
- CVE-2023-44431 BlueZ Audio Profile AVRCP Stack-based Buffer Overflow Remote Code Execution Vulnerability. Also affects bluez
- 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