Memory Leak in netlbl_cipsov4_add_std in Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1001055: net: ipv4: fix memory leak in netlbl_cipsov4_add_std. Affects Kernel versions >= 96cb8e3313c7a12e026c1ed510522ae6f6023875, < 0ffb460be3abac86f884a8c548bb02724ec370f4. 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 Kernel is a critical component of the Linux operating system that manages communication between hardware and software. It provides essential services and functions for the system's operation. The netlbl_cipsov4_add_std function in the IPv4 networking subsystem of the Kernel is responsible for adding a standard CIPSOv4 label to a network label database. This label is used for security purposes to enforce access control policies. However, a memory leak vulnerability has been discovered in this function, which could lead to resource exhaustion and potential denial-of-service attacks.

Vulnerability Detail

The memory leak vulnerability in netlbl_cipsov4_add_std allows an attacker to repeatedly add CIPSOv4 labels to the network label database without releasing the allocated memory. This can result in a gradual depletion of system resources, leading to performance degradation or even a complete system crash. An attacker with local access to the system could exploit this vulnerability to disrupt the normal operation of the affected system. The vulnerability was introduced in version v2.6.19 of the Kernel and has been fixed in version v5.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 workaround, users can apply the patch manually to their existing Kernel version. The patch can be obtained from the commit 0ffb460be3abac86f884a8c548bb02724ec370f4 in the Linux Kernel repository. Users can follow the standard procedure for applying patches to their Kernel source code. Here is an example of how to apply the patch using the git apply command:

$ git apply -p1 < path/to/patch

It is important to note that applying patches manually can be complex and error-prone, so it is recommended to update to the latest Kernel version if possible.

Conclusion

The memory leak vulnerability in netlbl_cipsov4_add_std in the Kernel can result in resource exhaustion and potential denial-of-service attacks. It is crucial to update the Linux Kernel to version v5.12.13 or later to mitigate this vulnerability. Users can also apply the provided patch manually as a workaround, but updating to the latest Kernel version is recommended. 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 netlbl_cipsov4_add_std can lead to resource exhaustion and potential denial-of-service attacks. An attacker with local access to the system could exploit this vulnerability to disrupt the normal operation of the affected system.

You can use Vulert's playground (https://vulert.com/scanner) 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, users can apply the patch manually to their existing Kernel version as a workaround. However, it is recommended to update to the latest Kernel version if possible.

To update the Linux Kernel, you can obtain the latest version from the official Linux Kernel repository: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/

No, this vulnerability requires local access to the system to be exploited.

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