В ядре Linux устранена следующая уязвимость:
tpm: acpi: вызовите acpi_put_table(), чтобы устранить утечку памяти.
Начало и длина области журнала событий получаются из
таблицу TPM2 или TCPA, поэтому мы вызываем acpi_get_table(), чтобы получить
информацию ACPI, но acpi_get_table() должна быть связана с
acpi_put_table(), чтобы освободить память ACPI, добавьте acpi_put_table()
правильно, чтобы исправить утечку памяти.
Пока мы этим занимаемся, удалите лишнюю пустую строку в
конец tpm_read_log_acpi().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: tpm: acpi: Call acpi_put_table() to fix memory leak The start and length of the event log area are obtained from TPM2 or TCPA table, so we call acpi_get_table() to get the ACPI information, but the acpi_get_table() should be coupled with acpi_put_table() to release the ACPI memory, add the acpi_put_table() properly to fix the memory leak. While we are at it, remove the redundant empty line at the end of the tpm_read_log_acpi().