Memory Leak in ip_mc_add1_src in Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1001069: net: ipv4: fix memory leak in ip_mc_add1_src. Affects Kernel versions >= 24803f38a5c0b6c57ed800b47e695f9ce474bc3a, < 77de6ee73f54a9a89c0afa0bf4c53b239aa9953a. 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 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 ip_mc_add1_src function in the IPv4 networking subsystem of the Kernel is responsible for adding a multicast source to a multicast group. However, a memory leak vulnerability has been discovered in this function, which can lead to the exhaustion of system resources over time.

Vulnerability Detail

The memory leak vulnerability in ip_mc_add1_src arises from a failure to release allocated memory when an error occurs during the addition of a multicast source to a multicast group. This can result in a gradual depletion of system memory, leading to performance degradation and potential denial-of-service conditions. An attacker may be able to exploit this vulnerability to exhaust system resources, causing the system to become unresponsive or crash. The vulnerability was introduced in Kernel version 4.9 and has been fixed in version 5.12.13.

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 multicast functionality or restrict access to multicast groups to mitigate the risk of exploitation. This can be achieved by modifying network configuration settings or using firewall rules to block multicast traffic. However, it is important to note that these workarounds may impact legitimate network communication and should only be considered as temporary measures until the Kernel is updated.

Conclusion

The memory leak vulnerability in ip_mc_add1_src can have serious consequences, including performance degradation and potential denial-of-service conditions. It is crucial to update the Kernel to version 5.12.13 or later to mitigate this vulnerability. In the meantime, temporary workarounds such as disabling multicast functionality or restricting access to multicast groups can be implemented. 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 ip_mc_add1_src can lead to the gradual depletion of system memory, resulting in performance degradation and potential denial-of-service conditions. An attacker may be able to exploit this vulnerability to exhaust system resources, causing the system to become unresponsive or crash.

You can use tools like Vulert (https://vulert.com) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software.

Yes, this vulnerability has been fixed in Kernel version 5.12.13. It is recommended to update the Kernel to the latest version to ensure the security of your system.

Yes, as a temporary workaround, you can disable multicast functionality or restrict access to multicast groups. However, these measures may impact legitimate network communication and should only be considered until the Kernel is updated.

You can refer to the vulnerability details in the GSD database (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1001xxx/GSD-2021-1001069.json) for more information about this vulnerability.

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