GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Tarball signing keys come from root's own keyring and are matched by substring · Issue #68 · tmiland/kernel-installer

Tarball signing keys come from root's own keyring and are matched by substring #68

New issue
Copy link
New issue
Copy link
Closed
#73
Closed
Tarball signing keys come from root's own keyring and are matched by substring#68
#73
Copy link

Description

@davmonk
davmonk
opened on Nov 10, 2026
Issue body actions

Problem

The keys used to check kernel tarballs come from root's own keyring by default (GNUPGHOME=${GNUPGHOME-"$HOME/.gnupg"}, kernel_installer.sh:1105), and are selected loosely:

  • gpg --auto-key-locate wkd --locate-keys [email protected] ... (:1213-1216) uses a key already in that keyring before asking kernel.org's WKD.
  • gpg --export [email protected] [email protected] (:1224, :1237) matches any key whose user ID contains that text, not only the exact address.

Impact

Low, needs a precondition. Any key in root's keyring with a user ID containing [email protected] or [email protected] (for example a fake one pulled in from a keyserver at some point) is trusted to sign kernel tarballs. The script also adds the kernel.org keys to root's personal keyring as a side effect. The same pattern exists in the kernel.org get-verified-tarball helper this was copied from (its lines 23, 122, 131-144).

Suggested fix

  • Default to a fresh temporary GNUPGHOME (the existing GNUPGHOME= behaviour) instead of root's keyring, or ship the expected key fingerprints and check them.
  • Match exact addresses with <[email protected]> (angle brackets), or export by fingerprint.

How this was checked

On Linux Mint 22.3 (GnuPG 2.4.4) with a throwaway keyring holding one key, user ID Other <[email protected]>:

  • gpg --export [email protected] exported that key.
  • gpg --auto-key-locate wkd --locate-keys [email protected] returned that local key.

Activity

  1. tmiland-labs
    added 3 commits that reference this issue on Nov 10, 2026

    fix(verify): export the temporary keyring from GNUPGHOME (tmiland#68 …

    cbae41a

    fix(verify): select signing keys from a homedir, not a keyring file (t…

    72783e2

    fix(verify): keep temporary GnuPG homes under /tmp (tmiland#68 long-p…

    be7fdcf
  2. tmiland
    closed this as completedin #73on Nov 10, 2026
  3. tmiland
    added a commit that references this issue on Nov 10, 2026

    fix(verify): select kernel signing keys by exact address and fingerpr…

    353db65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.