CVE-2021-47008
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
28/02/2024
Last modified:
09/12/2024
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
KVM: SVM: Make sure GHCB is mapped before updating<br />
<br />
Access to the GHCB is mainly in the VMGEXIT path and it is known that the<br />
GHCB will be mapped. But there are two paths where it is possible the GHCB<br />
might not be mapped.<br />
<br />
The sev_vcpu_deliver_sipi_vector() routine will update the GHCB to inform<br />
the caller of the AP Reset Hold NAE event that a SIPI has been delivered.<br />
However, if a SIPI is performed without a corresponding AP Reset Hold,<br />
then the GHCB might not be mapped (depending on the previous VMEXIT),<br />
which will result in a NULL pointer dereference.<br />
<br />
The svm_complete_emulated_msr() routine will update the GHCB to inform<br />
the caller of a RDMSR/WRMSR operation about any errors. While it is likely<br />
that the GHCB will be mapped in this situation, add a safe guard<br />
in this path to be certain a NULL pointer dereference is not encountered.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.11 (including) | 5.11.22 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.12 (including) | 5.12.5 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/a3ba26ecfb569f4aa3f867e80c02aa65f20aadad
- https://git.kernel.org/stable/c/fb9e14f4f8217a0980f8da2c8ff70dee058cbe47
- https://git.kernel.org/stable/c/fd722a57fe0b80133dacae4e1c852ee4212f9b2e
- https://git.kernel.org/stable/c/a3ba26ecfb569f4aa3f867e80c02aa65f20aadad
- https://git.kernel.org/stable/c/fb9e14f4f8217a0980f8da2c8ff70dee058cbe47
- https://git.kernel.org/stable/c/fd722a57fe0b80133dacae4e1c852ee4212f9b2e



