Memory Leak in caif_device_notify in Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1000749: net: caif: fix memory leak in caif_device_notify. Affects Kernel versions >= 7c18d2205ea76eef9674e59e1ecae4f332a53e9e, < f52f4fd67264c70cd0b4ba326962ebe12d9cba94. 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 critical component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The caif_device_notify function in the Kernel's networking subsystem (net) is responsible for handling notifications related to the CAIF (Common Air Interface) protocol. CAIF is used for communication between mobile devices and base stations. However, a memory leak vulnerability has been identified in the caif_device_notify function, which could lead to resource exhaustion and potential system instability.

Vulnerability Detail

The memory leak vulnerability in caif_device_notify arises from a failure to release allocated memory under certain conditions. When a CAIF device notification is received, the function allocates memory to handle the notification but fails to free it afterwards. This can result in a gradual depletion of available memory resources, potentially leading to system crashes or denial of service. The vulnerability was introduced in version v3.3 of the Linux Kernel and is fixed in version v5.4.125.

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 temporary workaround, users can disable the CAIF protocol or related functionality if it is not essential for their system. This can be achieved by modifying the Kernel configuration or disabling relevant Kernel modules. However, this workaround may impact the functionality of certain applications or devices that rely on CAIF.

Conclusion

The memory leak vulnerability in caif_device_notify poses a risk of resource exhaustion and system instability. It is recommended to update the Linux Kernel to version v5.4.125 or later to address this vulnerability. Users can also utilize the Vulert Playground at https://vulert.com/scanner to check if their system is affected and receive real-time alerts for open-source vulnerabilities. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The memory leak vulnerability in caif_device_notify can lead to resource exhaustion and potential system instability. It may result in system crashes or denial of service if sufficient memory resources are depleted.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will analyze the dependencies and alert you if any known vulnerabilities, including this memory leak, are detected.

Yes, a patch for this vulnerability is available in version v5.4.125 of the Linux Kernel. It is recommended to update to this version or a later one to mitigate the risk.

As a temporary workaround, you can disable the CAIF protocol or related functionality if it is not essential for your system. However, this may impact the functionality of certain applications or devices that rely on CAIF.

At the time of this report, there are no known exploits for this vulnerability. However, it is crucial to apply the necessary updates and patches to mitigate the risk.

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