[Bug 1820296] Re: grub is not validating kernel if i embed a GPG public key in grub and sign kernel with GPG private key

Launchpad Bug Tracker 1820296 at bugs.launchpad.net
Sat Nov 14 15:24:33 UTC 2020


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: grub2 (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1820296

Title:
  grub is not validating kernel if i embed a GPG public key in grub and
  sign kernel with GPG private key

Status in grub2 package in Ubuntu:
  Confirmed

Bug description:
  Hello,

  I am  embedding custom GPG public key in grub and sign (detached) the
  4.15.0-46-generic kernel with GPG private key. The grub is not
  validating the kernel. I am getting an error
  "/vmlinuz-4.15.0-46-generic has invalid signature".

  However this process used to work fine on 4.15.0-45-generic kernel.
  UEFI used to verify shim (custom SSL signed) and shim (embedded with
  SSL cert) used to verify grub (signed with custom SSL key). Grub would
  validate kernel using embeddded custom GPG public key. Kernel would be
  signed with custom GPG private key.

  Is there any commits that went in grub which broke this feature? Is
  grub no more validating kernel with embedded key in it? Does it always
  uses UEFI keys to validate kernel? or does it give control to shim to
  verify the kernel?

  Any inputs on this?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1820296/+subscriptions



More information about the foundations-bugs mailing list