Memory Leak Vulnerability in libbpf

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001542: libbpf: Fix memleak in libbpf_netlink_recv(). Affects Kernel versions >= 723644ebfdb2ef7dccdaf4f1b05be9186fdba6b1, < 7cedd22f1a8db371b0937bad0ec1c3020d8ebf51. 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

libbpf is a library used for interacting with the Berkeley Packet Filter (BPF) virtual machine in the Linux kernel. It provides a high-level interface for loading and interacting with BPF programs. The library is widely used in various networking and security applications. However, a memory leak vulnerability has been discovered in the libbpf_netlink_recv() function.

Vulnerability Detail

The libbpf_netlink_recv() function in libbpf is vulnerable to a memory leak. When receiving a netlink message, the function fails to release allocated memory, leading to a memory leak. An attacker could potentially exploit this vulnerability to exhaust system memory resources, causing denial of service conditions. The vulnerability was introduced in version v5.16.19 of the Linux Kernel and has been fixed in version v5.16.19 by commit 7cedd22f1a8db371b0937bad0ec1c3020d8ebf51.

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 known workaround for this vulnerability. It is recommended to apply the fix mentioned above.

Conclusion

The memory leak vulnerability in libbpf can be fixed by updating the Linux Kernel to version v5.16.19 or later. It is recommended to apply the fix to ensure the security and stability of systems using libbpf. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

libbpf is a library used for interacting with the Berkeley Packet Filter (BPF) virtual machine in the Linux kernel. It provides a high-level interface for loading and interacting with BPF programs.

The vulnerability could be exploited by an attacker to exhaust system memory resources, leading to denial of service conditions.

To fix this vulnerability, update the Linux Kernel to version v5.16.19 or later.

There is no known workaround for this vulnerability. It is recommended to apply the fix mentioned above.

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