# CVE-2021-47255: kvm: LAPIC: Restore guard to prevent illegal APIC register access

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-05-21T14:19:50.125Z
- Modified: 2026-06-17T04:17:01.567Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

kvm: LAPIC: Restore guard to prevent illegal APIC register access

Per the SDM, "any access that touches bytes 4 through 15 of an APIC
register may cause undefined behavior and must not be executed."
Worse, such an access in kvm_lapic_reg_read can result in a leak of
kernel stack contents. Prior to commit 01402cf81051 ("kvm: LAPIC:
write down valid APIC registers"), such an access was explicitly
disallowed. Restore the guard that was removed in that commit.

(As written by CVE List.)

## Affected

- Linux Linux: from 01402cf81051f796dac7c60ca11d6147153ca46a before bf99ea52970caeb4583bdba1192c1f9b53b12c84; from 01402cf81051f796dac7c60ca11d6147153ca46a before 018685461a5b9a9a70e664ac77aef0d7415a3fd5; from 01402cf81051f796dac7c60ca11d6147153ca46a before a2aff09807fbe4018c269d3773a629949058b210; from 01402cf81051f796dac7c60ca11d6147153ca46a before 218bf772bddd221489c38dde6ef8e917131161f6; 5.3 (not affected: before 5.3; from 5.4.128 up to 5.4.*; from 5.10.46 up to 5.10.*; from 5.12.13 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.3 before 5.4.128; from 5.5 before 5.10.46; from 5.11 before 5.12.13; 5.13

## References

- <https://git.kernel.org/stable/c/bf99ea52970caeb4583bdba1192c1f9b53b12c84> (patch)
- <https://git.kernel.org/stable/c/018685461a5b9a9a70e664ac77aef0d7415a3fd5> (patch)
- <https://git.kernel.org/stable/c/a2aff09807fbe4018c269d3773a629949058b210> (patch)
- <https://git.kernel.org/stable/c/218bf772bddd221489c38dde6ef8e917131161f6> (patch)

## Sources

- CVE List: [CVE-2021-47255](https://www.cve.org/CVERecord?id=CVE-2021-47255), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47255](https://nvd.nist.gov/vuln/detail/CVE-2021-47255), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47255 · Whole record: https://cve.day/CVE-2021-47255.json · Rebuilt by cve.day 2026-11-25T22:58:08.760Z
