Bug 2578941 - sbverify returns "Signature verification OK" even if it is not true
Summary: sbverify returns "Signature verification OK" even if it is not true
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sbsigntools
Version: 44
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Dominik 'Rathann' Mierzejewski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-20 16:23 UTC by Christian Krause
Modified: 2026-12-01 01:55 UTC (History)
3 users (show)

Fixed In Version: sbsigntools-0.9.5-17.fc46 sbsigntools-0.9.5-16.fc44 sbsigntools-0.9.5-17.fc45
Clone Of:
Environment:
Last Closed: 2026-11-23 10:32:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources sbsigntools pull-request 10 0 None None None 2026-11-21 11:44:39 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.