Vulnerability in Kernel: perf bpf - Defer freeing string after possible strlen() on it

Kernel Updated 02 Oct 2025

Summary

27/02/2022
N/A
No i
Unrated
Not published

GSD-2022-1000402: perf bpf: Defer freeing string after possible strlen() on it. Affects Kernel versions >= 04f9bf2bac72480ca1d289b751b956dd1707a5d5, < d3018a19622115e1126f6abb3657c65877a99410. 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 provides core functionalities and interfaces with hardware devices. It manages system resources, facilitates communication between software and hardware, and ensures the stability and security of the system. The perf bpf feature in the Kernel allows users to collect performance-related data using Berkeley Packet Filter (BPF) programs. These programs can be used to analyze and trace system events, providing valuable insights into system performance. However, a vulnerability has been discovered in the perf bpf feature that could potentially lead to security issues.

Vulnerability Detail

The vulnerability in the perf bpf feature arises from a failure to properly handle memory allocation and deallocation. Specifically, when freeing a string, the code does not ensure that the string is not being used by other functions, potentially leading to a use-after-free scenario. An attacker could exploit this vulnerability by crafting a malicious BPF program that triggers the use-after-free condition, allowing them to execute arbitrary code or cause a denial-of-service (DoS) condition. The impact and attack plausibility of this vulnerability have not been proven yet, but it is crucial to address it to maintain the security of the system.

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 disable the perf bpf feature if it is not essential for their system. This can be done by removing or blacklisting the relevant kernel module. However, disabling this feature may impact the ability to collect performance-related data using BPF programs.

Conclusion

The vulnerability in the perf bpf feature of the Kernel poses a potential security risk. It is crucial to update the Kernel to the latest stable version to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel is a critical component of the Linux operating system that provides core functionalities and interfaces with hardware devices.

The perf bpf feature in the Kernel allows users to collect performance-related data using Berkeley Packet Filter (BPF) programs.

A use-after-free vulnerability occurs when a program continues to use a memory region after it has been freed, leading to potential security issues.

An attacker can exploit this vulnerability by crafting a malicious BPF program that triggers the use-after-free condition, allowing them to execute arbitrary code or cause a denial-of-service (DoS) condition.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.10.102 or later.

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