Re: [GIT PULL] Load keys from signed PE binaries

From: Florian Weimer
Date: Tue Feb 26 2013 - 16:09:08 EST

* Matthew Garrett:

> On Mon, Feb 25, 2013 at 03:28:32PM +0100, Florian Weimer wrote:
>> But what puzzles me most is why anyone would assume that the UEFI
>> application signing process somehow ensures that the embedded
>> certificate is non-malicious. We cannot even track it back to the
>> submitter because the third-pary market place UEFI authority only
>> issues pseudonymous proxy certificates. This utterly useless for any
>> purpose whatsoever, with the notable exception of avoding one
>> additional step when setting up a dual-boot machine (which will not
>> even work reliably until we switch to overwriting the Windows boot
>> loader, like in the pre-UEFI days).
> If your firmware trusts objects signed by Microsoft, you have to assume
> that objects signed by Microsoft are trustworthy. There's no way to
> build a security model otherwise. Are Microsoft trustworthy? We don't
> know. If you don't trust Microsoft, remove their key from db.

"Trust" is such an overloaded concept. I think there are several
aspects here.

The UEFI firmware performs cryptographic validation and only executes
code if successful.

Symantec performs identify verification (the $99 fee) and Microsoft
relies on that. Microsoft also conducts some review before signing
UEFI drivers. This actually catches some badness (unintentional

| What Happened to KeyTool.efi?
| Originally this was going to be part of our signed release kit.
| However, during testing Microsoft discovered that because of a bug in
| one of the UEFI platforms, it could be used to remove the platform key
| programmatically, which would rather subvert the UEFI security system.
| Until we can resolve this (weâve now got the particular vendor in the
| loop), they declined to sign KeyTool.efi although you can, of course,
| authorize it by hash in the MOK variables if you want to run it.


But this review process loses its teeth if the binary just contains an
X.509 certificate which is used later to allow the execution of other
code (either directly, or as the result of a rather complex
interaction of various UEFI drivers, doesn't really matter).

Microsoft never sees the whole code that will be run, and it's totally
open what the driver will actually do when fed with the right data.
At this point, whether anybody trusts Microsoft is completely besides
the point. They simply don't know. Their UEFI driver signature is
about as meaningful as a signature from a timestamping service
(particularly since it is pseudonymous). But they still have

I think this is not a good position for them, for us, or for our
users. All this cryptographic indirection is rather brittle, and it
is totally unclear who is accountable for what.

>> Seriously, folks, can we go back one step and discuss what problem you
>> are trying to solve? Is it about allowing third-party kernel modules
>> in an environment which does not allow unsigned ring 0 code execution?
> The problem I'm trying to solve is "Don't permit Linux to be used as a
> bootloader for backdoored versions of other operating systems".

If that's the goal, shouldn't we disable KVM support as well?
(Without hardware virtualization support, the user would hopefully
perceive the significant slowdown.)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at