]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: configfs: Disallow loading ACPI tables when locked down
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 15 Jun 2020 10:43:32 +0000 (04:43 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 22 Jun 2020 14:41:27 +0000 (16:41 +0200)
commit8a930a6f60b9efb6a0cfab1090ef6a840f05125b
tree5cf01ade1538939c51f63e3831a706bde7984743
parente86d80f3f3da4d1072ca810bbe97a8ef4bd674b0
ACPI: configfs: Disallow loading ACPI tables when locked down

Like other vectors already patched, this one here allows the root
user to load ACPI tables, which enables arbitrary physical address
writes, which in turn makes it possible to disable lockdown.

Prevents this by checking the lockdown status before allowing a new
ACPI table to be installed. The link in the trailer shows a PoC of
how this might be used.

Link: https://git.zx2c4.com/american-unsigned-language/tree/american-unsigned-language-2.sh
Cc: 5.4+ <stable@vger.kernel.org> # 5.4+
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_configfs.c