Back to Articles|Published on December 2, 2026|29 min read

GPUSmith Article

NVIDIA Driver Secure Boot After Kernel Update: Trust Matrix

Next-kernel trust and load matrix for NVIDIA driver Secure Boot on Ubuntu servers in 2026: prebuilt versus DKMS signing, MOK enrollment states, RDMA modules, canary acceptance and recovery.

By GPU Smith

NVIDIA Driver Secure Boot After Kernel Update: Trust Matrix

Summary

  1. 01Assess each kernel update across six layers: package authenticity, module signature, signer trust, build compatibility, boot-time artifact selection and workload acceptance.
  2. 02With prebuilt modules, Canonical signs the modules and the operator verifies the package matches the next kernel. With DKMS, the operator manages signing, key custody and enrollment and checks the build for that kernel.
  3. 03A pending Machine Owner Key request still needs console confirmation. Verify that the enrolled certificate matches the module signer and that the kernel actually loads the module under enforcement.
  4. 04Verify the intended kernel and its module tree. Check that the initramfs contains any modules needed before the root file system and that NVIDIA kernel modules and userspace components are the same version.
  5. 05Boot a drained canary under the intended Secure Boot policy. Require GPU compute and any applicable RDMA or GPUDirect Storage checks to pass, and keep a supported previous kernel and console access for recovery.
Inside this article
  1. 01Executive Summary
  2. 02Introduction and Background
  3. 03Key Changes in the Trust Model: Prebuilt Signed Modules Versus DKMS
  4. 04Key Changes in Signer Trust: Signatures, Keyrings and Enrollment States
  5. 05Key Changes in Build, Boot Artifacts and Network Modules
  6. 06Implementation Considerations and Process Changes
  7. 07Data Analysis and Evidence
  8. 08Implications and Future Directions
  9. 09Frequently Asked Questions (FAQs)
  10. 10Conclusion

Executive Summary

The decision this report supports is narrow: whether the next boot of a headless Ubuntu GPU server can load every required NVIDIA GPU and network module under the intended Secure Boot policy, or whether the rollout should be held until signed artifacts, key enrollment and a console recovery path exist. The answer is a six-layer matrix, not a single yes or no: package authenticity, module signature, signer trust, kernel build compatibility, boot-time artifact selection and workload acceptance. A signed DEB, an open kernel module or a successful DKMS build settles at most one or two of those layers.

Canonical's server documentation recommends the ubuntu-drivers tool for Secure Boot machines [1] and describes prebuilt signed modules and DKMS as mutually exclusive routes [1]. It also says DKMS drivers are not signed with Canonical's key [1], but the same page tells you to enroll your own key and notes that installing the DKMS package may guide you through creating and enrolling one, without giving a step-by-step signing procedure, so that wording is best read as describing who signs rather than an impossibility. Ubuntu's security documentation confirms that custom-built modules must be signed before the kernel can load them [2].

Signature presence is not acceptance. The kernel performs the signature check itself [3], and under lockdown only validly signed modules may load [4], with Ubuntu tying lockdown enforcement to Secure Boot [5]. Key enrollment has two states: mokutil lists pending keys separately from stored ones [6], and the one-time password is valid for a single run of the enrollment screen [2]. On the network side, NVIDIA states that kernel modules built via DKMS are not NVIDIA-signed [7], and that the GPUDirect Storage module ships only in DKMS format [8].

The practical recommendation is to boot one drained canary under the intended policy and accept it only on evidence: the running kernel, the loaded modules, the enforcement state, a GPU compute check and the required RDMA or GPUDirect Storage check. Canonical publishes five years of standard security maintenance per LTS release [9], and Canonical's kernel team runs a unified 2-week update cycle [10], so the automation, not only a single manual signing, must be tested on a later kernel. This report did not boot a host, enroll a key or measure downtime; every procedure is derived from vendor and kernel documentation, and capacity at risk is computed only from the operator's declared fleet.

2-weekCanonical's unified kernel Stable Release Update cycle, with updates published weekly
2048 bitRSA key size documented for the Machine Owner Key certificate generated by DKMS

Introduction and Background

Secure Boot on Ubuntu extends past the bootloader. Canonical documents that Secure Boot verifies all critical components [2], and that any attempt to insert an unsigned module with insmod or modprobe fails with an error message [2]. For a GPU server the NVIDIA kernel modules are therefore part of the boot trust chain, and a kernel update can silently change which artifacts that chain must accept.

Search behaviour reflects this: "nvidia driver secure boot after kernel update" and variants such as "nvidia-smi failed to communicate with driver after kernel update" mostly arrive from people whose driver stopped loading. A forum thread for an Ubuntu 24.04 system describes drivers failing to load with Secure Boot enabled [11]; it is community material that illustrates the symptom, while the diagnosis here rests on vendor and kernel documentation.

GPU Smith publishes this article, which complements a CUDA runtime and driver compatibility analysis: the question here is whether modules are trusted and loadable on the next kernel, not whether a CUDA toolkit matches a driver branch.

Scope and the six layers

The scope is an identified supported Ubuntu Server release and kernel flavour; other distributions need separate verified procedures. The manual pages cited for mokutil and dkms are the Ubuntu 24.04 (noble) versions, so operators on another release must re-read their equivalents. A trust and load pass is not platform attestation and not application correctness. The report uses six layers:

  • Package authenticity: the package or repository content came from the intended publisher.
  • Module signature: each .ko file carries a signature that matches its final bytes.
  • Signer trust: the certificate is in a keyring the kernel consults, which for third-party keys usually means MOK (Machine Owner Key) enrollment.
  • Build compatibility: the module was built against the exact kernel it will load into.
  • Boot-time artifact selection: the running kernel, module tree and initramfs are the ones that were checked.
  • Workload acceptance: GPU compute and the required RDMA (remote direct memory access) or storage path work after the modules load.

Key Changes in the Trust Model: Prebuilt Signed Modules Versus DKMS

What Canonical's server documentation says

Canonical's Ubuntu Server page states that with Secure Boot the kernel will require the kernel modules to be signed [1], and that there are two mutually exclusive ways to achieve this [1]. The prebuilt route installs a linux-modules-nvidia metapackage for your kernel flavour [1], and the page asks the operator to check that modules exist for the specific running kernel [1]. If they were not installed for the running kernel, the page directs the reader to upgrade [1]. This is the key per-kernel property: a signed package for the previous kernel does nothing for the next one.

The page discourages DKMS unless you are running a custom kernel [1] and states that DKMS drivers are not signed with Canonical's key [1]. It tells you to enroll your own key and notes that installing the DKMS package may guide you through creating and enrolling one, but it gives no step-by-step signing procedure. A careful reading treats the broad "do not support Secure Boot" wording as shorthand for "not signed by Canonical, so you supply and enroll your own signer". Ubuntu's security architecture page supports that reading: modules built and shipped by Canonical are signed by the Canonical UEFI key [2], while custom-built modules require you to sign them before the kernel can load them [2].

The server page also warns that drivers from sources outside those it lists may break Secure Boot [1], and NVIDIA's installer README encourages users to use their distribution's repackaged driver where available [12]. Its .run installer can sign a module, but a module signed by a newly generated key cannot be loaded into a kernel that requires signed modules until the key is trusted [12]. The proposed default path therefore never mixes a .run installer with distribution packaging.

Reconciling the DKMS wording

Three sources reconcile the apparent conflict. Canonical's security page says DKMS post-build processing proceeds to sign the built module with the MOK [2] and that third-party drivers signed by a newly enrolled MOK load after the reboot [2]. NVIDIA's DOCA documentation applies the same model to networking modules: DKMS utilizes a locally generated key pair to sign the built modules [7]. Red Hat's kernel documentation, used only as corroboration of the generic mechanism, says you can only load signed modules authenticated against keys on the system or platform keyrings [13]. A DKMS module is therefore loadable under Secure Boot if, and only if, an approved signer is enrolled and the post-build signature is intact.

Responsibility map

Table 1 assigns each trust layer to an owner under the two routes. It is derived from the cited documents and is a planning aid, not a vendor statement.

LayerPrebuilt signed modules (Canonical packages)Locally built DKMS modules
Package authenticityDistribution archive and metadata; operator verifies the exact linux-modules-nvidia version exists for the next kernel [1]Package supplying the source; for DOCA, packages are signed to verify they originate from NVIDIA [7]
Module signatureCanonical signs with its UEFI key [2]Operator's DKMS post-build step signs with a locally held key [2]
Signer trustTrusted through the Canonical chain; no operator keyOperator enrolls the certificate; firmware must know the correct public certificate [14]
Build compatibilityCanonical builds per kernel flavour and version; operator checks the matchBuilt on the host; needs headers for the running kernel [1]
Boot-time artifactOperator confirms the running kernel matches the signed packageOperator confirms DKMS built, signed and installed for the kernel that will boot [15]
Workload acceptanceOperatorOperator

The prebuilt route moves signature and trust ownership to the distribution but leaves exact-kernel matching and acceptance with the operator. The DKMS route moves signing, key custody and enrollment to the operator and adds a build step that can fail if headers are missing. The risks differ rather than rank; a fleet needing a custom kernel or a non-packaged branch may have no prebuilt option and must accept the DKMS responsibilities.

Open kernel modules do not remove the requirement

NVIDIA states that the GPU driver kernel modules are open source and dual licensed MIT/GPLv2 [16], that Blackwell and later GPUs are supported only by the open kernel modules [17], and that the proprietary flavour supports Turing, Ampere, Ada and Hopper [18]. None of this changes the kernel's rules: under Secure Boot only validly signed modules may be loaded [4]. The answer to "nvidia open kernel modules secure boot ubuntu" is therefore the same as for the proprietary flavour. Source licence is separate from signature and trust.

Figure 01
Prebuilt signed modules versus local DKMS builds
Canonical prebuilt modules
  • Canonical signs the modules with its UEFI key.
  • The operator checks that a matching package exists for the next kernel.
  • The operator confirms the signed package matches the kernel that actually boots.
Locally built DKMS modules
  • The operator's DKMS post-build step signs modules with a locally held key.
  • The operator manages key custody and enrollment. The local build needs matching kernel headers.
  • The operator confirms DKMS built, signed and installed the modules for the kernel that will boot.

A modinfo signer string or an appended signature is useful inspection data; the acceptance result is the kernel actually loading the module under that policy.

Key Changes in Signer Trust: Signatures, Keyrings and Enrollment States

Signature presence is not signature validity

Signed modules are brittle because the signature sits outside the defined ELF container [3], and the entire module is the signed payload [3]. Signed modules may not be stripped once the signature is computed and attached [3]. A tool that compresses, strips or rewrites a module after signing changes the bytes the signature covered. DKMS handles one ordering problem explicitly: it signs every module that it builds before it gets compressed [14]. Any custom script that signs after compression, or compresses after a manual signature, must be tested against that ordering.

The kernel decides the outcome. A module whose signature mismatches a key the kernel holds is not permitted to load [3], and a module with an unparsable signature is rejected [3]. In permissive mode an unsigned module can load but the kernel is marked as tainted [3]. Enforcement can come from build configuration [3] or from the kernel command line [3]. Under Secure Boot on Ubuntu, lockdown enforcement is tied to UEFI Secure Boot [5], and under lockdown only validly signed modules may be loaded [4]. A modinfo signer string or an appended signature is useful inspection data; the acceptance result is the kernel actually loading the module under that policy.

Requested versus enrolled

The mokutil manual describes --import as forming an enrolling request to shim [6]. That request is pending. Separate options list the keys to be enrolled [6] and the keys already stored in the database [6], and a test option checks whether a key is enrolled [6]. Red Hat's documentation of the generic procedure matches: after reboot the boot loader notices the pending request and launches the enrollment tool [13].

Enrollment needs a human or remote console on the next boot. Canonical states that the user must configure a password during the previous boot phase [2] and that the password is valid for a single run of the enrollment application [2]. If the run is missed, the key is not enrolled and must be queued again. The DKMS README notes the password can be blank [14], which is a custody decision, and neither a blank nor a reused one-time secret belongs in an evidence bundle. In MokManager the operator selects Enroll MOK, views the certificate fingerprint and confirms enrollment [2]; recording that fingerprint in the ledger links the human step to the artifact.

The ledger should record one of five enrollment states:

  • Not requested: no pending key; the module signer is absent from the stored list. The next boot rejects the modules under enforcement.
  • Requested, pending: the key appears in the pending list [6]; trust is not yet present.
  • Enrolled, verified: the key appears in the stored list [6] and matches the signer on the module.
  • Enrolled, signer mismatch: the stored key differs from the module signer. This follows if the key pair is regenerated, because DKMS re-creates both files if either the key or certificate is missing [14], producing a pair that no existing enrollment trusts.
  • Unknown: the console flow cannot be confirmed. Treat as hold.

Key custody for headless and air-gapped sites

DKMS auto-generates a self-signed key and certificate the first time it runs [14], and the dkms(8) manual documents configurable key and certificate locations [15]. Canonical warns that a private key readable by root effectively eliminates the security boundary between root and kernel mode [2], and notes that MOKs generated at installation or upgrade are machine-specific [2]. A per-host key gives containment but multiplies enrollment steps; a fleet key reduces enrollment work but concentrates risk. If a team chooses a fleet key, the private key should live in controlled signing infrastructure and the ledger should hold only the public certificate fingerprint. This report does not recommend mass-copying private keys to servers. DKMS also documents certificate properties: a 2048 bit RSA key [14], and from DKMS 3.1.7 a code-signing extended key usage, so older keys may need regeneration on systems that check it [14]. Regeneration changes the signer and returns the host to the pending state.

Key Changes in Build, Boot Artifacts and Network Modules

Build compatibility is a separate gate

A correctly signed module can still be wrong for the kernel. Module versioning is enabled by the CONFIG_MODVERSIONS tag [19], and Module.symvers lists all exported symbols from a kernel build [19]. When recorded symbol versions do not match, the kernel reports that the module "disagrees about version of symbol" [20], which Red Hat's knowledge base reads as a module that may not be compatible with the currently running kernel [21]. That is a build failure, not a trust failure, and re-signing will not fix it; the module must be rebuilt against the headers for the kernel that boots.

Headers are a recurring gap. Canonical's DKMS steps include a case for headers of the running kernel that were not installed [1]. NVIDIA's FAQ warns that a new kernel can be installed without properly updating the headers [22] and, when kernel components are updated without rebooting, that the DKMS framework will sometimes fail to correctly rebuild the NVIDIA kernel module packages [22]. The lesson for release engineers is that automation success is an unknown until the build log, dkms status and a module listing for the next kernel are inspected. dkms status reports modules, versions and kernels and whether each was added, built or installed [15], and dkms autoinstall attempts to install the latest revision of all modules installed for other kernels [15].

Boot-time artifact selection

Three artifacts must agree. The module tree for the next kernel must contain the signed modules and a current dependency map, because modprobe expects an up-to-date modules.dep.bin generated by depmod [23]. If any module is needed before the root file system, the initramfs must include it; initramfs tooling can add a module and its dependencies [24], and package maintainer scripts should not run update-initramfs directly [24], so inspect the image that kernel and DKMS hooks produced. Finally, the boot default must point to the intended kernel. Ubuntu server installations default to the GA kernel with the enablement kernel optional [25].

Stale artifacts remain wrong artifacts: a signed package for the previous kernel, a DKMS build for a kernel that is not the next default, or an initramfs generated before DKMS finished are valid files that fail acceptance. NVIDIA adds a userspace constraint: kernel modules and user space components of the driver must always be of the same version [26], so a library mismatch after a partial upgrade is a fourth failure class, distinct from signing and ABI. Canonical's server page ends its update steps with a reboot [1]; on a fleet, that reboot is when the matrix is tested.

RDMA and storage modules

A working nvidia-smi does not prove the data path survived. NVIDIA's DOCA-Host 3.5 documentation separates two signatures that are easy to conflate: standard RPM and DEB packages are signed to verify they originate from NVIDIA [7], while kernel modules built via DKMS are not NVIDIA-signed [7]. The companion install guide states that DOCA-Host no longer includes pre-built, NVIDIA-signed kernel drivers [27]. A package signature therefore settles layer one only. Enrollment follows the same pattern as for GPU modules [7], and DKMS creates a trigger that compiles drivers against new kernel headers immediately upon update installation [7]. The guide requires DKMS and the headers matching the running kernel [7] and applies to DOCA-Host profiles that include kernel components [7]. It is the 3.5.0 archive, so its architecture should not be assumed for every DOCA version.

GPU peer-memory and storage add modules. NVIDIA lists nvidia-peermem among the driver modules [16], and its README says the kernel must have the required support for RDMA peer memory [28]. The GPUDirect RDMA documentation names MLNX_OFED as a prerequisite for loading it [29], says that a driver installed before the OFED stack must be uninstalled and installed again [29], and, for the release it describes, that there is no service to automatically load nvidia-peermem [29]. Check how your own image loads the module and record it. For GPUDirect Storage, the datacenter guide says the module is shipped only in DKMS format [8]. Inventory these modules only if the target workload uses them.

Failure signatures, owners and recovery

Table 2 maps post-update symptoms to the layer they indicate, using error text from the cited sources where one exists.

SymptomLayer indicatedEvidence to captureOwner and recovery
Insert fails with "Key was rejected by service"Signer trust; the standard errno text for a rejected key [30]Stored-key list, module signer metadata, kernel logKey owner: enroll through the console flow, or boot the previous kernel
Insert fails and no signature is presentModule signature absent; only validly signed modules loaddkms status, build logRelease engineer: rebuild and sign; hold if the key is unavailable
Kernel logs "disagrees about version of symbol"Build compatibility [20]Headers version, build log, running kernelRelease engineer: rebuild against matching headers [21]
Signed module rejected after compress or stripAltered payload [3]Signing script logs, step orderAutomation owner: fix order; DKMS signs before compression [14]
nvidia-smi cannot communicate with the driverSymptom only: module not loaded or userspace mismatch [26]Loaded modules, kernel log, package versionsOn-call: classify with the rows above before acting
GPU works, RDMA or GDS check failsNetwork or storage module missing, unsigned or not loaded [7]RDMA link state, peer-memory module stateNetwork owner: requalify the DOCA or OFED build for the next kernel
Pending MOK, no consoleEnrollment pending, not enrolled [2]Pending-key list, console accessSite operations: complete the flow or defer rollout

Each failure has one first owner. Distinguishing a build error, an unknown key, an altered signature, an ABI mismatch and a userspace mismatch matters because remedies are not interchangeable: enrolling a key does not fix a symbol-version mismatch, and rebuilding does not fix an unenrolled signer.

Implementation Considerations and Process Changes

The next-kernel trust and load ledger

The distinctive artifact is a per-next-kernel ledger with one row per kernel and module: next kernel and flavour; module; package provenance; build and vermagic; module signature; enrolled signer; initramfs and selected artifact; actual load; workload check; disposition. A blank CSV header:

next_kernel,flavour,module,package_provenance,build_vermagic_ok,signature_present,signer_fingerprint,signer_enrolled_state,in_initramfs_if_needed,selected_at_boot,loaded_under_policy,workload_check,disposition,evidence_ref,owner

The JSON skeleton keeps the same fields; private keys and one-time enrollment passwords are explicitly out of scope for it.

{
  "change_id": "",
  "next_kernel": "",
  "kernel_flavour": "",
  "policy": {"secure_boot_state": "", "lockdown_or_enforce": ""},
  "modules": [
    {"name": "", "needed_by_workload": true, "package_provenance": "",
     "build_ok": null, "signature_present": null, "signer_fingerprint": "",
     "enrollment_state": "not_requested|pending|enrolled|mismatch|unknown",
     "in_initramfs": null, "loaded": null, "disposition": "promote|hold"}
  ],
  "workload_checks": {"gpu_compute": "", "rdma_or_gds": ""},
  "recovery": {"previous_kernel_present": null, "console_access_verified": null}
}

Table 3 lists the pass and hold values for each ledger cell.

Ledger cellPass valueHold valueHow to obtain
Package provenanceExact package for the next kernel from the approved sourcePackage missing, or mixed install method [1]Package policy output for the next kernel [1]
Build and vermagicClean build log for the next kernel; headers presentHeaders missing or build error [22]dkms status and build log
Module signatureSignature appended after the final payloadUnsigned, altered or unparsable [3]Module inspection on the staged file
Enrolled signerState is enrolled and verifiedPending, mismatch or unknownStored-key list and key test [6]
Initramfs and selectionNext kernel selected; image holds needed modulesWrong default entry or stale imageBoot configuration and image listing
Actual loadRequired modules loaded under enforcementAny required module absentLoaded-module list and kernel log
Workload checkGPU and RDMA or GDS checks passAny check failsChecks listed below

The ledger does not accept "the automatic hook succeeded" as evidence; it accepts logs and listings. An unknown cell is a hold, because a recorded unknown is recoverable and an assumed pass is not.

Procedure for the maintenance window

  1. Identify the change. Record current and next kernel, flavour, driver branch, package source and the modules the workload needs. NVIDIA lists the GPU driver module set [16]; inventory only what is used.
  2. Capture current policy. Record the Secure Boot state using the mokutil option that shows it [6], and the signer fingerprint. Store no private keys or one-time secrets.
  3. Choose the route. Prebuilt if packages exist for the next kernel; otherwise an approved DKMS signing route with custody settled in advance. Do not combine the two [1].
  4. Stage and inspect. Install next-kernel headers and packages without rebooting; inspect build output and module files; record unknowns.
  5. Establish enrollment. If the signer is new, queue enrollment and confirm the pending state.
  6. Prepare recovery. Confirm a supported previous kernel is installed and bootable and out-of-band access works.
  7. Boot one drained canary under the intended policy; verify the running kernel, module loads, kernel log and enforcement state.
  8. Accept the workload with the checks below.
  9. Promote or hold. Compare the matrix with the expected state and retain failure logs.
  10. Repeat on a later kernel update to test the automation rather than a single manual signing.

Console, recovery and the one-time enrollment window

For headless servers the enrollment screen is the dependency most likely to block an otherwise ready rollout. MokManager is signed by Canonical with the same UEFI key as GRUB [2], and enrollment requires interactive confirmation of the fingerprint [2]. A baseboard management controller virtual console is the usual route; Dell documents its virtual console as managing a remote system using the keyboard, video and mouse of the management station [31]. Before the window, verify that the console works, that the session survives the reboot, and that an authorized person is available to approve the fingerprint. No fetched Ubuntu document confirms MokManager over a serial console, so treat serial redirection as untested until proven on the site's hardware.

Disabling Secure Boot is not a generic recovery plan: it changes the posture the change was meant to preserve and needs its own approval. Recovery is to boot the retained supported kernel whose modules are already signed and trusted. The GRUB manual describes the menu timeout, where GRUB boots the default entry a set number of seconds after the menu is displayed [32], and the grub-reboot page describes setting the default boot entry for the next boot only [33]. Rehearse that selection on a canary, and confirm that the old kernel's modules and initramfs will not be removed by automatic clean-up before the window.

Acceptance checks for the canary

  • GPU enumeration: nvidia-smi -L lists each GPU with its UUID [34]. This is the first check, not the last.
  • Diagnostic readiness: DCGM describes level 1 as tests to use as a readiness metric [35], and its deployment check verifies the compute environment is ready to run CUDA applications [35].
  • Collective correctness: nccl-tests check both the performance and the correctness of NCCL operations [36]. Use correctness mode here; use existing qualified path runbooks for deeper performance tests.
  • RDMA function: rdma link show shows the state of all rdma links on the system [37], and perftest may be used for functional testing [38].
  • GPUDirect Storage: if used, run the documented verification [39].
  • Trust residue: the kernel taint documentation defines a flag for an unsigned module having been loaded [40]; its presence on the canary is a hold.

Capacity at risk

Capacity at risk is the sum of GPUs on all canary and rollout nodes unavailable at the same time, subject to workload placement and real spare capacity: nodes simultaneously unavailable multiplied by GPUs per node, summed over node classes. No outage duration or signing time is assumed; the operator supplies the maintenance budget.

(Hypothetical Example) A cluster declares 8 GPUs per node. One canary removes 8 GPUs from service; a first wave of 4 nodes removes 32. If declared spare capacity is 16 GPUs, that wave exceeds spare capacity by 16 GPUs and needs a smaller wave or an approved service reduction. The inputs are illustrative, not measurements.

Decision tree

  1. Does the next kernel's flavour and version have a matching Canonical-signed linux-modules-nvidia package for the intended branch? If yes, use it and go to 5; if no, go to 2.
  2. Is an approved DKMS signing key and a documented enrollment path in place [2]? If no, hold.
  3. Are next-kernel headers installed and the build log clean [1]? If no, hold.
  4. Is the signer enrolled and verified, not merely pending? If pending, schedule the console flow [2]; if unknown, hold.
  5. Do the network and storage modules pass steps 1 to 4? If not, hold.
  6. Is a previous supported kernel retained and console access verified? If not, hold.
  7. Boot the canary. Do all required modules load under enforcement and do workload checks pass? If yes, promote in controlled waves; if no, retain logs, boot the recovery kernel and requalify.
Figure 02
Stage and validate a Secure Boot canary
  1. 01Choose the module route

    Use prebuilt modules if packages exist for the next kernel. Otherwise use an approved DKMS signing route with key custody agreed in advance.

  2. 02Stage and inspect modules

    Install the next kernel's headers and packages before rebooting, inspect build output and module files, and record unknowns.

  3. 03Queue enrollment for a new signer

    If the signer is new, queue enrollment and confirm the request is pending.

  4. 04Prepare recovery

    Verify that a supported previous kernel is installed and bootable and that out-of-band access works.

  5. 05Boot the drained canary

    Boot under the intended policy and verify the running kernel, module loads, kernel log and enforcement state.

  6. 06Test the workload

    Check GPU compute and the required RDMA or GPUDirect Storage path.

Promote in controlled waves if all required modules load under enforcement and workload checks pass.

Hold if any ledger entry is unknown. If the canary fails, retain logs, boot the recovery kernel and requalify.

Data Analysis and Evidence

The quantitative evidence is lifecycle data, not benchmarks. No public measurement of kernel-update outcomes for Secure Boot GPU servers was found, and none is invented here. The relevant numbers are the cadences that determine how often a fleet must repeat the matrix.

Distribution lifecycle. Canonical states that LTS releases come every two years and receive five years of standard security maintenance [9], with a Legacy add-on that can be purchased to cover additional five years [9]. The same page's table lists standard maintenance ending May 2027 for 22.04 LTS, May 2029 for 24.04 LTS and May 2031 for 26.04 LTS (as of December 2026). Canonical's kernel team has moved to a unified 2-week Stable Release Update cycle published weekly [10]. A server on an LTS release can therefore see kernel updates much more often than driver branch changes, which makes the trust matrix a recurring control.

GPU driver lifecycle. NVIDIA says production branches receive bug fixes and security updates for up to one year [41], and that every long-term support branch is a production branch but not the reverse [41]. Its supported-drivers page lists only long-term support and production branches [42], and New Feature Branches are short-lived with no end-of-life date [42]. That page, updated 4 November 2026, lists end-of-life of June 2028 for R580, March 2027 for R595 and September 2029 for R620. Beyond release 570 the open-module packaging conventions apply to all releases [16]. A fleet pinned to a short-lived production branch will face a driver branch change in the same period as many kernel updates, and the ledger should track both.

Firmware trust anchors. Microsoft states that the older 2011 Secure Boot certificates begin expiring in June 2026 [43], that devices without the new certificates continue to start and operate normally [43], and that the 2023 certificate signs third-party boot loaders and EFI applications [43]. Canonical says shim updates delivered after the expiry will be signed with the new 2023 Microsoft CA [44] and advises including both the 2011 and 2023 hierarchies in UEFI security databases [44]. For a GPU fleet this adds one ledger line, firmware database state, because boot-chain trust and module-signing keys are independent paths. This report did not examine any server vendor's firmware update process.

Evidence gaps. The reviewed sources contain no independent measurement of signing time, enrollment time or downtime. Any such figure must come from the operator's own canary.

Figure 03
Ubuntu LTS standard maintenance end dates
  1. May 2027Ubuntu 22.04 LTS

    Standard maintenance ends for Ubuntu 22.04 LTS.

  2. May 2029Ubuntu 24.04 LTS

    Standard maintenance ends for Ubuntu 24.04 LTS.

  3. May 2031Ubuntu 26.04 LTS

    Standard maintenance ends for Ubuntu 26.04 LTS.

A working nvidia-smi does not prove the data path survived.

Implications and Future Directions

Automation coverage. A community project, nvidia-kernel-module-signer, describes itself as a simple, automated Bash script to sign NVIDIA kernel modules for Secure Boot [45]. Its README lists automatic DKMS configuration to sign modules on updates [45] and handling of compressed and uncompressed modules [45]. This report did not run or audit that code. The point for release engineers is scope: a signing script addresses the signature layer and, if it handles enrollment, part of signer trust. It does not by itself produce per-next-kernel evidence, a source hierarchy, a recovery path or GPU and network acceptance, and adopting any such tool is an internal assurance decision that should include review of key storage.

Fleet policy. Decide in advance whether the prebuilt route is mandatory for GPU modules and whether DKMS is allowed only where no prebuilt package exists. NVIDIA's DOCA-Host documentation describes local builds [7], so a fleet with RDMA will carry a signer even if its GPU modules are prebuilt. Plan one signer, one custody model and one enrollment path for every locally built module.

Process design. Treat the matrix as release evidence: a rollout ticket should contain the filled ledger, the canary logs and the recovery rehearsal. For air-gapped sites add the offline mirror contents for the next kernel, headers and the public certificate to the change package, because no network path exists to fetch them during a failed window.

Professional input. Key custody, firmware settings and security policy belong to the organization's security and platform owners; compliance programs may restrict signing keys in ways this report does not interpret. Consult the hardware vendor's support channel for the firmware in use.

Open questions. The reviewed sources did not establish how many old kernels a given Ubuntu configuration retains by default, whether MokManager works over every serial console, or how every DOCA version builds modules. Each should be answered by a site test and recorded in the ledger.

Frequently Asked Questions (FAQs)

Why does the NVIDIA module not load with Secure Boot after a kernel update?

Likely causes are an unsigned or wrongly signed module for the new kernel, an unenrolled signer, a build that did not run for the new kernel, or a userspace mismatch. Unsigned insertion fails under Secure Boot [2], prebuilt packages must exist for the specific kernel, and DKMS builds need matching headers.

What does "nvidia-smi failed to communicate with the driver after a kernel update" mean?

It is a symptom, not a diagnosis: the module is not loaded or does not match the userspace components [26]. A community thread attributes one such report to unsigned modules failing to load under Secure Boot [11]. Classify it with Table 2 before acting.

How is a MOK enrolled for an NVIDIA driver under Secure Boot?

Queue the public certificate with mokutil --import, which forms an enrolling request to shim [6], reboot, and in MokManager select Enroll MOK, check the fingerprint and confirm [2]. The password is valid for a single run.

How does the mokutil import of a key for NVIDIA DKMS modules work?

It is the same command for any signer. For DKMS the default key pair is generated locally [14], the README documents inspecting the MOK certificates after reboot [14], and the DOCA guide shows the same enrollment pattern for its locally built modules [7].

Does DKMS sign NVIDIA modules after a kernel upgrade?

Ubuntu says third-party modules are rebuilt for the new kernels [2] and that DKMS post-build processing signs them with the MOK. That works only if the MOK is already enrolled; verify with the build log and dkms status, not by assumption.

What does "kernel module signature verification failed" mean?

A rejected key surfaces as the errno text "Key was rejected by service" [30]. A signature mismatched against a held key is not permitted to load [3], which can also result from altering a module after signing [3].

How can a headless GPU server be recovered when the driver cannot load?

Boot the retained previous kernel through the console, using a one-time boot selection if configured [33], then fix the missing artifact. Do not make disabling Secure Boot the default recovery plan.

Are NVIDIA open kernel modules compatible with Secure Boot on Ubuntu?

They are subject to the same signing requirement. They are the supported flavour for Blackwell and later [17], but the kernel still requires validly signed modules under lockdown.

Conclusion

Approving a kernel update on a Secure Boot GPU server is a six-layer decision: package authenticity, module signature, signer trust, build compatibility, boot-time artifact selection and workload acceptance. A signed package, an open-source module or a green DKMS build does not settle the others. Canonical distinguishes prebuilt signed modules from DKMS modules that need an owner-enrolled key, and the kernel's rules decide the outcome at load time. Enrollment remains a requested state until the console flow completes, and NVIDIA's networking and storage modules extend the same ledger to RDMA and GPUDirect Storage paths.

The recommended action is to hold any rollout whose ledger contains an unknown, boot a drained canary under the intended policy, accept it on module-load and workload evidence, and keep a supported previous kernel and console access as the recovery path. Repeat on a later kernel update to test the automation. The report is documentation-based and did not boot a host, enroll a key or measure downtime, so each site must confirm its own release, firmware and key-custody details.

External Sources (45)

About

GPUSmith

Plan and build private AI compute with GPU Smith. We connect workload requirements with GPU hardware, networking, deployment and operating decisions so your infrastructure fits the work it must perform.

GPU Smith provides independent engineering and research for private AI infrastructure. We help technical buyers and operators reason about GPU workload sizing, hardware selection, procurement, deployment and inference operations, from the compute system to the networking, power and cooling requirements around it.

Start with the workload

Useful infrastructure decisions begin with the models, data, throughput, latency and operating constraints a team actually has. GPU Smith helps connect those requirements with system design and deployment choices. The goal is a privately controlled AI environment whose capacity and operational demands are understood before a purchasing decision.

Hardware and supplier research

Our public reference library covers GPUs, complete systems and networking components. The server-vendor directory and manufacturing research help teams investigate suppliers, compare options and follow sources behind technical claims. We distinguish manufacturer specifications from measured benchmarks and advertised capabilities from tested configurations. Reference pages are research resources, not a live inventory listing or a binding equipment quote.

Deployment and operations

GPU Smith's engineering scope includes infrastructure integration, networking, power, cooling and the practical operation of inference workloads. Our published articles explain the tradeoffs behind deployment, procurement and ongoing operations so teams can ask better questions and document decisions.

Work with GPU Smith

Explore the hardware library, GPU references, networking references and vendor research. Contact GPU Smith with your workloads and deployment constraints to discuss a project and confirm current scope, pricing and availability.

Inclusion of a manufacturer or product in our research does not imply a partnership, certification or endorsement.

Disclaimer

This document is provided for informational purposes only. No representations or warranties are made regarding the accuracy, completeness, or reliability of its contents. Any use of this information is at your own risk. GPUSmith shall not be liable for any damages arising from the use of this document. This content was generated with assistance from artificial intelligence tools, which may contain errors or inaccuracies. Readers should verify critical information independently. All product names, trademarks, and registered trademarks mentioned are property of their respective owners and are used for identification purposes only. Use of these names does not imply endorsement. This document does not constitute professional or legal advice. For specific guidance related to your needs, please consult qualified professionals.