Vulnerability in libbpf: Possible NULL Pointer Dereference when Destroying Skeleton

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001557: libbpf: Fix possible NULL pointer dereference when destroying skeleton. Affects Kernel versions >= d66562fba1ce66975bd61b0786fb8b1810f33caa, < 650f1a4e01f1edbb168b557bcdb9218d48e58b03. 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 libbpf package is a library that provides a high-level interface for interacting with the Berkeley Packet Filter (BPF) virtual machine in the Linux kernel. It allows users to load and manipulate BPF programs, maps, and other related objects. The libbpf package is widely used by various applications and tools that require BPF functionality.

Vulnerability Detail

The vulnerability identified in libbpf is a possible NULL pointer dereference when destroying a skeleton. This vulnerability can be triggered when a specific sequence of operations is performed on a skeleton object in libbpf. If the skeleton object is not properly initialized or has been freed before destruction, a NULL pointer dereference can occur, leading to a potential crash or other undefined behavior. The 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

No specific workaround has been provided for this vulnerability.

Conclusion

The vulnerability in libbpf that could lead to a possible NULL pointer dereference when destroying a skeleton has been identified and fixed in the latest version of the Linux Kernel. It is crucial to update to the patched version to ensure the security and stability of systems using libbpf. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

libbpf is a library that provides a high-level interface for interacting with the Berkeley Packet Filter (BPF) virtual machine in the Linux kernel. It allows users to load and manipulate BPF programs, maps, and other related objects.

A NULL pointer dereference occurs when a program attempts to access or manipulate memory using a pointer that has a value of NULL (i.e., it does not point to any valid memory location). This can lead to crashes or other undefined behavior.

The specific conditions and steps to exploit this vulnerability have not been disclosed. However, it is important to update to the latest version of the Linux Kernel to mitigate any potential risks.

There is no known exploit for this vulnerability at the moment. However, it is always recommended to apply security patches and updates to minimize the risk of exploitation.

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