Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932492AbbETPsS (ORCPT ); Wed, 20 May 2015 11:48:18 -0400 Received: from mail-oi0-f48.google.com ([209.85.218.48]:34969 "EHLO mail-oi0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754058AbbETPsO (ORCPT ); Wed, 20 May 2015 11:48:14 -0400 Date: Wed, 20 May 2015 10:47:55 -0500 From: Seth Forshee To: David Howells Cc: "Luis R. Rodriguez" , linux-security-module@vger.kernel.org, james.l.morris@oracle.com, serge@hallyn.com, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, Kyle McMartin , David Woodhouse , Greg Kroah-Hartman , Joey Lee , Rusty Russell , zohar@linux.vnet.ibm.com, mricon@kernel.org Subject: Re: [RFD] linux-firmware key arrangement for firmware signing Message-ID: <20150520154755.GE126473@ubuntu-hedt> References: <20150520140426.GB126473@ubuntu-hedt> <20150519200232.GM23057@wotan.suse.de> <6731.1432134538@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6731.1432134538@warthog.procyon.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2969 Lines: 59 On Wed, May 20, 2015 at 04:08:58PM +0100, David Howells wrote: > Seth Forshee wrote: > > > > This begs the question on how we'd manage keys for firmware signing on > > > linux-firmare. Since the keys are x509 keys we need a CA. Based on some > > > initial discussions it would seem we'd need the Linux Foundation to create > > > a key, this would be embedded in the kernel and that key would be used to > > > sign Kyle's key. Kyle would in turn use his key for signing > > > linux-firmware files. David, Kyle, did I summarize this correctly ? > > > > I raised the question of key revocation when we discussed this on irc, > > but it wasn't answered to my satisfaction. If a key signed by the > > kernel-embedded key is compromised, how can that key be revoked so that > > it is no longer trusted? > > > > Someone mentioned UEFI blacklists, which I don't know much about, but > > not all systems have UEFI. The only reliable option that comes to mind > > for me is an in-kernel blacklist of keys which should no longer be > > trusted. > > Key revocation is generally an unpleasant problem. How do you inform a system > that a key of any sort is revoked? With PGP, for instance, you might be able > to connect to the net and consult a server. Distros could distribute updates to the blacklist via their usual update mechanisms. That could be a new kernel with an updated blacklist (after all we should expect blacklist updates to be very infrequent). I suppose a database in the initrd which was loaded prior to loading any firmware could work too, then perhaps new blacklists could be loaded into a running kernel without a reboot as well. But that database should probably be signed too, which creates a chicken-and-egg sort of problem. > UEFI has a blacklist that can theoretically be used to prevent both usage of a > key and usage of a particular object. As I understand it, the blacklist in > UEFI is just a table of SHA256 hashes. > > Relying on UEFI presents three problems, though: (1) the system admin has to > manually, as far as I'm aware, inform the BIOS; (2) the UEFI storage is > limited; and (3) not all systems have UEFI. Yeah, that doesn't really sound like a good solution. Not all users are sys admins. > What you do on a non-UEFI system, I'm not sure. If the kernel isn't verified > by the loader or the system firmware then you don't have a 'fully' secure > system anyway and the blacklist may be of questionable value. I think there's still value - compromised firmware could easily be a vector to compromise the kernel. Just because I can't verify my system security doesn't mean that I don't want measures in place to keep it from being compromised. Seth -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/