Vulnerability in Kernel: perf bpf - Defer Freeing String

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1000470: perf bpf: Defer freeing string after possible strlen() on it. Affects Kernel versions >= 04f9bf2bac72480ca1d289b751b956dd1707a5d5, < bf4161eb7e3bc63986eab516b147196d2240d743. 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 functionality and acts as an interface between hardware and software. It includes various subsystems and modules that enable the system to manage resources, handle input/output operations, and facilitate communication between different components. One such subsystem is perf bpf, which allows users to analyze and trace performance-related events using Berkeley Packet Filter (BPF) programs. These programs can be used to filter and process data at various stages of the performance analysis pipeline.

Vulnerability Detail

The identified vulnerability in the perf bpf subsystem involves a potential issue with freeing a string after a possible strlen() operation on it. The vulnerability was introduced in version v5.8 of the Linux Kernel by commit 04f9bf2bac72480ca1d289b751b956dd1707a5d5 and is fixed in version v5.15.25 by commit bf4161eb7e3bc63986eab516b147196d2240d743. Although the impact and attack plausibility have not been proven, this vulnerability could potentially be exploited by an attacker to execute arbitrary code or cause a denial-of-service condition. Further technical details and references can be found in the provided source link.

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 mentioned for this vulnerability.

Conclusion

In conclusion, the identified vulnerability in the Kernel's perf bpf subsystem could potentially allow an attacker to execute arbitrary code or cause a denial-of-service condition. It is crucial to update the Linux Kernel to the fixed version (v5.15.25 or later) 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 impact of this vulnerability is not yet proven, but it could potentially allow an attacker to execute arbitrary code or 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 playground will analyze it for any open-source vulnerabilities, including this one.

No known exploit has been reported for this vulnerability at the moment.

The recommended mitigation is to update the Linux Kernel to the fixed version (v5.15.25 or later). It is important to keep the system and all software components up to date to minimize the risk of exploitation.

You can find more information about this vulnerability, including technical details and references, in the provided source link (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1000xxx/GSD-2022-1000470.json).

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