Memory Leak Vulnerability in Linux Kernel - Debian Packages

linux Updated 02 Oct 2025

Summary

17/04/2025
N/A
Yes i
Unrated
Not published

CVE-2021-47671: In the Linux kernel, the following vulnerability has been resolved: can: etas_es58x: es58x_rx_err_msg(): fix memory leak in error path In es58x_rx_err_msg(), if can->do_set_mode() fails, the function directly returns wit... Affects linux versions < 5.15.3-1. Fixed in 5.15.3-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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Linux kernel is the core component of the Linux operating system, responsible for managing hardware resources and providing essential services to applications. It is widely used in various distributions, including Debian. The kernel's functionality includes process management, memory management, device management, and system calls. This vulnerability specifically affects the Linux kernel in Debian versions 12 and 13, where a memory leak can occur under certain error conditions in the CAN (Controller Area Network) subsystem.

Vulnerability Detail

In the Linux kernel, specifically within the CAN subsystem, a vulnerability was identified in the es58x_rx_err_msg() function. If the can->do_set_mode() call fails, the function exits prematurely without freeing the previously allocated socket buffer (skb) created by alloc_can_err_skb(). This oversight leads to a memory leak, which can degrade system performance over time and potentially exhaust system memory resources. The issue was discovered using GCC's -fanalyzer tool, highlighting the importance of thorough code analysis in identifying such vulnerabilities.

How To Fix

Minimum fixed version

5.15.3-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

Currently, there are no specific workarounds provided for this vulnerability other than applying the patch. It is advisable to monitor the system for unusual memory usage until the update can be applied.

Conclusion

The CVE-2021-47671 vulnerability in the Linux kernel poses a significant risk due to a memory leak in the CAN subsystem. It is crucial for users of Debian versions 12 and 13 to update to the patched version 5.15.3-1 to ensure system stability and performance. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in real-time.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2021-47671 is a vulnerability in the Linux kernel that causes a memory leak in the CAN subsystem when an error occurs during mode setting.

This vulnerability can lead to increased memory usage over time, potentially causing system slowdowns or crashes if not addressed.

Yes, Debian versions 12 and 13 are affected by this vulnerability. It is important to update to the fixed version to mitigate risks.

You can use Vulert, which allows you to monitor and alert for open-source vulnerabilities in your software using just a manifest file. Visit Vulert Scanner to check if your application is affected without needing to sign up.

If you cannot update immediately, monitor your system for unusual memory usage and plan to apply the update as soon as possible to prevent potential issues.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

5.15.3-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