[PATCH] certs: Prevent spurious errors on repeated blacklisting
Eric Snowberg
eric.snowberg at oracle.com
Wed Nov 9 15:50:33 UTC 2022
> On Nov 7, 2022, at 6:12 AM, Mickaël Salaün <mic at digikod.net> wrote:
>
> This is a follow-up of https://lore.kernel.org/r/c8c65713-5cda-43ad-8018-20f2e32e4432@t-8ch.de
>
> Added Jarkko, Mark Pearson, Eric Snowberg and more ML in Cc.
>
>
> On 04/11/2022 02:47, Thomas Weißschuh wrote:
>> When the blacklist keyring was changed to allow updates from the root
>> user it gained an ->update() function that disallows all updates.
>> When the a hash is blacklisted multiple times from the builtin or
>> firmware-provided blacklist this spams prominent logs during boot:
>> [ 0.890814] blacklist: Problem blacklisting hash (-13)
>> As all these repeated calls to mark_raw_hash_blacklisted() would create
>> the same keyring entry again anyways these errors can be safely ignored.
>
> These errors can indeed be safely ignored, however they highlight issues with some firmware vendors not checking nor optimizing their blocked hashes. This raises security concerns, and it should be fixed by firmware vendors.
I have seen error reports like this in the past. Some of the older UEFI Revocation List
files up on the UEFI.org site [1] contain duplicates. If a firmware vendor uses one of
these older Microsoft signed files, they are going to see these error messages.
1. https://uefi.org/revocationlistfile/archive
More information about the Linux-security-module-archive
mailing list