CVE-2021-47255
Linux Kernel vulnerability analysis and mitigation

Overview

In the Linux kernel, a vulnerability (CVE-2021-47255) was discovered in the KVM LAPIC implementation. The issue relates to illegal APIC register access that could lead to kernel stack content leaks. According to the System Developer's Manual (SDM), any access touching bytes 4 through 15 of an APIC register may cause undefined behavior and must not be executed. This vulnerability was introduced when a guard preventing such access was removed in commit 01402cf81051 ("kvm: LAPIC: write down valid APIC registers") (Kernel Git).

Technical details

The vulnerability exists in the kvm_lapic_reg_read function where accesses to certain APIC register bytes were not properly restricted. When accessing bytes 4 through 15 of an APIC register, it could result in undefined behavior and potentially leak kernel stack contents. The issue was fixed by restoring the guard that checks if the alignment plus length of the access exceeds 4 bytes, preventing illegal register access (Kernel Git).

Impact

The primary impact of this vulnerability is the potential leak of kernel stack contents through improper APIC register access. This could allow an attacker to obtain sensitive information from the kernel memory space (NVD).

Exploitability

The vulnerability can be triggered through KVM's LAPIC register read functionality. It requires access to the KVM virtualization environment to attempt exploitation (NVD).

Mitigation and workarounds

The vulnerability was fixed by restoring the guard in the kvm_lapic_reg_read function that prevents access to bytes 4 through 15 of APIC registers. The fix involves adding a check 'if (alignment + len > 4) return 1' before allowing register access (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68422NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68399NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68398NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68376NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68374NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management