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-1001248: libbpf: Fix possible NULL pointer dereference when destroying skeleton. Affects Kernel versions >= d66562fba1ce66975bd61b0786fb8b1810f33caa, < 31e124e77dc2dad3dfd9eb16088345460cfdfe15. 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 libbpf package is a library that provides a high-level interface for interacting with the BPF (Berkeley Packet Filter) subsystem in the Linux kernel. BPF is a powerful mechanism that allows user-space programs to safely execute code within the kernel. The libbpf library enables developers to load and manage BPF programs, maps, and other related resources. However, a vulnerability has been discovered in libbpf that could lead to a NULL pointer dereference when destroying a skeleton.

Vulnerability Detail

The vulnerability in libbpf arises when attempting to destroy a skeleton. A skeleton is a data structure used to manage BPF programs and maps. In certain scenarios, if a skeleton is destroyed without being properly initialized, a NULL pointer dereference may occur. This can result in a crash or other unexpected behavior, potentially leading to a denial-of-service condition. The vulnerability was introduced in version v5.6 of the Linux Kernel and has been fixed in version v5.17.2.

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 crucial to update to the fixed version of the Linux Kernel as soon as possible.

Conclusion

The libbpf package is vulnerable to a NULL pointer dereference when destroying a skeleton. This vulnerability can lead to crashes or other unexpected behavior, potentially resulting in a denial-of-service condition. It is crucial to update to the fixed version of the Linux Kernel (v5.17.2 or newer) to mitigate this vulnerability. For further support on vulnerability remediation, please contact 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 BPF subsystem in the Linux kernel. It allows user-space programs to safely execute code within the kernel.

A skeleton is a data structure used to manage BPF programs and maps in libbpf. It provides an abstraction layer for loading and managing BPF resources.

A NULL pointer dereference occurs when a program attempts to access or manipulate memory using a pointer that points to NULL (a memory address of 0). This can lead to crashes or other unexpected behavior.

The vulnerability can result in a NULL pointer dereference, which may lead to a crash or other unexpected behavior. This could potentially be exploited by an attacker to cause a denial-of-service condition.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and the Vulert Playground will analyze it for any known vulnerabilities.

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