CVE-2022-1158: Use After Free

Published Mar 29, 2022
·
Updated

A flaw was found in KVM. When updating a guest's page table entry, vmpgoff was improperly used as the offset to get the page's pfn. As vaddr and vmpgoff are controllable by user-mode processes, this flaw allows unprivileged local users on the host to write outside the userspace region and potentially corrupt the kernel, resulting in a denial of service condition.

Other sources

Since both vaddr and vmpgoff are controllable by the user-mode process, writing may exceed the previously mapped guest memory space and trigger exceptions such as UAF.

Red Hat

Affected Software

21 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-425.3.1.rt7.213.el8
0:4.18.0-425.3.1.rt7.213.el8
redhat/kernel<0:4.18.0-425.3.1.el8
0:4.18.0-425.3.1.el8
redhat/kernel<0:4.18.0-193.95.1.el8_2
0:4.18.0-193.95.1.el8_2
redhat/kernel-rt<0:4.18.0-193.95.1.rt13.146.el8_2
0:4.18.0-193.95.1.rt13.146.el8_2
redhat/kernel-rt<0:4.18.0-305.71.1.rt7.143.el8_4
0:4.18.0-305.71.1.rt7.143.el8_4
redhat/kernel<0:4.18.0-305.71.1.el8_4
0:4.18.0-305.71.1.el8_4
redhat/kernel<0:4.18.0-372.36.1.el8_6
0:4.18.0-372.36.1.el8_6
redhat/kernel<0:5.14.0-162.6.1.el9_1
0:5.14.0-162.6.1.el9_1
redhat/kernel-rt<0:5.14.0-162.6.1.rt21.168.el9_1
0:5.14.0-162.6.1.rt21.168.el9_1
redhat/kernel<0:5.14.0-70.36.1.el9_0
0:5.14.0-70.36.1.el9_0
redhat/kernel-rt<0:5.14.0-70.36.1.rt21.108.el9_0
0:5.14.0-70.36.1.rt21.108.el9_0
redhat/kernel<5.18
5.18
Linux Linux kernel>=5.2<5.4.189
Linux Linux kernel>=5.5<5.10.110
Linux Linux kernel>=5.11<5.15.33
Linux Linux kernel>=5.16<5.16.19
Linux Linux kernel>=5.17<5.17.2
Fedoraproject Fedora=36
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Remediation

Information

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.

Event History

Mar 29, 2022
Data Sourced
via Red Hat·05:36 PM
DescriptionSeverityAffected Software
Apr 7, 2022
CVE Published
03:00 PM
Aug 5, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Jan 12, 2024
Data Sourced
via Launchpad·12:04 AM
Description
May 2, 2025
Data Sourced
via Ubuntu·04:35 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-1158?

CVE-2022-1158 has been assigned a medium to high severity rating due to the potential for unprivileged local users to perform unauthorized write operations.

2

How do I fix CVE-2022-1158?

To remediate CVE-2022-1158, update to the appropriate kernel versions listed in the official advisory.

3

Which software is affected by CVE-2022-1158?

CVE-2022-1158 affects several kernel versions including those from Red Hat and Debian.

4

Is there a workaround for CVE-2022-1158?

There is no specific workaround detailed for CVE-2022-1158; patching the affected software is recommended.

5

What are the consequences of exploiting CVE-2022-1158?

Exploiting CVE-2022-1158 could allow unprivileged users to write outside their allocated memory space, potentially leading to data corruption or system instability.

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