CVE-2021-3658
NixOS vulnerability analysis and mitigation

Overview

The vulnerability (CVE-2021-3658) affects the bluetoothd component from BlueZ, the Linux Bluetooth protocol stack. The issue was discovered in 2021 and involves incorrect handling of adapters' Discoverable status when a device is powered down and up. Specifically, the bluetoothd daemon incorrectly saves and restores the Discoverable status during power state transitions (NVD, Ubuntu).

Technical details

The vulnerability stems from a design flaw where the bluetoothd daemon saves the adapter's Discoverable status when a device is powered down and restores it when powered up. The issue occurs because the discoverable setting is stored even when it was set temporarily by discovery clients, rather than only when explicitly changed via the Discoverable property. This behavior was fixed in an upstream commit that modified the storing logic to only persist the discoverable setting if it was not set temporarily by discovery (Kernel Commit).

Impact

If exploited, this vulnerability could lead to inadvertent exposure of the Bluetooth stack to physically proximate attackers. When a device is powered down while in discoverable mode, it will automatically become discoverable again when powered back on, potentially exposing the Bluetooth interface without user awareness (Bugzilla).

Mitigation and workarounds

The issue was addressed in an upstream fix (commit b497b5942a8) that modifies the behavior to only store the discoverable setting when it is explicitly changed via the Discoverable property, and not when it is temporarily set by discovery clients. Users should update to a patched version of BlueZ that includes this fix (Kernel Commit).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-20777MEDIUM6.7
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • apptainer
NoYesDec 02, 2025
CVE-2025-20789MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-20788MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management