Data race vulnerability in perf/core package
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.