Bug 2069736 (CVE-2022-2153) - CVE-2022-2153 kernel: KVM: NULL pointer dereference in kvm_irq_delivery_to_apic_fast()
Summary: CVE-2022-2153 kernel: KVM: NULL pointer dereference in kvm_irq_delivery_to_ap...
Keywords:
Status: NEW
Alias: CVE-2022-2153
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: 2099735 2099736 2099737 2099738 2099734
Blocks: 2069747
TreeView+ depends on / blocked
 
Reported: 2022-03-29 15:11 UTC by Pedro Sampaio
Modified: 2022-08-03 09:47 UTC (History)
49 users (show)

Fixed In Version: kernel 5.18
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel’s KVM when attempting to set a SynIC IRQ. This issue makes it possible for a misbehaving VMM to write to SYNIC/STIMER MSRs, causing a NULL pointer dereference. This flaw allows an unprivileged local attacker on the host to issue specific ioctl calls, causing a kernel oops condition that results in a denial of service.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Pedro Sampaio 2022-03-29 15:11:42 UTC
When KVM initialize a vCPU without create apic, the value of vcpu->arch.apic is NULL, then if we enter guest and let KVM call kvm_hv_process_stimers() in arch/x86/kvm/x86.c:9947, which doesn't check apic in the kernel. Process stimer will use apic finally so it will cause a null pointer dereference. This flaw allows a malicious user in a Local DOS condition.

References:

https://patchew.org/linux/20220325132140.25650-1-vkuznets@redhat.com/

Comment 5 Mauro Matteo Cascella 2022-06-21 15:23:03 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2099734]

Comment 8 Justin M. Forbes 2022-06-21 15:49:19 UTC
This was fixed for Fedora with the 5.16.19 stable kernel updates.


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