tpm: acpi: Call acpi_put_table() to fix memory leak
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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().
From the CVE record · Linux
The Linux kernel’s TPM ACPI event-log code can leak ACPI table memory because it does not call acpi_put_table() after acpi_get_table(). The input does not describe how an attacker could trigger the leak or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with TPM ACPI event-log handling should check their versions against the vendor advisory; affected versions were not provided.