Descrizione

In the Linux kernel, the following vulnerability has been resolved: x86/apic: Disable x2apic on resume if the kernel expects so When resuming from s2ram, firmware may re-enable x2apic mode, which may have been disabled by the kernel during boot either because it doesn't support IRQ remapping or for other reasons. This causes the kernel to continue using the xapic interface, while the hardware is in x2apic mode, which causes hangs. This happens on defconfig + bare metal + s2ram. Fix this in lapic_resume() by disabling x2apic if the kernel expects it to be disabled, i.e. when x2apic_mode = 0. The ACPI v6.6 spec, Section 16.3 [1] says firmware restores either the pre-sleep configuration or initial boot configuration for each CPU, including MSR state: When executing from the power-on reset vector as a result of waking from an S2 or S3 sleep state, the platform firmware performs only the hardware initialization required to restore the system to either the state the platform was in prior to the initial operating system boot, or to the pre-sleep configuration state. In multiprocessor systems, non-boot processors should be placed in the same state as prior to the initial operating system boot. (further ahead) If this is an S2 or S3 wake, then the platform runtime firmware restores minimum context of the system before jumping to the waking vector. This includes: CPU configuration. Platform runtime firmware restores the pre-sleep configuration or initial boot configuration of each CPU (MSR, MTRR, firmware update, SMBase, and so on). Interrupts must be disabled (for IA-32 processors, disabled by CLI instruction). (and other things) So at least as per the spec, re-enablement of x2apic by the firmware is allowed if "x2apic on" is a part of the initial boot configuration. [1] https://uefi.org/specs/ACPI/6.6/16_Waking_and_Sleeping.html#initialization [ bp: Massage. ]

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.

Versioni da aggiornare

  • Linux Linux Kernel: vulnerabili le versioni dalla 2.6.28 precedenti alla 5.10.253 → aggiornare alla 5.10.253 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 5.11 precedenti alla 5.15.203 → aggiornare alla 5.15.203 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 5.16 precedenti alla 6.1.167 → aggiornare alla 6.1.167 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.2 precedenti alla 6.6.130 → aggiornare alla 6.6.130 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.7 precedenti alla 6.12.78 → aggiornare alla 6.12.78 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.13 precedenti alla 6.18.19 → aggiornare alla 6.18.19 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.19 precedenti alla 6.19.9 → aggiornare alla 6.19.9 o successiva.
  • Linux Linux Kernel: vulnerabile la versione 7.0 rc1 → installare l'ultima release supportata dal vendor.
  • Linux Linux Kernel: vulnerabile la versione 7.0 rc2 → installare l'ultima release supportata dal vendor.
  • Linux Linux Kernel: vulnerabile la versione 7.0 rc3 → installare l'ultima release supportata dal vendor.

Patch e advisory

Mitigazioni temporanee

Da applicare solo se non è possibile aggiornare subito:

  • Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.

Verifica

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Configurazioni interessate

VendorProdottoVersioni vulnerabiliCorretta in
Linux Linux Kernel ≥ 2.6.28 < 5.10.253 5.10.253
Linux Linux Kernel ≥ 5.11 < 5.15.203 5.15.203
Linux Linux Kernel ≥ 5.16 < 6.1.167 6.1.167
Linux Linux Kernel ≥ 6.2 < 6.6.130 6.6.130
Linux Linux Kernel ≥ 6.7 < 6.12.78 6.12.78
Linux Linux Kernel ≥ 6.13 < 6.18.19 6.18.19
Linux Linux Kernel ≥ 6.19 < 6.19.9 6.19.9
Linux Linux Kernel 7.0 rc1 —
Linux Linux Kernel 7.0 rc2 —
Linux Linux Kernel 7.0 rc3 —

Riferimenti