Bluetooth cmtp: Fix File Refcount When cmtp_attach_device Fails

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1000635: Bluetooth: cmtp: fix file refcount when cmtp_attach_device fails. Affects Kernel versions < fe201316ac36c48fc3cb2891dfdc8ab68058734d. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Bluetooth cmtp package is a component of the Linux Kernel that provides support for the Cable Replacement Protocol (CMTP) over Bluetooth. CMTP allows devices to emulate a serial port over a Bluetooth connection, enabling data transfer between devices. This vulnerability affects the cmtp module in the Linux Kernel.

Vulnerability Detail

The vulnerability in the cmtp module occurs when the cmtp_attach_device function fails to properly handle file reference counting. This can lead to a file reference leak, potentially causing resource exhaustion and denial-of-service conditions. An attacker could exploit this vulnerability by repeatedly triggering the failure of cmtp_attach_device, resulting in the exhaustion of file resources and impacting the system's stability and performance. The vulnerability was fixed in Linux Kernel version v5.4.124 by commit fe201316ac36c48fc3cb2891dfdc8ab68058734d.

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

There is no known workaround for this vulnerability. It is recommended to apply the fix by updating the Linux Kernel to the patched version.

Conclusion

The Bluetooth cmtp module in the Linux Kernel is vulnerable to a file reference leak when the cmtp_attach_device function fails. This can lead to resource exhaustion and denial-of-service conditions. Users should update their Linux Kernel to version v5.4.124 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability can lead to resource exhaustion and denial-of-service conditions, potentially impacting the stability and performance of the affected system.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and the Vulert Playground will analyze it for any known vulnerabilities.

Yes, a patch for this vulnerability is available in Linux Kernel version v5.4.124. Users are advised to update their Linux Kernel to this version or later.

There are no known exploits for this vulnerability at the time of this report. However, it is important to apply the patch as soon as possible to mitigate the risk.

The vulnerability was discovered by an automated security analysis tool and reported to the Linux Kernel development team.

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