CVE-2022-22942: Local privilege escalation in Linux vmwgfx
- Vendor
- VMware
CVE-2022-22942 is a use-after-free vulnerability in the Linux kernel's VMware graphics driver, vmwgfx. Improper handling of a failed userspace copy in vmw_execbuf_copy_fence_user leaves a dangling file pointer, allowing an unprivileged local user to gain access to files opened by other processes and potentially escalate privileges. The affected upstream kernel range is identified as 4.14-rc1 through 5.17-rc1; distribution kernels may have different affected versions because of backports.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can bypass file-access restrictions and enable local privilege escalation, compromising system confidentiality, integrity, and availability. Files opened by other processes may become accessible to an otherwise unauthorized user.
Mitigation
If you can’t patch tonight, do this now.
Prevent the vmwgfx kernel module from loading by blacklisting it until a corrected kernel or supported live patch is deployed. This may affect systems that depend on the driver for graphics functionality.
Remediation
Patch, then assume compromise.
Install the distribution's kernel security update addressing CVE-2022-22942 and reboot into the corrected kernel. Fixed RHEL builds include 4.18.0-348.20.1.el8_5 for RHEL 8, 4.18.0-305.40.1.el8_4 for RHEL 8.4 EUS, and 4.18.0-193.79.1.el8_2 for RHEL 8.2 EUS. Use the corresponding fixed kernel-rt package for real-time deployments. Where supported, apply the vendor's matching kpatch-patch live update as an alternative to a conventional kernel update and reboot.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2022-22942 exploited in the wild?
- As of Oct 19, 2026, Mallory has no reports of CVE-2022-22942 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2022-22942?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2022-22942, the earliest disclosed Jan 28, 2022.
- Is there a patch for CVE-2022-22942?
- Install the distribution's kernel security update addressing CVE-2022-22942 and reboot into the corrected kernel. Fixed RHEL builds include 4.18.0-348.20.1.el8_5 for RHEL 8, 4.18.0-305.40.1.el8_4 for RHEL 8.4 EUS, and 4.18.0-193.79.1.el8_2 for RHEL 8.2 EUS.
- What products are affected by CVE-2022-22942?
- VMware Photon Os.
- How severe is CVE-2022-22942?
- CVE-2022-22942 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 1.9% (80th percentile) as of Oct 19, 2026.
Recent activity
31 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.