CVE-2024-49858
JSON

5.5medium

efistub/tpm: Use ACPI reclaim memory for event log to avoid corruption

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.21% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: efistub/tpm: Use ACPI reclaim memory for event log to avoid corruption The TPM event log table is a Linux specific construct, where the data produced by the GetEventLog() boot service is cached in memory, and passed on to the OS using an EFI configuration table. The use of EFI_LOADER_DATA here results in the region being left unreserved in the E820 memory map constructed by the EFI stub, and this is the memory description that is passed on to the incoming kernel by kexec, which is therefore unaware that the region should be reserved. Even though the utility of the TPM2 event log after a kexec is questionable, any corruption might send the parsing code off into the weeds and crash the kernel. So let's use EFI_ACPI_RECLAIM_MEMORY instead, which is always treated as reserved by the E820 conversion logic.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 33b6d03469b2206fb51ecc37f40411a857ad8fff before f76b69ab9cf04358266e3cea5748c0c2791fbb08, from 33b6d03469b2206fb51ecc37f40411a857ad8fff before 11690d7e76842f29b60fbb5b35bc97d206ea0e83, from 33b6d03469b2206fb51ecc37f40411a857ad8fff before 5b22c038fb2757c652642933de5664da471f8cb7, from 33b6d03469b2206fb51ecc37f40411a857ad8fff before 19fd2f2c5fb36b61506d3208474bfd8fdf1cada3, from 33b6d03469b2206fb51ecc37f40411a857ad8fff before 38d9b07d99b789efb6d8dda21f1aaad636c38993, from 33b6d03469b2206fb51ecc37f40411a857ad8fff before 2e6871a632a99d9b9e2ce3a7847acabe99e5a26e, from 33b6d03469b2206fb51ecc37f40411a857ad8fff before 77d48d39e99170b528e4f2e9fc5d1d64cdedd386, 4.16
Not affected: before 4.16, from 5.10.227 up to 5.10.*, from 5.15.168 up to 5.15.*, from 6.1.113 up to 6.1.*, from 6.6.54 up to 6.6.*, from 6.10.13 up to 6.10.*
CVE List
linux linux_kernelbefore 5.10.227, from 5.11 before 5.15.168, from 5.16 before 6.1.113, from 6.2 before 6.6.54, from 6.7 before 6.10.13, from 6.11 before 6.11.2NVD

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: efistub/tpm: Use ACPI reclaim memory for event log to avoid corruption The TPM event log table is a Linux specific construct, where the data produced by the GetEventLog() boot service is cached in memory, and passed on to the OS using an EFI configuration table. The use of EFI_LOADER_DATA here results in the region being left unreserved in the E820 memory map constructed by the EFI stub, and this is the memory description that is passed on to the incoming kernel by kexec, which is therefore unaware that the region should be reserved. Even though the utility of the TPM2 event log after a kexec is questionable, any corruption might send the parsing code off into the weeds and crash the kernel. So let's use EFI_ACPI_RECLAIM_MEMORY instead, which is always treated as reserved by the E820 conversion logic.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: efistub/tpm: Utilizar la memoria de recuperación ACPI para el registro de eventos para evitar la corrupción La tabla de registro de eventos TPM es una construcción específica de Linux, donde los datos producidos por el servicio de arranque GetEventLog() se almacenan en caché en la memoria y se pasan al sistema operativo mediante una tabla de configuración EFI. El uso de EFI_LOADER_DATA aquí da como resultado que la región quede sin reservar en el mapa de memoria E820 construido por el stub EFI, y esta es la descripción de memoria que se pasa al kernel entrante por kexec, que por lo tanto no sabe que la región debe reservarse. Aunque la utilidad del registro de eventos TPM2 después de un kexec es cuestionable, cualquier corrupción podría enviar el código de análisis a la maleza y bloquear el kernel. Así que usemos EFI_ACPI_RECLAIM_MEMORY en su lugar, que siempre se trata como reservado por la lógica de conversión E820.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-49858 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-49858 changed 2026-06-17Public domain