Bug 2090723 (CVE-2022-1789) - CVE-2022-1789 kernel: KVM: NULL pointer dereference in kvm_mmu_invpcid_gva
Summary: CVE-2022-1789 kernel: KVM: NULL pointer dereference in kvm_mmu_invpcid_gva
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-1789
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2090724 2099301 2099302 2099303 2099304
Blocks: 2090725 2090727
TreeView+ depends on / blocked
 
Reported: 2022-05-26 12:41 UTC by Marian Rehak
Modified: 2023-12-07 15:09 UTC (History)
47 users (show)

Fixed In Version: kernel 5.18
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in KVM. With shadow paging enabled if INVPCID is executed with CR0.PG=0, the invlpg callback is not set, and the result is a NULL pointer dereference. This flaw allows a guest user to cause a kernel oops condition on the host, resulting in a denial of service.
Clone Of:
Environment:
Last Closed: 2023-05-16 18:53:46 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:2148 0 None None None 2023-05-09 07:11:23 UTC
Red Hat Product Errata RHSA-2023:2458 0 None None None 2023-05-09 07:50:21 UTC
Red Hat Product Errata RHSA-2023:2736 0 None None None 2023-05-16 08:04:34 UTC
Red Hat Product Errata RHSA-2023:2951 0 None None None 2023-05-16 08:33:26 UTC

Description Marian Rehak 2022-05-26 12:41:07 UTC
A flaw was found in KVM. With shadow paging enabled if INVPCID is executed with CR0.PG=0, the invlpg callback is not set, and the result is a NULL pointer dereference. This flaw allows a guest user to cause a kernel oops condition on the host, resulting in a denial of service.


Reference:

https://www.openwall.com/lists/oss-security/2022/05/25/2

Comment 1 Marian Rehak 2022-05-26 12:41:39 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2090724]

Comment 3 Mauro Matteo Cascella 2022-06-20 09:57:56 UTC
Upstream fix:
https://github.com/torvalds/linux/commit/9f46c187e2e680ecd9de7983e4d081c3391acc76

Comment 13 errata-xmlrpc 2023-05-09 07:11:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2148 https://access.redhat.com/errata/RHSA-2023:2148

Comment 14 errata-xmlrpc 2023-05-09 07:50:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2458 https://access.redhat.com/errata/RHSA-2023:2458

Comment 15 errata-xmlrpc 2023-05-16 08:04:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:2736 https://access.redhat.com/errata/RHSA-2023:2736

Comment 16 errata-xmlrpc 2023-05-16 08:33:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:2951 https://access.redhat.com/errata/RHSA-2023:2951

Comment 17 Product Security DevOps Team 2023-05-16 18:53:42 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-1789


Note You need to log in before you can comment on or make changes to this bug.