CVE-2022-22942 json
The vmwgfx driver contains a local privilege escalation vulnerability that allows unprivileged users to gain access to files opened by othe…
published 2023-12-13 2 y ago modified 2026-06-17 4 mo ago also EUVD-2022-28067
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 1
- Metasploit
Summary
The vmwgfx driver contains a local privilege escalation vulnerability that allows unprivileged users to gain access to files opened by other processes on the system through a dangling 'file' pointer.
Patch / fix
- linux Debian 14, Debian 13, Debian 12 5.15.15-2
debian advisories DEBIAN-CVE-2022-22942
- linux Ubuntu 18.04 LTS 4.15.0-169.177
- linux Ubuntu 20.04 LTS 5.4.0-100.113
- linux-aws Ubuntu 18.04 LTS 4.15.0-1121.129
- linux-aws Ubuntu 20.04 LTS 5.4.0-1066.69
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1065.69
- linux-gke Ubuntu 20.04 LTS 5.4.0-1063.66
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1015.16
- linux-kvm Ubuntu 18.04 LTS 4.15.0-1107.109
ubuntu advisories UBUNTU-CVE-2022-22942
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- redhat-virtualization-host RHEL 7 4.3.22-20220330.1.el7_9
- redhat-virtualization-host-image-update RHEL 7 4.3.22-20220330.1.el7_9
- kernel RHEL 8 4.18.0-348.20.1.el8_5
- perf RHEL 8 4.18.0-348.20.1.el8_5
- bpftool RHEL 8 4.18.0-348.20.1.el8_5
- kernel-core RHEL 8 4.18.0-348.20.1.el8_5
- kernel-tools RHEL 8 4.18.0-348.20.1.el8_5
- python3-perf RHEL 8 4.18.0-348.20.1.el8_5
red hat advisories RHSA-2022:1263RHSA-2022:0825RHSA-2022:0777RHSA-2022:1373RHSA-2022:1324RHSA-2022:1103
- kernel-syms SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.222.1
- kernel-source SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.222.1
- kernel-default SLES for SAP 12 SP5, SLES 12 SP5, SLE Workstation Extension 12 SP5 +2 more 4.12.14-122.222.1
- kernel-obs-build SLE Software Development Kit 12 SP5 4.12.14-122.222.1
- kernel-default SLES for SAP 15 SP2, SLES 15 SP2-LTSS, SLE Live Patching 15 SP2 +2 more 5.3.18-150200.24.197.1
- kernel-64kb SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS, Enterprise Storage 7.1 5.3.18-150300.59.167.1
- kernel-syms SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.167.1
- kernel-source SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.167.1
suse advisories SUSE-SU-2024:2561-1SUSE-SU-2024:2365-1SUSE-SU-2024:2362-1SUSE-SU-2024:2360-1SUSE-SU-2022:2111-1SUSE-SU-2022:1593-1
- kernel-source openSUSE Tumbleweed 5.16.4-1.1
- kernel-source openSUSE Tumbleweed 6.6.17-1.1
- dtb-aarch64 openSUSE Leap 15.3 5.3.18-150300.59.49.1
- kernel-64kb openSUSE Leap 15.3 5.3.18-150300.59.49.1
- kernel-syms openSUSE Leap 15.3 5.3.18-150300.59.49.1
- kernel-obs-qa openSUSE Leap 15.3 5.3.18-150300.59.49.1
- kernel-source openSUSE Leap 15.3 5.3.18-150300.59.49.1
- kernel-default openSUSE Leap 15.3 5.3.18-150300.59.49.1
opensuse advisories openSUSE-SU-2024:11796-1openSUSE-SU-2024:13704-1openSUSE-SU-2022:0370-1openSUSE-SU-2022:0363-1
- kernel Rocky Linux 8 4.18.0-348.20.1.el8_5
- kernel-rt Rocky Linux 8 4.18.0-348.20.1.rt7.150.el8_5
rocky linux advisories RLSA-2022:0825RLSA-2022:0819
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-22942 updated cvss 7.0
kernel: failing usercopy allows for use-after-free exploitation
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: workaround, no fix available
-
Red Hat CodeReady Linux Builder (v. 8) kernel-debuginfo-common-x86_64 4.18.0-348.20.1.el8_5, kernel-debuginfo-common-aarch64 4.18.0-348.20.1.el8_5, kernel-debuginfo-common-ppc64le 4.18.0-348.20.1.el8_5fixed: vendor fix RHSA-2022:0825
-
Red Hat CodeReady Linux Builder EUS (v. 8.2) kernel-debuginfo-common-x86_64 4.18.0-193.79.1.el8_2, kernel-debuginfo-common-aarch64 4.18.0-193.79.1.el8_2, kernel-debuginfo-common-ppc64le 4.18.0-193.79.1.el8_2fixed: vendor fix RHSA-2022:0820
-
Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-348.20.1.el8_5, kernel 4.18.0-348.20.1.el8_5, bpftool 4.18.0-348.20.1.el8_5, kpatch-patch-4_18_0-348 1-3.el8, kernel-core 4.18.0-348.20.1.el8_5, kernel-tools 4.18.0-348.20.1.el8_5, +19 morefixed: vendor fix RHSA-2022:0825
-
Red Hat Enterprise Linux BaseOS E4S (v. 8.1) perf 4.18.0-147.64.1.el8_1, kernel 4.18.0-147.64.1.el8_1, bpftool 4.18.0-147.64.1.el8_1, kernel-core 4.18.0-147.64.1.el8_1, kernel-tools 4.18.0-147.64.1.el8_1, python3-perf 4.18.0-147.64.1.el8_1, +19 morefixed: vendor fix RHSA-2022:0823
-
Red Hat Enterprise Linux BaseOS EUS (v. 8.2) perf 4.18.0-193.79.1.el8_2, kernel 4.18.0-193.79.1.el8_2, bpftool 4.18.0-193.79.1.el8_2, kernel-core 4.18.0-193.79.1.el8_2, kernel-tools 4.18.0-193.79.1.el8_2, python3-perf 4.18.0-193.79.1.el8_2, +25 morefixed: vendor fix RHSA-2022:0820
-
Red Hat Enterprise Linux BaseOS EUS (v.8.4) perf 4.18.0-305.40.1.el8_4, kernel 4.18.0-305.40.1.el8_4, bpftool 4.18.0-305.40.1.el8_4, kpatch-patch-4_18_0-305 1-11.el8, kernel-core 4.18.0-305.40.1.el8_4, kernel-tools 4.18.0-305.40.1.el8_4, +26 morefixed: vendor fix RHSA-2022:0777
-
Red Hat Enterprise Linux Client (v. 7) perf 3.10.0-1160.59.1.el7, kernel 3.10.0-1160.59.1.el7, bpftool 3.10.0-1160.59.1.el7, python-perf 3.10.0-1160.59.1.el7, kernel-tools 3.10.0-1160.59.1.el7, kernel-tools-libs 3.10.0-1160.59.1.el7, +2 more Red Hat Enterprise Linux Client Optional (v. 7) kernel-debuginfo-common-x86_64 3.10.0-1160.59.1.el7 Red Hat Enterprise Linux ComputeNode Optional (v. 7) kernel-debuginfo-common-x86_64 3.10.0-1160.59.1.el7fixed: vendor fix RHSA-2022:0620
show 28 moreshow fewer
-
Red Hat Enterprise Linux CRB EUS (v.8.4) kernel-debuginfo-common-x86_64 4.18.0-305.40.1.el8_4, kernel-debuginfo-common-aarch64 4.18.0-305.40.1.el8_4, kernel-debuginfo-common-ppc64le 4.18.0-305.40.1.el8_4fixed: vendor fix RHSA-2022:0777
-
Red Hat Enterprise Linux for Real Time (v. 7) kernel-rt 3.10.0-1160.59.1.rt56.1200.el7, kernel-rt-trace 3.10.0-1160.59.1.rt56.1200.el7, kernel-rt-debuginfo-common-x86_64 3.10.0-1160.59.1.rt56.1200.el7fixed: vendor fix RHSA-2022:0622
-
Red Hat Enterprise Linux for Real Time (v. 8) kernel-rt 4.18.0-348.20.1.rt7.150.el8_5, kernel-rt-core 4.18.0-348.20.1.rt7.150.el8_5, kernel-rt-modules 4.18.0-348.20.1.rt7.150.el8_5, kernel-rt-debug-core 4.18.0-348.20.1.rt7.150.el8_5, kernel-rt-debug-modules 4.18.0-348.20.1.rt7.150.el8_5, kernel-rt-modules-extra 4.18.0-348.20.1.rt7.150.el8_5, +2 morefixed: vendor fix RHSA-2022:0819
-
Red Hat Enterprise Linux for Real Time for NFV (v. 7) kernel-rt 3.10.0-1160.59.1.rt56.1200.el7, kernel-rt-kvm 3.10.0-1160.59.1.rt56.1200.el7, kernel-rt-trace 3.10.0-1160.59.1.rt56.1200.el7, kernel-rt-debug-kvm 3.10.0-1160.59.1.rt56.1200.el7, kernel-rt-trace-kvm 3.10.0-1160.59.1.rt56.1200.el7, kernel-rt-debuginfo-common-x86_64 3.10.0-1160.59.1.rt56.1200.el7fixed: vendor fix RHSA-2022:0622
-
Red Hat Enterprise Linux NFV EUS (v.8.4) kernel-rt 4.18.0-305.40.1.rt7.112.el8_4, kernel-rt-kvm 4.18.0-305.40.1.rt7.112.el8_4, kernel-rt-core 4.18.0-305.40.1.rt7.112.el8_4, kernel-rt-modules 4.18.0-305.40.1.rt7.112.el8_4, kernel-rt-debug-kvm 4.18.0-305.40.1.rt7.112.el8_4, kernel-rt-debug-core 4.18.0-305.40.1.rt7.112.el8_4, +4 morefixed: vendor fix RHSA-2022:0771
-
Red Hat Enterprise Linux Real Time EUS (v. 8.2) kernel-rt 4.18.0-193.79.1.rt13.129.el8_2, kernel-rt-core 4.18.0-193.79.1.rt13.129.el8_2, kernel-rt-modules 4.18.0-193.79.1.rt13.129.el8_2, kernel-rt-debug-core 4.18.0-193.79.1.rt13.129.el8_2, kernel-rt-debug-modules 4.18.0-193.79.1.rt13.129.el8_2, kernel-rt-modules-extra 4.18.0-193.79.1.rt13.129.el8_2, +2 morefixed: vendor fix RHSA-2022:0821
-
Red Hat Enterprise Linux Real Time for NFV (v. 8) kernel-rt 4.18.0-348.20.1.rt7.150.el8_5, kernel-rt-kvm 4.18.0-348.20.1.rt7.150.el8_5, kernel-rt-core 4.18.0-348.20.1.rt7.150.el8_5, kernel-rt-modules 4.18.0-348.20.1.rt7.150.el8_5, kernel-rt-debug-kvm 4.18.0-348.20.1.rt7.150.el8_5, kernel-rt-debug-core 4.18.0-348.20.1.rt7.150.el8_5, +4 morefixed: vendor fix RHSA-2022:0819
-
Red Hat Enterprise Linux Real Time for NFV EUS (v. 8.2) kernel-rt 4.18.0-193.79.1.rt13.129.el8_2, kernel-rt-kvm 4.18.0-193.79.1.rt13.129.el8_2, kernel-rt-core 4.18.0-193.79.1.rt13.129.el8_2, kernel-rt-modules 4.18.0-193.79.1.rt13.129.el8_2, kernel-rt-debug-kvm 4.18.0-193.79.1.rt13.129.el8_2, kernel-rt-debug-core 4.18.0-193.79.1.rt13.129.el8_2, +4 morefixed: vendor fix RHSA-2022:0821
-
Red Hat Enterprise Linux RT EUS (v.8.4) kernel-rt 4.18.0-305.40.1.rt7.112.el8_4, kernel-rt-core 4.18.0-305.40.1.rt7.112.el8_4, kernel-rt-modules 4.18.0-305.40.1.rt7.112.el8_4, kernel-rt-debug-core 4.18.0-305.40.1.rt7.112.el8_4, kernel-rt-debug-modules 4.18.0-305.40.1.rt7.112.el8_4, kernel-rt-modules-extra 4.18.0-305.40.1.rt7.112.el8_4, +2 morefixed: vendor fix RHSA-2022:0771
-
Red Hat Enterprise Linux Server (v. 7) perf 3.10.0-1160.59.1.el7, kernel 3.10.0-1160.59.1.el7, bpftool 3.10.0-1160.59.1.el7, python-perf 3.10.0-1160.59.1.el7, kernel-kdump 3.10.0-1160.59.1.el7, kernel-tools 3.10.0-1160.59.1.el7, +17 morefixed: vendor fix RHSA-2022:0620
-
Red Hat Enterprise Linux Server AUS (v. 7.6) perf 3.10.0-957.92.1.el7, kernel 3.10.0-957.92.1.el7, bpftool 3.10.0-957.92.1.el7, python-perf 3.10.0-957.92.1.el7, kernel-tools 3.10.0-957.92.1.el7, kernel-tools-libs 3.10.0-957.92.1.el7, +2 morefixed: vendor fix RHSA-2022:1107
-
Red Hat Enterprise Linux Server AUS (v. 7.7) perf 3.10.0-1062.66.1.el7, kernel 3.10.0-1062.66.1.el7, bpftool 3.10.0-1062.66.1.el7, python-perf 3.10.0-1062.66.1.el7, kernel-tools 3.10.0-1062.66.1.el7, kernel-tools-libs 3.10.0-1062.66.1.el7, +2 morefixed: vendor fix RHSA-2022:1324
-
Red Hat Enterprise Linux Server E4S (v. 7.6) perf 3.10.0-957.92.1.el7, kernel 3.10.0-957.92.1.el7, python-perf 3.10.0-957.92.1.el7, kernel-tools 3.10.0-957.92.1.el7, kpatch-patch-3_10_0-957_72_1 1-6.el7, kpatch-patch-3_10_0-957_76_1 1-6.el7, +10 morefixed: vendor fix RHSA-2022:1107
-
Red Hat Enterprise Linux Server E4S (v. 7.7) perf 3.10.0-1062.66.1.el7, kernel 3.10.0-1062.66.1.el7, bpftool 3.10.0-1062.66.1.el7, python-perf 3.10.0-1062.66.1.el7, kernel-tools 3.10.0-1062.66.1.el7, kpatch-patch-3_10_0-1062_49_1 1-6.el7, +12 morefixed: vendor fix RHSA-2022:1324
-
Red Hat Enterprise Linux Server Optional (v. 7) kernel-debuginfo-common-ppc64 3.10.0-1160.59.1.el7, kernel-debuginfo-common-x86_64 3.10.0-1160.59.1.el7, kernel-debuginfo-common-ppc64le 3.10.0-1160.59.1.el7fixed: vendor fix RHSA-2022:0620
-
Red Hat Enterprise Linux Server Optional AUS (v. 7.6) kernel-debuginfo-common-x86_64 3.10.0-957.92.1.el7fixed: vendor fix RHSA-2022:1107
-
Red Hat Enterprise Linux Server Optional AUS (v. 7.7) kernel-debuginfo-common-x86_64 3.10.0-1062.66.1.el7fixed: vendor fix RHSA-2022:1324
-
Red Hat Enterprise Linux Server Optional E4S (v. 7.6) kernel-debuginfo-common-x86_64 3.10.0-957.92.1.el7, kernel-debuginfo-common-ppc64le 3.10.0-957.92.1.el7fixed: vendor fix RHSA-2022:1107
-
Red Hat Enterprise Linux Server Optional E4S (v. 7.7) kernel-debuginfo-common-x86_64 3.10.0-1062.66.1.el7, kernel-debuginfo-common-ppc64le 3.10.0-1062.66.1.el7fixed: vendor fix RHSA-2022:1324
-
Red Hat Enterprise Linux Server Optional TUS (v. 7.6) kernel-debuginfo-common-x86_64 3.10.0-957.92.1.el7fixed: vendor fix RHSA-2022:1107
-
Red Hat Enterprise Linux Server Optional TUS (v. 7.7) kernel-debuginfo-common-x86_64 3.10.0-1062.66.1.el7fixed: vendor fix RHSA-2022:1324
-
Red Hat Enterprise Linux Server TUS (v. 7.6) perf 3.10.0-957.92.1.el7, kernel 3.10.0-957.92.1.el7, bpftool 3.10.0-957.92.1.el7, python-perf 3.10.0-957.92.1.el7, kernel-tools 3.10.0-957.92.1.el7, kernel-tools-libs 3.10.0-957.92.1.el7, +2 morefixed: vendor fix RHSA-2022:1107
-
Red Hat Enterprise Linux Server TUS (v. 7.7) perf 3.10.0-1062.66.1.el7, kernel 3.10.0-1062.66.1.el7, bpftool 3.10.0-1062.66.1.el7, python-perf 3.10.0-1062.66.1.el7, kernel-tools 3.10.0-1062.66.1.el7, kernel-tools-libs 3.10.0-1062.66.1.el7, +2 morefixed: vendor fix RHSA-2022:1324
-
Red Hat Enterprise Linux Workstation (v. 7) perf 3.10.0-1160.59.1.el7, kernel 3.10.0-1160.59.1.el7, bpftool 3.10.0-1160.59.1.el7, python-perf 3.10.0-1160.59.1.el7, kernel-tools 3.10.0-1160.59.1.el7, kernel-tools-libs 3.10.0-1160.59.1.el7, +2 more Red Hat Enterprise Linux Workstation Optional (v. 7) kernel-debuginfo-common-x86_64 3.10.0-1160.59.1.el7fixed: vendor fix RHSA-2022:0620
-
Red Hat Virtualization 4 Hypervisor for RHEL 7 redhat-virtualization-host 4.3.22-20220330.1.el7_9, redhat-virtualization-host-image-update 4.3.22-20220330.1.el7_9fixed: vendor fix RHSA-2022:1263
-
Red Hat Virtualization 4 Hypervisor for RHEL 8 redhat-virtualization-host 4.4.10-202203101736_8.5, redhat-virtualization-host-image-update 4.4.10-202203101736_8.5fixed: vendor fix RHSA-2022:0841
-
Red Hat RHEL 7-based RHEV-H for RHEV 4 (build requirements) redhat-virtualization-host 4.3.22-20220330.1.el7_9, redhat-virtualization-host-image-update 4.3.22-20220330.1.el7_9fixed: vendor fix RHSA-2022:1263
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat RHEL 7-based RHEV-H for RHEV 4 (build requirements) redhat-release-virtualization-host 4.3.22-1.el7ev, redhat-virtualization-host-productimg 4.3.22-1.el7, redhat-virtualization-host-image-update-placeholder 4.3.22-1.el7evnot affected: vulnerable code not present
1 more not affected in the full advisory
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (Metasploit exploit/linux/local/vmwgfx_fd_priv_esc)
- Published
Exploit prediction
2.56% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Metasploit exploit/linux/local/vmwgfx_fd_priv_esc vmwgfx Driver File Descriptor Handling Priv Esc metasploit exploit, good rank, 2022-01-28
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- n/a Photon OS
Classification
- Weakness
-
- CWE-416 Use After Free
References
-
github.com
/vmware/photon/wiki/Security-Update-3.0-356
release-notes
-
github.com
/vmware/photon/wiki/Security-Update-4.0-148
release-notes
-
openwall.com
/lists/oss-security/2022/01/27/4
mailing-list, third-party-advisory
Sources
- CVE List CVE-2022-22942
- NVD CVE-2022-22942
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.