Memory Leak in ip_mc_add1_src in Linux Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1000923: net: ipv4: fix memory leak in ip_mc_add1_src. Affects Kernel versions >= 24803f38a5c0b6c57ed800b47e695f9ce474bc3a, < 3dd2aeac2e9624cff9fa634710837e4f2e352758. 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 Linux Kernel is the core component of the Linux operating system, responsible for managing system resources and providing essential functionality. It is a critical part of the Linux ecosystem and is widely used in various devices and systems. The ip_mc_add1_src function in the IPv4 networking stack of the Linux Kernel is vulnerable to a memory leak. This function is responsible for adding a multicast source to a multicast group. The vulnerability can lead to a gradual depletion of system memory, potentially causing performance degradation or even system instability.

Vulnerability Detail

The vulnerability in ip_mc_add1_src arises from a memory leak issue. When adding a multicast source to a multicast group, the function fails to release allocated memory in certain scenarios. This can result in a gradual accumulation of memory over time, leading to memory exhaustion. An attacker could potentially exploit this vulnerability by repeatedly adding multicast sources, causing a denial-of-service condition or system instability. The impact of this vulnerability depends on the specific usage scenario and the availability of system resources.

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 specific workaround mentioned for this vulnerability. The recommended approach is to apply the fix by updating the Linux Kernel to a version that includes the necessary patch.

Conclusion

The memory leak vulnerability in ip_mc_add1_src in the Linux Kernel can lead to memory exhaustion and potential system instability. It is crucial to update the Linux Kernel to a version that includes the necessary fix. Regularly updating the Linux Kernel helps ensure the latest security patches and bug fixes are applied. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability can vary depending on the specific usage scenario and the availability of system resources. It can potentially lead to memory exhaustion, causing performance degradation or system instability.

You can use Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

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

The vulnerability was introduced in Linux Kernel version v4.9 by commit 24803f38a5c0b6c57ed800b47e695f9ce474bc3a. It is fixed in version v5.4.128 by commit 3dd2aeac2e9624cff9fa634710837e4f2e352758. Versions within this range may be affected.

If you are unable to update the Linux Kernel immediately, it is recommended to monitor your system for any abnormal behavior or performance degradation. Implement additional security measures and prioritize the update as soon as possible.

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