CVE-2022-22942: Use After Free

Published Jan 25, 2022
·
Updated

A failing usercopy of the fencerep object will lead to a stale entry in the file descriptor table as putunusedfd() won't release it. This enables userland to refer to a dangling 'file' object through that still valid file descriptor, leading to all kinds of use-after-free exploitation scenarios.

Other sources

A use-after-free flaw was found in the Linux kernel’s vmwexecbufcopyfenceuser function in drivers/gpu/drm/vmwgfx/vmwgfxexecbuf.c in vmwgfx. This flaw allows a local attacker with user privileges to cause a privilege escalation problem.

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.

— Launchpad

Affected Software

112 affected componentsFixes available
redhat/kernel-rt<0:3.10.0-1160.59.1.rt56.1200.el7
0:3.10.0-1160.59.1.rt56.1200.el7
redhat/kernel<0:3.10.0-1160.59.1.el7
0:3.10.0-1160.59.1.el7
redhat/kernel<0:3.10.0-957.92.1.el7
0:3.10.0-957.92.1.el7
redhat/kernel<0:3.10.0-1062.66.1.el7
0:3.10.0-1062.66.1.el7
redhat/kernel-rt<0:4.18.0-348.20.1.rt7.150.el8_5
0:4.18.0-348.20.1.rt7.150.el8_5
redhat/kernel<0:4.18.0-348.20.1.el8_5
0:4.18.0-348.20.1.el8_5
redhat/kernel<0:4.18.0-147.64.1.el8_1
0:4.18.0-147.64.1.el8_1
redhat/kernel-rt<0:4.18.0-193.79.1.rt13.129.el8_2
0:4.18.0-193.79.1.rt13.129.el8_2
redhat/kernel<0:4.18.0-193.79.1.el8_2
0:4.18.0-193.79.1.el8_2
redhat/kernel-rt<0:4.18.0-305.40.1.rt7.112.el8_4
0:4.18.0-305.40.1.rt7.112.el8_4
redhat/kernel<0:4.18.0-305.40.1.el8_4
0:4.18.0-305.40.1.el8_4
redhat/redhat-virtualization-host<0:4.3.22-20220330.1.el7_9
0:4.3.22-20220330.1.el7_9
VMware Photon OS=3.0
VMware Photon OS=4.0
redhat/kernel<5.16
5.16
debian/linux<5.15.15-2
5.15.15-2
debian/linux<5.15.15-2
5.15.15-2
debian/linux<5.15.15-2
5.15.15-2
ubuntu/linux-azure<4.15.0-1131.144~14.04.1
4.15.0-1131.144~14.04.1
ubuntu/linux-aws-hwe<4.15.0-1120.128~16.04.1
4.15.0-1120.128~16.04.1
ubuntu/linux-azure<4.15.0-1131.144~16.04.1
4.15.0-1131.144~16.04.1
ubuntu/linux-gcp<4.15.0-1116.130~16.04.1
4.15.0-1116.130~16.04.1
ubuntu/linux-hwe<4.15.0-169.177~16.04.1
4.15.0-169.177~16.04.1
ubuntu/linux-oracle<4.15.0-1087.95~16.04.1
4.15.0-1087.95~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux<4.15.0-169.177
4.15.0-169.177
ubuntu/linux-aws<4.15.0-1121.129
4.15.0-1121.129
ubuntu/linux-aws-5.4<5.4.0-1066.69~18.04.1
5.4.0-1066.69~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1131.144
4.15.0-1131.144
ubuntu/linux-azure-5.4<5.4.0-1070.73~18.04.1
5.4.0-1070.73~18.04.1
ubuntu/linux-dell300x<4.15.0-1035.40
4.15.0-1035.40
ubuntu/linux-gcp-4.15<4.15.0-1116.130
4.15.0-1116.130
ubuntu/linux-gcp-5.4<5.4.0-1065.69~18.04.1
5.4.0-1065.69~18.04.1
ubuntu/linux-gke-5.4<5.4.0-1063.66~18.04.1
5.4.0-1063.66~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1034.35~18.04.1
5.4.0-1034.35~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-100.113~18.04.1
5.4.0-100.113~18.04.1
ubuntu/linux-ibm-5.4<5.4.0-1015.16~18.04.1
5.4.0-1015.16~18.04.1
ubuntu/linux-kvm<4.15.0-1107.109
4.15.0-1107.109
ubuntu/linux-oracle<4.15.0-1087.95
4.15.0-1087.95
ubuntu/linux-oracle-5.4<5.4.0-1064.68~18.04.1
5.4.0-1064.68~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1053.60~18.04.1
5.4.0-1053.60~18.04.1
ubuntu/linux-raspi2<4.15.0-1103.110
4.15.0-1103.110
ubuntu/linux-snapdragon<4.15.0-1120.129
4.15.0-1120.129
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-azure*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gke-4.15*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-aws-fips<4.15.0-2061.63
4.15.0-2061.63
ubuntu/linux-azure-fips<4.15.0-2043.47
4.15.0-2043.47
ubuntu/linux-fips<4.15.0-1078.87
4.15.0-1078.87
ubuntu/linux-gcp-fips<4.15.0-2026.28
4.15.0-2026.28
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-100.113
5.4.0-100.113
ubuntu/linux-aws<5.4.0-1066.69
5.4.0-1066.69
ubuntu/linux-aws-5.13<5.13.0-1014.15~20.04.1
5.13.0-1014.15~20.04.1
ubuntu/linux-azure<5.4.0-1070.73
5.4.0-1070.73
ubuntu/linux-azure-5.13<5.13.0-1014.16~20.04.1
5.13.0-1014.16~20.04.1
ubuntu/linux-bluefield<5.4.0-1028.31
5.4.0-1028.31
ubuntu/linux-gcp<5.4.0-1065.69
5.4.0-1065.69
ubuntu/linux-gcp-5.13<5.13.0-1015.18~20.04.1
5.13.0-1015.18~20.04.1
ubuntu/linux-gke<5.4.0-1063.66
5.4.0-1063.66
ubuntu/linux-gkeop<5.4.0-1034.35
5.4.0-1034.35
ubuntu/linux-hwe-5.13<5.13.0-30.33~20.04.1
5.13.0-30.33~20.04.1
ubuntu/linux-ibm<5.4.0-1015.16
5.4.0-1015.16
ubuntu/linux-intel-5.13<5.13.0-1010.10
5.13.0-1010.10
ubuntu/linux-kvm<5.4.0-1056.58
5.4.0-1056.58
ubuntu/linux-oem-5.14<5.14.0-1022.24
5.14.0-1022.24
ubuntu/linux-oracle<5.4.0-1064.68
5.4.0-1064.68
ubuntu/linux-oracle-5.13<5.13.0-1018.22~20.04.1
5.13.0-1018.22~20.04.1
ubuntu/linux-raspi<5.4.0-1053.60
5.4.0-1053.60
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.8*
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.8*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.8*
ubuntu/linux-oem-5.10*
ubuntu/linux-oem-5.13*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle-5.11*
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.11*
ubuntu/linux-riscv-5.8*
ubuntu/linux-aws-fips<5.4.0-1069.73+fips2
5.4.0-1069.73+fips2
ubuntu/linux-azure-fips<5.4.0-1073.76+fips1
5.4.0-1073.76+fips1
ubuntu/linux-fips<5.4.0-1043.49
5.4.0-1043.49
ubuntu/linux-gcp-fips<5.4.0-1067.71~20.04.1
5.4.0-1067.71~20.04.1
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-raspi-realtime*
ubuntu/linux-vmware*
debian/linux
6.1.176-16.1.190-16.12.107-16.12.116-17.2.15-17.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-1160.59.1.rt56.1200.el7
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-1160.59.1.el7
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-957.92.1.el7
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-1062.66.1.el7
  5. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-348.20.1.rt7.150.el8_5
  6. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-348.20.1.el8_5
  7. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-147.64.1.el8_1
  8. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-193.79.1.rt13.129.el8_2
  9. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-193.79.1.el8_2
  10. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-305.40.1.rt7.112.el8_4
  11. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-305.40.1.el8_4
  12. Upgrade

    Upgrade redhat/redhat-virtualization-host to a version that resolves this vulnerability.

    Fixed in 0:4.3.22-20220330.1.el7_9
  13. Upgrade

    Upgrade redhat/Kernel to a version that resolves this vulnerability.

    Fixed in 5.16
  14. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.15.15-2
  15. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1131.144~14.04.1
  16. Upgrade

    Upgrade ubuntu/linux-aws-hwe to a version that resolves this vulnerability.

    Fixed in 4.15.0-1120.128~16.04.1
  17. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1131.144~16.04.1
  18. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 4.15.0-1116.130~16.04.1
  19. Upgrade

    Upgrade ubuntu/linux-hwe to a version that resolves this vulnerability.

    Fixed in 4.15.0-169.177~16.04.1
  20. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 4.15.0-1087.95~16.04.1
  21. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 4.15.0-169.177
  22. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.15.0-1121.129
  23. Upgrade

    Upgrade ubuntu/linux-aws-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1066.69~18.04.1
  24. Upgrade

    Upgrade ubuntu/linux-azure-4.15 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1131.144
  25. Upgrade

    Upgrade ubuntu/linux-azure-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1070.73~18.04.1
  26. Upgrade

    Upgrade ubuntu/linux-dell300x to a version that resolves this vulnerability.

    Fixed in 4.15.0-1035.40
  27. Upgrade

    Upgrade ubuntu/linux-gcp-4.15 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1116.130
  28. Upgrade

    Upgrade ubuntu/linux-gcp-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1065.69~18.04.1
  29. Upgrade

    Upgrade ubuntu/linux-gke-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1063.66~18.04.1
  30. Upgrade

    Upgrade ubuntu/linux-gkeop-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1034.35~18.04.1
  31. Upgrade

    Upgrade ubuntu/linux-hwe-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-100.113~18.04.1
  32. Upgrade

    Upgrade ubuntu/linux-ibm-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1015.16~18.04.1
  33. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 4.15.0-1107.109
  34. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 4.15.0-1087.95
  35. Upgrade

    Upgrade ubuntu/linux-oracle-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1064.68~18.04.1
  36. Upgrade

    Upgrade ubuntu/linux-raspi-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1053.60~18.04.1
  37. Upgrade

    Upgrade ubuntu/linux-raspi2 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1103.110
  38. Upgrade

    Upgrade ubuntu/linux-snapdragon to a version that resolves this vulnerability.

    Fixed in 4.15.0-1120.129
  39. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2061.63
  40. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2043.47
  41. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-1078.87
  42. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2026.28
  43. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 5.4.0-100.113
  44. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.4.0-1066.69
  45. Upgrade

    Upgrade ubuntu/linux-aws-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1014.15~20.04.1
  46. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.4.0-1070.73
  47. Upgrade

    Upgrade ubuntu/linux-azure-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1014.16~20.04.1
  48. Upgrade

    Upgrade ubuntu/linux-bluefield to a version that resolves this vulnerability.

    Fixed in 5.4.0-1028.31
  49. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.4.0-1065.69
  50. Upgrade

    Upgrade ubuntu/linux-gcp-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1015.18~20.04.1
  51. Upgrade

    Upgrade ubuntu/linux-gke to a version that resolves this vulnerability.

    Fixed in 5.4.0-1063.66
  52. Upgrade

    Upgrade ubuntu/linux-gkeop to a version that resolves this vulnerability.

    Fixed in 5.4.0-1034.35
  53. Upgrade

    Upgrade ubuntu/linux-hwe-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-30.33~20.04.1
  54. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1015.16
  55. Upgrade

    Upgrade ubuntu/linux-intel-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1010.10
  56. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1056.58
  57. Upgrade

    Upgrade ubuntu/linux-oem-5.14 to a version that resolves this vulnerability.

    Fixed in 5.14.0-1022.24
  58. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.4.0-1064.68
  59. Upgrade

    Upgrade ubuntu/linux-oracle-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1018.22~20.04.1
  60. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.4.0-1053.60
  61. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1069.73+fips2
  62. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1073.76+fips1
  63. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1043.49
  64. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1067.71~20.04.1
  65. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.116-1Fixed in 7.2.15-1Fixed in 7.3.4-1
  66. Configuration

    Blacklist the affected vmwgfx kernel module to prevent it from loading automatically at boot until a fix is available.

    Linux kernel module loader vmwgfx = blacklisted

Event History

Jan 25, 2022
Data Sourced
via Red Hat·09:07 AM
DescriptionSeverityAffected Software
Jan 27, 2022
CVE Published
08:00 PM
Jan 28, 2022
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Dec 13, 2023
CVE Published
via MITRE·08:16 AM
Data Sourced
via MITRE·08:16 AM
DescriptionSeverityWeakness

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2022-22942?

CVE-2022-22942 is considered a critical security vulnerability due to the potential for use-after-free exploitation.

2

How do I fix CVE-2022-22942?

You can fix CVE-2022-22942 by updating your kernel to the patched versions provided by Red Hat as listed in the affected software section.

3

Which software versions are affected by CVE-2022-22942?

CVE-2022-22942 affects various versions of Red Hat's kernel and kernel-rt including kernels prior to 3.10.0-1160.59.1.el7 and 4.18.0-348.20.1.el8_5.

4

What are the risks of not addressing CVE-2022-22942?

Not addressing CVE-2022-22942 may lead to exploitation through dangling file objects, resulting in unauthorized access and potential system compromise.

5

Is CVE-2022-22942 specific to any operating system?

Yes, CVE-2022-22942 specifically affects Red Hat-based Linux distributions and VMware Photon OS.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203