]> git.karo-electronics.de Git - karo-tx-linux.git/commit
efi: Validate UEFI boot variables
authorMatthew Garrett <mjg@redhat.com>
Mon, 30 Apr 2012 20:11:30 +0000 (16:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2012 15:53:34 +0000 (08:53 -0700)
commit7a474cec8e446c79629a14c189269e43041c38a1
tree7b17282a1b9133b9446b0186a765b23a961fe5a5
parent02249ec6abfc5af8640070ceaf1677fb0c3c3912
efi: Validate UEFI boot variables

commit fec6c20b570bcf541e581fc97f2e0cbdb9725b98 upstream.

A common flaw in UEFI systems is a refusal to POST triggered by a malformed
boot variable. Once in this state, machines may only be restored by
reflashing their firmware with an external hardware device. While this is
obviously a firmware bug, the serious nature of the outcome suggests that
operating systems should filter their variable writes in order to prevent
a malicious user from rendering the machine unusable.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efivars.c