CVE-2022-50720
Beschrijving NL
In de Linux-kernel is de volgende kwetsbaarheid verholpen:
x86/apic: Schakel x2APIC niet uit als deze vergrendeld is
De APIC ondersteunt twee modi, legacy APIC (of xAPIC) en Extended APIC
(of x2APIC). De x2APIC-modus is grotendeels compatibel met legacy APIC, maar
deze schakelt de memory-mapped APIC-interface uit ten gunste van een interface die gebruikmaakt van
MSR’s gebruikt. De APIC-modus wordt geregeld door de EXT-bit in de APIC MSR. De MMIO/xAPIC-interface heeft enkele problemen, met name het APIC-LEK
[1]. Deze bug stelt een aanvaller in staat om de APIC MMIO-interface te gebruiken om
gegevens uit de SGX-enclave te extraheren. Introduceer ondersteuning voor een nieuwe functie waarmee het BIOS de APIC kan vergrendelen
de APIC in x2APIC-modus te vergrendelen. Als de APIC is vergrendeld in de x2APIC-modus en de
kernel probeert de APIC uit te schakelen of terug te keren naar de legacy APIC-modus, zal er een GP-
zal er een GP-fout optreden. Ondersteuning introduceren voor een nieuwe MSR (IA32_XAPIC_DISABLE_STATUS) en de
de nieuwe vergrendelde modus wanneer de bit LEGACY_XAPIC_DISABLED wordt ingesteld door
de kernel ervan wordt weerhouden om te proberen de x2APIC uit te schakelen. Op platforms met de IA32_XAPIC_DISABLE_STATUS MSR, als SGX of TDX zijn
ingeschakeld zijn, wordt LEGACY_XAPIC_DISABLED ingesteld door het BIOS. Als
legacy APIC vereist is, dan moeten SGX en TDX worden uitgeschakeld in de
BIOS. [1]: https://aepicleak.com/aepicleak.pdf
Origineel (Engels) tonen
In the Linux kernel, the following vulnerability has been resolved:
x86/apic: Don't disable x2APIC if locked
The APIC supports two modes, legacy APIC (or xAPIC), and Extended APIC
(or x2APIC). X2APIC mode is mostly compatible with legacy APIC, but
it disables the memory-mapped APIC interface in favor of one that uses
MSRs. The APIC mode is controlled by the EXT bit in the APIC MSR.
The MMIO/xAPIC interface has some problems, most notably the APIC LEAK
[1]. This bug allows an attacker to use the APIC MMIO interface to
extract data from the SGX enclave.
Introduce support for a new feature that will allow the BIOS to lock
the APIC in x2APIC mode. If the APIC is locked in x2APIC mode and the
kernel tries to disable the APIC or revert to legacy APIC mode a GP
fault will occur.
Introduce support for a new MSR (IA32_XAPIC_DISABLE_STATUS) and handle
the new locked mode when the LEGACY_XAPIC_DISABLED bit is set by
preventing the kernel from trying to disable the x2APIC.
On platforms with the IA32_XAPIC_DISABLE_STATUS MSR, if SGX or TDX are
enabled the LEGACY_XAPIC_DISABLED will be set by the BIOS. If
legacy APIC is required, then it SGX and TDX need to be disabled in the
BIOS.
[1]: https://aepicleak.com/aepicleak.pdf