Use-After-Free Vulnerability in Linux Kernel Bluetooth Module

linux Updated 02 Oct 2025

Summary

14/05/2021
N/A
Yes i
High
7.8

CVE-2021-33034: In the Linux kernel before 5.12.4, net/bluetooth/hci_event.c has a use-after-free when destroying an hci_chan, aka CID-5c4c8c954409. Affects linux versions < 5.10.38-1. Fixed in 5.10.38-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Linux kernel is a core component of many operating systems, providing essential services for hardware and software interaction. It supports a wide range of functionalities, including networking, file systems, and device management. The Bluetooth module within the kernel facilitates wireless communication between devices. However, prior to version 5.12.4, a critical vulnerability was identified in the Bluetooth handling code, specifically in the hci_event.c file, which could lead to severe security risks.

Vulnerability Detail

In the Linux kernel versions before 5.12.4, a use-after-free vulnerability exists in the Bluetooth subsystem, particularly when destroying an hci_chan. This flaw allows an attacker to write arbitrary values to memory locations, potentially leading to system crashes, unauthorized access, or execution of malicious code. The vulnerability is classified under CVE-2021-33034 and has a CVSS score of 7.8, indicating a high severity level.

How To Fix

Minimum fixed version

5.10.38-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can disable Bluetooth functionality until the kernel is updated. This can be done by executing the following command in the terminal:

sudo systemctl stop bluetooth.service

Conclusion

The CVE-2021-33034 vulnerability in the Linux kernel Bluetooth module poses significant security risks due to a use-after-free flaw. Users are advised to update their systems promptly to mitigate potential threats. Utilizing tools like Vulert can help in monitoring for such vulnerabilities effectively.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

A use-after-free vulnerability occurs when a program continues to use a memory reference after it has been freed, potentially allowing an attacker to manipulate the memory.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

Exploitation of this vulnerability can lead to arbitrary code execution, system crashes, or unauthorized access to sensitive data.

Disabling Bluetooth functionality is a temporary workaround, but it is strongly recommended to update the kernel as soon as possible.

Detailed information can be found in the CVE database or through security advisories related to the Linux kernel.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

5.10.38-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback