7.8
CWE
416
Advisory Published
CVE Published
CVE Published
Updated

CVE-2022-22942: Use After Free

First published: Tue Jan 25 2022(Updated: )

A failing usercopy of the fence_rep object will lead to a stale entry in the file descriptor table as put_unused_fd() 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.

Credit: security@vmware.com security@vmware.com

Affected SoftwareAffected VersionHow to fix
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
redhat/Kernel<5.16
5.16
VMware Photon OS=3.0
VMware Photon OS=4.0
ubuntu/linux<4.15.0-169.177
4.15.0-169.177
ubuntu/linux<5.4.0-100.113
5.4.0-100.113
ubuntu/linux<5.13.0-30.33
5.13.0-30.33
ubuntu/linux<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-aws<4.15.0-1121.129
4.15.0-1121.129
ubuntu/linux-aws<5.4.0-1066.69
5.4.0-1066.69
ubuntu/linux-aws<5.13.0-1014.15
5.13.0-1014.15
ubuntu/linux-aws<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-aws-5.0<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-aws-5.11<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-aws-5.13<5.13.0-1014.15~20.04.1
5.13.0-1014.15~20.04.1
ubuntu/linux-aws-5.13<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-aws-5.15<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-aws-5.3<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-aws-5.4<5.4.0-1066.69~18.04.1
5.4.0-1066.69~18.04.1
ubuntu/linux-aws-5.4<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-aws-5.8<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-aws-6.5<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-aws-fips<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-aws-hwe<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-aws-hwe<4.15.0-1120.128~16.04.1
4.15.0-1120.128~16.04.1
ubuntu/linux-azure<5.4.0-1070.73
5.4.0-1070.73
ubuntu/linux-azure<5.13.0-1014.16
5.13.0-1014.16
ubuntu/linux-azure<4.15.0-1131.144~14.04.1
4.15.0-1131.144~14.04.1
ubuntu/linux-azure<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-azure<4.15.0-1131.144~16.04.1
4.15.0-1131.144~16.04.1
ubuntu/linux-azure-4.15<4.15.0-1131.144
4.15.0-1131.144
ubuntu/linux-azure-4.15<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-azure-5.11<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-azure-5.13<5.13.0-1014.16~20.04.1
5.13.0-1014.16~20.04.1
ubuntu/linux-azure-5.13<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-azure-5.15<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-azure-5.3<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-azure-5.4<5.4.0-1070.73~18.04.1
5.4.0-1070.73~18.04.1
ubuntu/linux-azure-5.4<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-azure-6.5<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-azure-edge<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-azure-fde<5.4.0-1070.73
5.4.0-1070.73
ubuntu/linux-azure-fde<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-azure-fde-5.15<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-azure-fips<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-bluefield<5.4.0-1028.31
5.4.0-1028.31
ubuntu/linux-bluefield<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-dell300x<4.15.0-1035.40
4.15.0-1035.40
ubuntu/linux-dell300x<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-fips<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gcp<5.4.0-1065.69
5.4.0-1065.69
ubuntu/linux-gcp<5.13.0-1015.18
5.13.0-1015.18
ubuntu/linux-gcp<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gcp<4.15.0-1116.130~16.04.1
4.15.0-1116.130~16.04.1
ubuntu/linux-gcp-4.15<4.15.0-1116.130
4.15.0-1116.130
ubuntu/linux-gcp-4.15<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gcp-5.11<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gcp-5.13<5.13.0-1015.18~20.04.1
5.13.0-1015.18~20.04.1
ubuntu/linux-gcp-5.13<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gcp-5.15<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gcp-5.3<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gcp-5.4<5.4.0-1065.69~18.04.1
5.4.0-1065.69~18.04.1
ubuntu/linux-gcp-5.8<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gcp-6.5<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gcp-fips<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gke<5.4.0-1063.66
5.4.0-1063.66
ubuntu/linux-gke<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gke-4.15<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gke-5.0<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gke-5.3<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gke-5.4<5.4.0-1063.66~18.04.1
5.4.0-1063.66~18.04.1
ubuntu/linux-gke-5.4<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gkeop<5.4.0-1034.35
5.4.0-1034.35
ubuntu/linux-gkeop<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gkeop-5.15<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-gkeop-5.4<5.4.0-1034.35~18.04.1
5.4.0-1034.35~18.04.1
ubuntu/linux-gkeop-5.4<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-hwe<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-hwe<4.15.0-169.177~16.04.1
4.15.0-169.177~16.04.1
ubuntu/linux-hwe-5.11<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-hwe-5.13<5.13.0-30.33~20.04.1
5.13.0-30.33~20.04.1
ubuntu/linux-hwe-5.13<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-hwe-5.15<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-hwe-5.4<5.4.0-100.113~18.04.1
5.4.0-100.113~18.04.1
ubuntu/linux-hwe-5.4<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-hwe-5.8<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-hwe-6.5<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-hwe-edge<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-ibm<5.4.0-1015.16
5.4.0-1015.16
ubuntu/linux-ibm<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-ibm-5.15<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-ibm-5.4<5.4.0-1015.16~18.04.1
5.4.0-1015.16~18.04.1
ubuntu/linux-ibm-5.4<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-intel<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-intel-5.13<5.13.0-1010.10
5.13.0-1010.10
ubuntu/linux-intel-5.13<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-intel-iotg<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-intel-iotg-5.15<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-iot<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-kvm<4.15.0-1107.109
4.15.0-1107.109
ubuntu/linux-kvm<5.4.0-1056.58
5.4.0-1056.58
ubuntu/linux-kvm<5.13.0-1013.14
5.13.0-1013.14
ubuntu/linux-kvm<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-laptop<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-lowlatency<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-lowlatency-hwe-5.15<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-lowlatency-hwe-6.5<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-lts-xenial<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-nvidia<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-nvidia-6.5<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-oem<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-oem-5.10<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-oem-5.13<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-oem-5.14<5.14.0-1022.24
5.14.0-1022.24
ubuntu/linux-oem-5.17<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-oem-5.6<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-oem-6.5<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-oem-6.8<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-oem-osp1<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-oracle<4.15.0-1087.95
4.15.0-1087.95
ubuntu/linux-oracle<5.4.0-1064.68
5.4.0-1064.68
ubuntu/linux-oracle<5.13.0-1018.22
5.13.0-1018.22
ubuntu/linux-oracle<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-oracle<4.15.0-1087.95~16.04.1
4.15.0-1087.95~16.04.1
ubuntu/linux-oracle-5.0<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-oracle-5.11<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-oracle-5.13<5.13.0-1018.22~20.04.1
5.13.0-1018.22~20.04.1
ubuntu/linux-oracle-5.13<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-oracle-5.15<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-oracle-5.3<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-oracle-5.4<5.4.0-1064.68~18.04.1
5.4.0-1064.68~18.04.1
ubuntu/linux-oracle-6.5<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-raspi<5.4.0-1053.60
5.4.0-1053.60
ubuntu/linux-raspi<5.13.0-1017.19
5.13.0-1017.19
ubuntu/linux-raspi<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-raspi-5.4<5.4.0-1053.60~18.04.1
5.4.0-1053.60~18.04.1
ubuntu/linux-raspi-5.4<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-raspi2<4.15.0-1103.110
4.15.0-1103.110
ubuntu/linux-raspi2<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-raspi2-5.3<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-riscv<5.13.0-1012.14
5.13.0-1012.14
ubuntu/linux-riscv<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-riscv-5.11<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-riscv-5.15<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-riscv-5.8<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-riscv-6.5<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-snapdragon<4.15.0-1120.129
4.15.0-1120.129
ubuntu/linux-snapdragon<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-starfive<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-starfive-6.5<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
ubuntu/linux-xilinx-zynqmp<5.17~<5.4.175<5.15.18
5.17~
5.4.175
5.15.18
debian/linux
5.10.218-1
5.10.221-1
6.1.94-1
6.1.99-1
6.9.10-1
6.9.12-1

Remedy

Mitigation for this issue is to skip loading the affected module vmwgfx onto the system until we have a fix available. This can be done by a blacklist mechanism and ensures the driver is not loaded at the boot time. ~~~ How do I blacklist a kernel module to prevent it from loading automatically? https://access.redhat.com/solutions/41278 ~~~

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203