Bug 2089815 (CVE-2022-1852) - CVE-2022-1852 kernel: NULL pointer dereference in x86_emulate_insn may lead to DoS
Summary: CVE-2022-1852 kernel: NULL pointer dereference in x86_emulate_insn may lead t...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-1852
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: 2090426 2090427 2090428 2090429 2092232 2115240
Blocks: 2089816 2090106
TreeView+ depends on / blocked
 
Reported: 2022-05-24 13:42 UTC by Marian Rehak
Modified: 2024-01-05 12:25 UTC (History)
51 users (show)

Fixed In Version: kernel 5.19 rc1
Doc Type: If docs needed, set a value
Doc Text:
A NULL pointer dereference flaw was found in the Linux kernel’s KVM module, which can lead to a denial of service in the x86_emulate_insn in arch/x86/kvm/emulate.c. This flaw occurs while executing an illegal instruction in guest in the Intel CPU.
Clone Of:
Environment:
Last Closed: 2022-12-05 09:03:08 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:7444 0 None None None 2022-11-08 09:10:18 UTC
Red Hat Product Errata RHSA-2022:7683 0 None None None 2022-11-08 10:09:52 UTC
Red Hat Product Errata RHSA-2022:7933 0 None None None 2022-11-15 09:45:15 UTC
Red Hat Product Errata RHSA-2022:8267 0 None None None 2022-11-15 10:48:16 UTC

Description Marian Rehak 2022-05-24 13:42:06 UTC
When we execute an illegal instruction in guest in Intel CPU, such as invlpga(an AMD instruction), which will cause an exception nmi VM-exit. KVM will call handle_exception_nmi to deal with it. Then handle_exception_nmi will call handle_ud to emulate the undefined instruction. Finally, it will call x86_decode_insn. In x86_decode_insn function, CheckPerm will be set into ctxt->d and ctxt->check_perm will be set to NULL due to the check permition callback function of illegal instruction is not exists.

Comment 7 Mauro Matteo Cascella 2022-06-01 07:21:38 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2092232]

Comment 9 Mauro Matteo Cascella 2022-06-17 12:39:28 UTC
Upstream fix:
https://github.com/torvalds/linux/commit/fee060cd52d69c114b62d1a2948ea9648b5131f9

Comment 12 errata-xmlrpc 2022-11-08 09:10:15 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7444 https://access.redhat.com/errata/RHSA-2022:7444

Comment 13 errata-xmlrpc 2022-11-08 10:09:49 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7683 https://access.redhat.com/errata/RHSA-2022:7683

Comment 14 errata-xmlrpc 2022-11-15 09:45:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:7933 https://access.redhat.com/errata/RHSA-2022:7933

Comment 15 errata-xmlrpc 2022-11-15 10:48:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:8267 https://access.redhat.com/errata/RHSA-2022:8267

Comment 16 Product Security DevOps Team 2022-12-05 09:03:05 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-1852


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