"TPM PCR0 differs from reconstruction" for device firmware errors - not fixed in all releases (1.3.11 in Focal for example)

Bug #1926311 reported by Thomas Ward
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fwupd (Ubuntu)
Fix Released
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned

Bug Description

`fwupd` has an internal logging mechanism, and during firmware updates attempts to rebuild TPM PCRs based off event logs. Unfortunately, this has known bugs in versions before 1.3.12, 1.4.7, 1.5.0.

Per their wiki on this (https://github.com/fwupd/fwupd/wiki/TPM-PCR0-differs-from-reconstruction):

Starting with fwupd 1.3.8, the daemon will attempt to reconstruct the TPM PCR0 value using the firmware's TPM event log. If the calculation leads to a different value than stored in the PCR it means one of four things:

1. An error in the firmware TPM event log.
2. An error in the fwupd reconstruction of the TPM PCR0
3. A hardware failure
4. Presence of malware on the system

Upstream admits there are known bugs with the reconstruction: https://github.com/fwupd/fwupd/pull/2183 and https://github.com/fwupd/fwupd/pull/2394

Focal has 1.3.11. This does NOT include the fixes for the TPM PCR0 reconstruction, and is possibly giving false information for the TPM reconstruction.

Getting 1.3.12 into Focal would be beneficial where possible as that would allow us to see whether we actually ARE having firmware updates / reconstruction issues with TPM.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: fwupd 1.3.11-1~focal1
ProcVersionSignature: Ubuntu 5.4.0-72.80-generic 5.4.101
Uname: Linux 5.4.0-72-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.16
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Tue Apr 27 11:22:12 2021
InstallationDate: Installed on 2018-11-21 (887 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: fwupd
UpgradeStatus: Upgraded to focal on 2020-08-23 (246 days ago)

Revision history for this message
Thomas Ward (teward) wrote :
Revision history for this message
Thomas Ward (teward) wrote :
Revision history for this message
Thomas Ward (teward) wrote :

https://bugs.launchpad.net/ubuntu/+source/fwupd/+bug/1883568 is related, but 1.3.11 does NOT properly fix the TPM PCR0 calculation, per fwupd upstream.

summary: - "TPM PCR0 differs from reconstruction" for device firmware
+ "TPM PCR0 differs from reconstruction" for device firmware errors - not
+ fixed in all releases (1.3.11 in Focal for example)
Changed in fwupd (Ubuntu):
status: New → Fix Released
Changed in fwupd (Ubuntu Focal):
status: New → Triaged
Revision history for this message
Mario Limonciello (superm1) wrote :

focal has 1.7.5-3~20.04.1 now that should have this fixed.

Changed in fwupd (Ubuntu Focal):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.