
Cloud Vulnerability DB
A community-led vulnerabilities database
A race condition vulnerability (CVE-2022-1729) was discovered in the Linux kernel's perf_event_open() function. The vulnerability was reported in May 2022 and affects kernel versions from 4.0-rc1 onwards. This security flaw allows an unprivileged user to gain root privileges through exploitation of the perf subsystem (Openwall List, NVD).
The vulnerability stems from a race condition in the perf subsystem where concurrent perf_event_open() calls can lead to events being attached to multiple contexts simultaneously. The issue occurs when one thread creates a PERF_TYPE_HARDWARE event in a PERF_TYPE_TRACEPOINT group while another thread creates a PERF_TYPE_SOFTWARE event, resulting in context migration conflicts. This can lead to dangling pointers and use-after-free conditions when events are closed in a specific sequence (Openwall List). The vulnerability has been assigned a CVSS v3.1 base score of 7.0 (HIGH) with vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H (NetApp Advisory).
Successful exploitation of this vulnerability allows an unprivileged user to gain root privileges on affected systems. The bug enables several exploit primitives including kernel address information leaks and arbitrary code execution. However, the impact can be mitigated if the system has the kernel.perf_event_paranoid sysctl variable set to >= 3, which restricts perf usage for unprivileged users (Openwall List).
A patch was developed and committed to the Linux kernel to address this vulnerability. The fix involves re-checking the context after acquiring locks to prevent the race condition (Kernel Commit). As a workaround, systems can be protected by setting the kernel.perf_event_paranoid sysctl variable to >= 3, which prevents unprivileged users from using the perf subsystem (Openwall List).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."