Public bug reported:

Summary
-------
On an Ubuntu 26.10 install with TPM-backed full-disk encryption (FDE), updating 
the UEFI dbx through fwupd fails with:

    failed to write-firmware: failed to send FuFirmware firmware to
snapd

The KEK CA, UEFI CA and Option ROM UEFI CA updates (2011 -> 2023) on the
same machine succeeded through the same snapd integration, so only the
dbx update is affected. According to the snapd debug log, the "prepare"
request for the dbx update never reaches snapd. The failure therefore
seems to happen inside fwupd before the request is sent.

Environment
-----------
- Ubuntu 26.10, kernel 7.3.0-11-generic
- fwupd 2.1.6
- snapd 2.78+ubuntu26.10 (snap and snapd report the same version, no refresh 
available)
- Dell Latitude 7390 2-in-1, BIOS 1.43.0 (fwupd reports it as the latest 
version), Nuvoton TPM 2.0
- Installed with Ubuntu's hardware-backed full-disk encryption (TPM + recovery 
key)
- Platform Key: Dell (2016)
- KEK CA is already at 2023
- dbx: installed 20230501, offered 20260707 (DBXUpdate-20260707-x64.cab from 
LVFS, "signed by the Microsoft 2023 KEK")

Steps to reproduce
------------------
1. Run: sudo fwupdmgr refresh --force
2. Run: sudo fwupdmgr update 362301da643102b9f38477387e2193e57abaa590
   (device "UEFI dbx", 20230501 -> 20260707)
3. Confirm the update and enter the volume recovery key when asked.

Actual result
-------------
The update aborts right after "wird entpackt" (decompressing) with:

    failed to write-firmware: failed to send FuFirmware firmware to
snapd

The device then shows "Update state: failed" in fwupdmgr get-devices,
and the dbx stays at 20230501. It is reproducible on every attempt
(several attempts, also after restarting snapd and fwupd).

Expected result
---------------
The update is handed to snapd, written, and applied after a reboot, like the 
KEK and DB updates before it.

Analysis / logs
---------------
1) fwupd daemon, started manually with /usr/libexec/fwupd/fwupd --verbose 
(attached as fwupd-dbx-clean.log):
The payload is found and verified ("verified payload 
DBXUpdate-20260707.x64.bin", "composite update 1: ... 20230501->20260707"). The 
phases composite-prepare, prepare and detach run through. The log ends at 
"install phase now install", followed by two "no replug or re-enumerate 
required" lines, about 30 ms later. The daemon logs no error at this verbosity. 
The device reports protocol org.uefi.dbx2, FirmwareGType FuEfiSignatureList and 
the flag affects-fde.

2) snapd with SNAPD_DEBUG=1, during one failed attempt:

    snapd[10293]: daemon.go:391: DEBUG: 
pid=10370;uid=0;socket=/run/snapd.socket; POST /v2/system-volumes 1.140995701s 
200
    snapd[10293]: secure_boot_update.go:163: DEBUG: no pending Secureboot Key 
Database update request for cleanup
    snapd[10293]: daemon.go:391: DEBUG: 
pid=9591;uid=0;socket=/run/snapd.socket; POST /v2/system-secureboot 454.288µs 
200

The only /v2/system-secureboot request is the cleanup call after the
failure. There is no preceding prepare request, and snapd does not log
an error. "snap changes" shows no change for the dbx update, while the
earlier successful updates appear as "External EFI KEK update" and
"External EFI DB update".

Related bugs
------------
LP: #2147129 ("dbx updates fail to notify snapd on default image") describes a 
similar problem, but there the error is "failed to notify snapd of prepare: 
snapd request failed with status 400", i.e. the request reaches snapd. Here no 
request reaches snapd, and the error message differs. I am not sure whether 
this is the same issue (and whether the fix is already included in 2.1.6) or a 
separate problem, for example with how the 20260707 payload is handled.

Additional observation
----------------------
In the GUI firmware updater (GNOME Firmware), the KEK CA and UEFI CA updates 
failed with "Ungültiges Dateiformat" (invalid file format), while the same 
updates worked from the command line with the recovery key prompt. This may be 
a separate problem.

Impact
------
None on normal operation. The system boots normally, but the dbx cannot be 
updated beyond 20230501.

I am happy to run further tests or provide more logs.

ProblemType: Bug
DistroRelease: Ubuntu 26.10
Package: fwupd 2.1.6-3ubuntu4
ProcVersionSignature: Ubuntu 7.3.0-11.12-generic 7.3.1
Uname: Linux 7.3.0-11-generic x86_64
ApportVersion: 2.36.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun Nov 22 11:13:13 2026
ProcEnviron:
 LANG=de_DE.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: fwupd
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.fwupd.fwupd.conf: [inaccessible: [Errno 13] Keine 
Berechtigung: '/etc/fwupd/fwupd.conf']
modified.conffile..etc.fwupd.remotes.d.lvfs-embargo.conf: [modified]
modified.conffile..etc.fwupd.remotes.d.lvfs-testing.conf: [modified]
modified.conffile..etc.fwupd.remotes.d.lvfs.conf: [modified]
mtime.conffile..etc.fwupd.remotes.d.lvfs-embargo.conf: 
2026-11-22T10:47:02.675313+01:00
mtime.conffile..etc.fwupd.remotes.d.lvfs-testing.conf: 
2026-11-22T10:47:02.801316+01:00
mtime.conffile..etc.fwupd.remotes.d.lvfs.conf: 2026-11-22T10:47:02.916376+01:00

** Affects: fwupd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug stonking wayland-session

** Attachment added: "fwupd daemon verbose log (fwupd --verbose) of a failed 
dbx update 20230501 -> 20260707; ends at "install phase now install", no error 
logged"
   
https://bugs.launchpad.net/bugs/2175510/+attachment/6020077/+files/fwupd-dbx-clean.log

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

Title:
  UEFI dbx update fails with "failed to send FuFirmware firmware to
  snapd" on TPM FDE (fwupd 2.1.6, Ubuntu 26.10)

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to