Memory Leak in libbpf_netlink_recv() in Kernel

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001855: libbpf: Fix memleak in libbpf_netlink_recv(). Affects Kernel versions >= 9dea119df0fa03c656dd41761ab804abd06e5482, < d85baefc858f443b2239aa15165eb47440b6c8f0. 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 provides core functionalities and acts as an interface between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the overall stability and security of the system. The libbpf_netlink_recv() function is a part of the libbpf library, which is used for interacting with the eBPF (extended Berkeley Packet Filter) subsystem in the Kernel. This function is responsible for receiving netlink messages related to eBPF programs and maps. However, a memory leak vulnerability has been identified in the libbpf_netlink_recv() function, which could lead to the exhaustion of system memory over time.

Vulnerability Detail

The memory leak vulnerability in libbpf_netlink_recv() arises due to the improper handling of memory resources. When receiving netlink messages, the function fails to release allocated memory, resulting in a gradual accumulation of memory usage. If exploited, this vulnerability could lead to a denial-of-service (DoS) condition, causing system performance degradation or even system crashes. Attackers may be able to repeatedly trigger the vulnerable code path, exacerbating the memory leak and amplifying the impact. It is important to note that the actual impact and attack plausibility of this vulnerability have not been proven yet.

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 a patch or backport the fix to their current Kernel version. Alternatively, they can disable the functionality that utilizes the libbpf_netlink_recv() function if it is not essential for their system's operation. However, it is highly recommended to update to the latest Kernel version to benefit from the comprehensive fix and ensure the overall security and stability of the system.

Conclusion

In conclusion, a memory leak vulnerability has been identified in the libbpf_netlink_recv() function in the Kernel. This vulnerability could lead to a denial-of-service condition and system instability if exploited. It is crucial to update the Linux Kernel to version v5.15.33 or later to fix this issue. Users can also apply patches or workarounds to mitigate the risk. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

If exploited, this vulnerability could lead to a denial-of-service (DoS) condition, causing system performance degradation or even system crashes.

To mitigate the risk, it is crucial to update the Linux Kernel to version v5.15.33 or later, which includes the fix for this vulnerability.

Yes, users can apply a patch or backport the fix to their current Kernel version. Additionally, they can disable the functionality that utilizes the libbpf_netlink_recv() function if it is not necessary for their system.

There are no known instances of this vulnerability being exploited at the moment. However, it is important to promptly apply the fix to prevent any potential attacks.

For more information about this vulnerability, you can refer to the source link provided in the database_specific section of the vulnerability details.

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