efi: ssdt: Don't free memory if ACPI table was loaded successfully
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
efi: ssdt: Don't free memory if ACPI table was loaded successfully
Amadeusz reports KASAN use-after-free errors introduced by commit 3881ee0b1edc ("efi: avoid efivars layer when loading SSDTs from variables"). The problem appears to be that the memory that holds the new ACPI table is now freed unconditionally, instead of only when the ACPI core reported a failure to load the table.
So let's fix this, by omitting the kfree() on success.
From the CVE record · Linux
The Linux kernel can free memory holding a newly loaded ACPI table after the load succeeds, causing a use-after-free. The input does not establish what an attacker could do or specify network or local access, authentication, or user-interaction requirements.
Engineers running the Linux kernel should check whether their version includes the EFI SSDT fix; affected versions are not specified.