Menu

Star on GitHub · 3.4k

CVE-2021-47092

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: KVM: VMX: Always clear vmx->fail on emulation_required Revert a relatively recent change that set vmx->fail if the vCPU is in L…

Published Mar 4, 2024EPSS 0.29%

Overview

CVE-2021-47092 is a medium-severity vulnerability. It was published on March 4, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

KVM: VMX: Always clear vmx->fail on emulation_required

Revert a relatively recent change that set vmx->fail if the vCPU is in L2

and emulation_required is true, as that behavior is completely bogus.

Setting vmx->fail and synthesizing a VM-Exit is contradictory and wrong:

(a) it's impossible to have both a VM-Fail and VM-Exit

(b) vmcs.EXIT_REASON is not modified on VM-Fail

(c) emulation_required refers to guest state and guest state checks are

always VM-Exits, not VM-Fails.

For KVM specifically, emulation_required is handled before nested exits

in __vmx_handle_exit(), thus setting vmx->fail has no immediate effect,

i.e. KVM calls into handle_invalid_guest_state() and vmx->fail is ignored.

Setting vmx->fail can ultimately result in a WARN in nested_vmx_vmexit()

firing when tearing down the VM as KVM never expects vmx->fail to be set

when L2 is active, KVM always reflects those errors into L1.

---------

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2021-47092?

CVE-2021-47092 is a medium-severity vulnerability. It was published on March 4, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2021-47092?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-47092?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-47092?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2021-47092 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2021

View all
LiveWatch live →