Bluetooth cmtp: Fix File Refcount When cmtp_attach_device Fails in Kernel

Kernel Updated 02 Oct 2025

Summary

04/06/2021
N/A
No i
Unrated
Not published

GSD-2021-1000558: Bluetooth: cmtp: fix file refcount when cmtp_attach_device fails. Affects Kernel versions < 3178e0a38f204a61ed4fe5739d6a4732879b34d1. No fix is published. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Kernel is a crucial component of the Linux operating system that provides core functionalities and acts as an interface between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the overall stability and security of the system. Bluetooth is a wireless communication technology commonly used for short-range data exchange between devices. The cmtp module in the Kernel is responsible for handling the CAPI Message Transport Protocol (CMTP) used by Bluetooth devices. This vulnerability affects the cmtp module in the Kernel, specifically when the cmtp_attach_device function fails to properly handle file refcounting.

Vulnerability Detail

The vulnerability arises when the cmtp_attach_device function fails to correctly manage file refcounting. This can lead to a file reference leak, potentially resulting in resource exhaustion or other security issues. An attacker could exploit this vulnerability by causing the cmtp_attach_device function to fail, thereby triggering the file refcounting issue. The impact of this vulnerability may vary depending on the context in which the cmtp module is used and the privileges of the attacker. However, it could potentially lead to denial-of-service attacks, privilege escalation, or unauthorized access to sensitive information.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, users can disable the cmtp module if it is not required for their specific use case. Disabling the module eliminates the risk associated with this vulnerability. However, it may impact the functionality of Bluetooth devices that rely on the CAPI Message Transport Protocol. To disable the cmtp module, users can execute the following command as root:

rmmod cmtp

This command removes the cmtp module from the Kernel, effectively disabling it.

Conclusion

In conclusion, the cmtp module in the Kernel is vulnerable to a file refcounting issue when the cmtp_attach_device function fails. This vulnerability can potentially lead to resource exhaustion, denial-of-service attacks, privilege escalation, or unauthorized access to sensitive information. It is crucial to update the Linux Kernel to version v5.12.9 or later to mitigate this vulnerability. Alternatively, users can disable the cmtp module if it is not required for their specific use case. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability may vary depending on the context and privileges of the attacker. However, it could potentially lead to denial-of-service attacks, privilege escalation, or unauthorized access to sensitive information.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.12.9 or later. This ensures that the cmtp module correctly handles file refcounting, mitigating the vulnerability.

Yes, users can disable the cmtp module if it is not required for their specific use case. Disabling the module eliminates the risk associated with this vulnerability.

The cmtp module in the Kernel is responsible for handling the CAPI Message Transport Protocol (CMTP) used by Bluetooth devices.

For more information about this vulnerability, you can refer to the official Linux Kernel documentation, security advisories, or the CVE entry associated with this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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