CVE-2021-32399
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-32399 is a race condition vulnerability discovered in the Linux kernel through version 5.12.2, specifically in the net/bluetooth/hci_request.c file affecting the HCI controller removal process. The vulnerability was discovered by the BlockSec team and was publicly disclosed on May 10, 2021 (Openwall List).

Technical details

The vulnerability stems from a race condition between issuing a command to the Bluetooth controller and unregistering the Bluetooth controller. The race occurs when thread-A is issuing a command while thread-B is attempting to close the device, potentially leading to a use-after-free condition of slab objects. The issue manifests when thread-B obtains the sync lock (hdev->req_lock) before thread-A, allowing thread-A to obtain the sync lock even after thread-B has closed the HCI device. This vulnerability has been assigned a CVSS v3.1 base score of 7.0 (HIGH) with vector CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

Successful exploitation of this vulnerability could lead to use-after-free conditions, potentially resulting in denial of service (crash or memory corruption), information disclosure, or privilege escalation. Through heap spraying techniques, attackers could potentially achieve arbitrary memory write primitives or RIP hijacking due to the presence of multiple pointers in the hdev object (Openwall List).

Exploitability

The vulnerability can be exploited through three potential methods: using the virtual HCI driver (vhci), using ptmx to act as an HCI TTY device, or using real devices. While the vhci method requires root privileges, the ptmx method requires CAP_NET_ADMIN privilege. The vulnerability has been successfully demonstrated in a QEMU environment, and proof-of-concept code has been developed (Openwall List).

Mitigation and workarounds

The vulnerability was patched in the Linux kernel through commit e2cb6b891ad2b8caa9131e3be70f45243df82a80, which modifies the sequence in the hci_req_sync() function to prevent thread-A from issuing commands after the device is closed. The fix involves checking the HCI_UP flag after obtaining the lock to protect against races from hci_dev_do_close when the controller gets removed (Kernel Commit).

Community reactions

Multiple Linux distributions and vendors have acknowledged and addressed this vulnerability. Debian included fixes in their security updates DLA-2689-1 and DLA-2690-1 (Debian LTS). NetApp has also acknowledged the vulnerability's impact on several of their products and has provided specific remediation guidance for affected systems (NetApp Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Arch Linux

Fixed

rolling

linux-hardened: 5.11.21.hardened1-1

Fixed

SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-93189HIGH8.8
  • Linux Kernel logoLinux Kernel
  • linux-azure-fips
NoYesSep 17, 2026
CVE-2026-93188MEDIUM6.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-tegra-5.15
NoYesSep 17, 2026
CVE-2026-93182NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-fips
NoYesSep 17, 2026
CVE-2026-93181NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-4.15
NoNoSep 17, 2026
CVE-2026-93174NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoYesSep 17, 2026

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