Skip to content

hvpatch 0.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 10:30
· 1 commit to main since this release
28b8990

The agent can report status changes through Proxmox VE's notification
system: a new level and the CVEs it fixes, a failed level, a CVE that needs
a reboot. hvpatch check now asks the running kernel whether it trusts the
module certificate, so a certificate in the UEFI db works without MOK
(thanks @WMP). Times are handled with jiff instead of the unmaintained
chrono; files keep their format. A build killed mid-way no longer blocks
its kernel.

Added

  • Notifications. With notify = true, apply (also from the timer), the
    boot reload and revert mail a summary to root when the status changed
    since the last notification: a new level and the CVEs it fixes, a failed
    or quarantined level, a CVE that needs a reboot, a newer kernel waiting
    for a reboot, an expired manifest. Proxmox VE routes mail for root through
    its notification system (mail, Gotify, webhook). hvpatch notify test
    sends one right away. Off by default.

Changed

  • The CVE watcher reports far fewer false positives on 7.0 kernels. The tree
    commit now carries the header of every Proxmox patch, so a fix from
    Proxmox's patch queue counts as contained (and an upstream commit a
    Proxmox patch reverts does not). After a full build the pipeline lists the
    C files the build did not compile (builder/not-built.py), and
    cve-scan --not-built leaves out CVEs that only touch such files. On
    7.0.14-31-pve this takes the list from 255 to 165 (P1 from 74 to 38).
    7.0 trees are prepared again once, because the tree commit changed.
  • The CVE watcher also leaves out fixes a kernel carries without a commit
    that names them: it keeps its own source tree of each served kernel and
    counts a fix whose patch applies in reverse as contained
    (builder/reverse-check.py, also used by builder/cve-scan.sh with a
    tree). Found with CVE-2026-99707 on 7.0.14-30-pve.
  • Times are handled with jiff instead of chrono, which is unmaintained
    (RUSTSEC-2026-0543, #5). The files keep their format, RFC 3339 in UTC;
    only fractional seconds are written with as few digits as needed
    (.12Z instead of .120Z), which every version reads. Manifests,
    revocation lists and state.json written by 0.3.0 are covered by tests.
    Messages print times as RFC 3339 (2026-12-18T11:06:40Z). A huge
    delay_hours now means "never" instead of a crash.

Fixed

  • A build killed mid-way (evicted pod, node reboot) no longer blocks the
    kernel until the next catalog change. The next run resets the tracked
    files of the prepared tree to its checked commit instead of failing with
    "uncommitted changes"; a tree on another commit is still refused.
  • hvpatch check asks the running kernel whether the module certificate
    is linked into a keyring the kernel uses for modules (/proc/keys,
    KEYCTL_READ), so a certificate in the UEFI db (.platform keyring) no
    longer gives a false FAIL; mokutil is used only for pending or blocked
    enrollment. hvpatch mok enroll stops when the certificate is already
    in db. New dependency: x509-cert.

Install

wget https://github.com/prepaid-host/hvpatch/releases/download/v0.5.0/hvpatch_amd64.deb
apt install ./hvpatch_amd64.deb
hvpatch setup --repository <your repository> --key <manifest key>

Verify

sha256sum -c SHA256SUMS --ignore-missing
gh attestation verify hvpatch_amd64.deb --repo prepaid-host/hvpatch

hvpatch.cdx.json lists every Rust dependency (CycloneDX SBOM).
hvpatch.intoto.jsonl is the signed build provenance, for offline
verification (gh attestation verify --bundle hvpatch.intoto.jsonl).