7.8
CWE
416
Advisory Published
CVE Published
CVE Published
Updated

CVE-2022-1158: Use After Free

First published: Tue Mar 29 2022(Updated: )

A flaw was found in KVM. When updating a guest's page table entry, vm_pgoff was improperly used as the offset to get the page's pfn. As vaddr and vm_pgoff 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.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
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
debian/linux
5.10.223-1
5.10.226-1
6.1.123-1
6.1.128-1
6.12.12-1
6.12.15-1
Linux Kernel>=5.2<5.4.189
Linux Kernel>=5.5<5.10.110
Linux Kernel>=5.11<5.15.33
Linux Kernel>=5.16<5.16.19
Linux Kernel>=5.17<5.17.2
Fedora=36
Red Hat Enterprise Linux=8.0
Red Hat Enterprise Linux=9.0

Remedy

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.

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

Frequently Asked Questions

  • 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.

  • How do I fix CVE-2022-1158?

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

  • Which software is affected by CVE-2022-1158?

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

  • Is there a workaround for CVE-2022-1158?

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

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