Data race vulnerability in perf/core package

Kernel Updated 02 Oct 2025

Summary

31/07/2022
N/A
No i
Unrated
Not published

GSD-2022-1004140: perf/core: Fix data race between perf_event_set_output() and perf_mmap_close(). Affects Kernel versions >= 9bb5d40cd93c9dd4be74834b1dcb1ba03629716b, < a9391ff7a7c5f113d6f2bf6621d49110950de49c. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The perf/core package is a component of the Linux Kernel that provides performance monitoring and profiling capabilities. It allows users to collect and analyze performance data from various system resources. The package includes functions for managing performance events and memory mapping. However, a vulnerability has been discovered in the package that can lead to a data race condition.

Vulnerability Detail

The data race vulnerability in perf/core arises due to a race condition between the perf_event_set_output() and perf_mmap_close() functions. This vulnerability can be exploited by an attacker to manipulate or corrupt shared data structures, leading to potential crashes, data corruption, or privilege escalation. The vulnerability was introduced in version v3.10 of the Linux Kernel and has been fixed in version v5.18.15.

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 temporary workaround, users can disable or limit the usage of the perf/core package if it is not essential for their system's functionality. This can be done by blacklisting the relevant kernel modules or restricting access to the perf_event_set_output() and perf_mmap_close() functions. However, this workaround may impact performance monitoring capabilities.

Conclusion

The data race vulnerability in the perf/core package of the Linux Kernel can have serious consequences, including crashes, data corruption, and privilege escalation. It is crucial to update the kernel to the fixed version or apply the recommended patches to mitigate the risk. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The data race vulnerability can lead to crashes, data corruption, or privilege escalation, potentially allowing an attacker to gain unauthorized access or disrupt system operations.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground and it will analyze and alert you if the vulnerability is present.

At the time of this report, there is no known public exploit for this vulnerability. However, it is important to apply the recommended fixes to mitigate the risk.

In addition to updating the Linux Kernel, it is recommended to follow security best practices such as regularly applying security patches, using strong authentication mechanisms, and implementing proper access controls to minimize the risk of exploitation.

You can refer to the vulnerability details in the GSD Database at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1004xxx/GSD-2022-1004140.json for more technical information and references.

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