{"id":"CVE-2022-50720","aliases":["CVE-2022-50720"],"related":[],"kind":"vulnerability","state":"published","title":"x86/apic: Don't disable x2APIC if locked","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/apic: Don't disable x2APIC if locked\n\nThe APIC supports two modes, legacy APIC (or xAPIC), and Extended APIC\n(or x2APIC).  X2APIC mode is mostly compatible with legacy APIC, but\nit disables the memory-mapped APIC interface in favor of one that uses\nMSRs.  The APIC mode is controlled by the EXT bit in the APIC MSR.\n\nThe MMIO/xAPIC interface has some problems, most notably the APIC LEAK\n[1].  This bug allows an attacker to use the APIC MMIO interface to\nextract data from the SGX enclave.\n\nIntroduce support for a new feature that will allow the BIOS to lock\nthe APIC in x2APIC mode.  If the APIC is locked in x2APIC mode and the\nkernel tries to disable the APIC or revert to legacy APIC mode a GP\nfault will occur.\n\nIntroduce support for a new MSR (IA32_XAPIC_DISABLE_STATUS) and handle\nthe new locked mode when the LEGACY_XAPIC_DISABLED bit is set by\npreventing the kernel from trying to disable the x2APIC.\n\nOn platforms with the IA32_XAPIC_DISABLE_STATUS MSR, if SGX or TDX are\nenabled the LEGACY_XAPIC_DISABLED will be set by the BIOS.  If\nlegacy APIC is required, then it SGX and TDX need to be disabled in the\nBIOS.\n\n[1]: https://aepicleak.com/aepicleak.pdf","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/apic: Don't disable x2APIC if locked\n\nThe APIC supports two modes, legacy APIC (or xAPIC), and Extended APIC\n(or x2APIC).  X2APIC mode is mostly compatible with legacy APIC, but\nit disables the memory-mapped APIC interface in favor of one that uses\nMSRs.  The APIC mode is controlled by the EXT bit in the APIC MSR.\n\nThe MMIO/xAPIC interface has some problems, most notably the APIC LEAK\n[1].  This bug allows an attacker to use the APIC MMIO interface to\nextract data from the SGX enclave.\n\nIntroduce support for a new feature that will allow the BIOS to lock\nthe APIC in x2APIC mode.  If the APIC is locked in x2APIC mode and the\nkernel tries to disable the APIC or revert to legacy APIC mode a GP\nfault will occur.\n\nIntroduce support for a new MSR (IA32_XAPIC_DISABLE_STATUS) and handle\nthe new locked mode when the LEGACY_XAPIC_DISABLED bit is set by\npreventing the kernel from trying to disable the x2APIC.\n\nOn platforms with the IA32_XAPIC_DISABLE_STATUS MSR, if SGX or TDX are\nenabled the LEGACY_XAPIC_DISABLED will be set by the BIOS.  If\nlegacy APIC is required, then it SGX and TDX need to be disabled in the\nBIOS.\n\n[1]: https://aepicleak.com/aepicleak.pdf","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nx86/apic: No deshabilitar x2APIC si está bloqueado\n\nEl APIC soporta dos modos, APIC heredado (o xAPIC), y APIC Extendido (o x2APIC). El modo X2APIC es mayormente compatible con el APIC heredado, pero deshabilita la interfaz APIC mapeada en memoria en favor de una que usa MSRs. El modo APIC es controlado por el bit EXT en el MSR del APIC.\n\nLa interfaz MMIO/xAPIC tiene algunos problemas, el más notable es el APIC LEAK [1]. Este error permite a un atacante usar la interfaz APIC MMIO para extraer datos del enclave SGX.\n\nIntroduce soporte para una nueva característica que permitirá al BIOS bloquear el APIC en modo x2APIC. Si el APIC está bloqueado en modo x2APIC y el kernel intenta deshabilitar el APIC o revertir al modo APIC heredado, ocurrirá una falla GP.\n\nIntroduce soporte para un nuevo MSR (IA32_XAPIC_DISABLE_STATUS) y maneja el nuevo modo bloqueado cuando el bit LEGACY_XAPIC_DISABLED está configurado, evitando que el kernel intente deshabilitar el x2APIC.\n\nEn plataformas con el MSR IA32_XAPIC_DISABLE_STATUS, si SGX o TDX están habilitados, el LEGACY_XAPIC_DISABLED será configurado por el BIOS. Si se requiere APIC heredado, entonces SGX y TDX necesitan ser deshabilitados en el BIOS.\n\n[1]: https://aepicleak.com/aepicleak.pdf","source":"nvd"}],"published":"2025-12-24T12:22:43.396Z","modified":"2026-11-10T12:10:00.177Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"fb209bd891645bb87b9618b724f0b4928e0df3de","fixed":"05785ba834f23272f9d23427ae4a80ac505a5296","status":"affected"},{"type":"git","introduced":"fb209bd891645bb87b9618b724f0b4928e0df3de","fixed":"dd1241e00addbf0b95f6cd6ce32152692820657e","status":"affected"},{"type":"git","introduced":"fb209bd891645bb87b9618b724f0b4928e0df3de","fixed":"b8d1d163604bd1e600b062fb00de5dc42baa355f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.3","status":"unaffected"},{"type":"semver","introduced":"5.19.17","lastAffected":"5.19.*","status":"unaffected"},{"type":"semver","introduced":"6.0.3","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/05785ba834f23272f9d23427ae4a80ac505a5296","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dd1241e00addbf0b95f6cd6ce32152692820657e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b8d1d163604bd1e600b062fb00de5dc42baa355f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50720","url":"https://www.cve.org/CVERecord?id=CVE-2022-50720","licence":"CVE Terms of Use","modified":"2026-05-11T19:24:12.854Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50720","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50720","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.333Z","epss":{"score":0.00259,"percentile":0.18782,"date":"2026-12-01T12:00:22.000Z"}}