Bug 2578941

Summary: sbverify returns "Signature verification OK" even if it is not true
Product: [Fedora] Fedora Reporter: Christian Krause <chkr>
Component: sbsigntoolsAssignee: Dominik 'Rathann' Mierzejewski <dominik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 44CC: carlwgeorge, dominik, michel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: sbsigntools-0.9.5-17.fc46 sbsigntools-0.9.5-16.fc44 sbsigntools-0.9.5-17.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-11-23 10:32:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christian Krause 2026-11-20 16:23:51 UTC
I tried to verify the signature on Fedora's shim bootloader. It turned out, that regardless whether I used the correct cert or not, sbverify always returns "Signature verification OK".

Reproducible: Always

Steps to Reproduce:
1. use a cert which is not related to secure boot at all, e.g. /etc/pki/fwupd/LVFS-CA-2025PQ.pem 
2. sbverify --cert /etc/pki/fwupd/LVFS-CA-2025PQ.pem --list /boot/efi/EFI/fedora/shimx64.efi

Actual Results:
Output:
warning: data remaining[908000 vs 1036008]: gaps between PE/COFF sections?
Signature verification OK



Expected Results:
Since the used cert is not within the cert chain of the signatures of shim, sbverify should output a cert verification failure.
 
Output:
warning: data remaining[908000 vs 1036008]: gaps between PE/COFF sections?
Signature verification failed

Only when used with the proper Microsoft certificate (https://github.com/microsoft/secureboot_objects/blob/main/PreSignedObjects/DB/Certificates/MicCorUEFCA2011_2011-06-27.der) it should verify correctly.

Additional Information:
Fixed upstream (https://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git/) in commit https://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git/commit/?id=db731f0c4dd75e112e2abdfbe9443065742e58c3

Most likely, the problem only happens if there are intermediate certs embedded in the PKCS7 signature.

Comment 1 Fedora Update System 2026-11-23 10:26:07 UTC
FEDORA-2026-cce4cbb8ba (sbsigntools-0.9.5-17.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-cce4cbb8ba

Comment 2 Fedora Update System 2026-11-23 10:32:55 UTC
FEDORA-2026-cce4cbb8ba (sbsigntools-0.9.5-17.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2026-11-23 11:25:32 UTC
FEDORA-2026-7a33b636e9 (sbsigntools-0.9.5-16.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-7a33b636e9

Comment 4 Fedora Update System 2026-11-23 11:25:33 UTC
FEDORA-2026-15134e80e0 (sbsigntools-0.9.5-17.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-15134e80e0

Comment 5 Fedora Update System 2026-11-24 02:48:12 UTC
FEDORA-2026-15134e80e0 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-15134e80e0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-15134e80e0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2026-11-24 02:59:07 UTC
FEDORA-2026-7a33b636e9 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-7a33b636e9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-7a33b636e9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2026-11-25 01:52:08 UTC
FEDORA-2026-7a33b636e9 (sbsigntools-0.9.5-16.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2026-11-26 01:57:35 UTC
FEDORA-2026-15134e80e0 (sbsigntools-0.9.5-17.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2026-11-30 23:30:04 UTC
FEDORA-EPEL-2026-be54515398 (sbsigntools-0.9.5-11.el10_4) has been submitted as an update to Fedora EPEL 10.4.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-be54515398

Comment 10 Fedora Update System 2026-11-30 23:30:05 UTC
FEDORA-EPEL-2026-c0c16302af (sbsigntools-0.9.5-4.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-c0c16302af

Comment 11 Fedora Update System 2026-12-01 01:48:37 UTC
FEDORA-EPEL-2026-be54515398 has been pushed to the Fedora EPEL 10.4 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-be54515398

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2026-12-01 01:55:30 UTC
FEDORA-EPEL-2026-c0c16302af has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-c0c16302af

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.