Memory Leak in net: caif: ldisc_open

Kernel Updated 02 Oct 2025

Summary

08/07/2021
N/A
No i
Unrated
Not published

GSD-2021-1001094: net: caif: fix memory leak in ldisc_open. Affects Kernel versions < dede006783102f26a49e9eb33fd673b2937ed692. 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 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 net: caif package is a component of the Linux Kernel that provides support for the CAIF (Common Air Interface Framework) protocol. CAIF is a communication protocol used in mobile devices for wireless connectivity. The ldisc_open function in the caif_netdev.c file is responsible for opening a line discipline for a CAIF network device. This line discipline is used to handle incoming data and perform necessary operations. However, a memory leak vulnerability has been identified in the ldisc_open function.

Vulnerability Detail

The memory leak vulnerability in the ldisc_open function of net: caif can be exploited by an attacker to exhaust system memory resources. When a CAIF network device is opened, the ldisc_open function allocates memory for the line discipline structure. However, if an error occurs during the allocation process, the function fails to free the previously allocated memory, resulting in a memory leak. This can be abused by an attacker to repeatedly open and close CAIF network devices, eventually causing the system to run out of memory. This could lead to a denial-of-service (DoS) condition, impacting the availability of the affected system.

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 avoid the memory leak by refraining from opening and closing CAIF network devices excessively. However, this workaround may not be practical in all scenarios and it is strongly advised to apply the official fix by updating the Linux Kernel.

Conclusion

The memory leak vulnerability in the ldisc_open function of net: caif can be mitigated by updating the Linux Kernel to the patched version. It is crucial to apply the fix to prevent potential denial-of-service (DoS) attacks. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

Net: caif is a component of the Linux Kernel that provides support for the CAIF (Common Air Interface Framework) protocol used in mobile devices for wireless connectivity.

The memory leak vulnerability in the ldisc_open function can be exploited to exhaust system memory resources, leading to a denial-of-service (DoS) condition.

To fix this vulnerability, update the Linux Kernel to version v4.4.274 or later, which includes the necessary patch.

A workaround is to avoid excessive opening and closing of CAIF network devices. However, it is recommended to apply the official fix by updating the Linux Kernel.

For more information, refer to the provided references link and the source link in the database specific section of the vulnerability details.

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