RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1874062 - removal RPM signature fails - rpmReadSignature failed: signature region 62: tag number mismatch
Summary: removal RPM signature fails - rpmReadSignature failed: signature region 62: t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rpm
Version: 8.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: Florian Festi
QA Contact: Radek Bíba
URL:
Whiteboard:
Depends On:
Blocks: 1894575
TreeView+ depends on / blocked
 
Reported: 2020-08-31 13:25 UTC by James Hartsock
Modified: 2021-05-18 14:50 UTC (History)
3 users (show)

Fixed In Version: rpm-4.14.3-5.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1851508
Environment:
Last Closed: 2021-05-18 14:49:53 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rpm-software-management rpm pull 1330 0 None closed Work around buggy signature region preventing resigning (RhBug:1851508) 2021-02-16 08:41:14 UTC
Red Hat Bugzilla 1851508 0 unspecified CLOSED Unable to remove gpg signatures from certain rpm files, get "ReadSignature failed" 2021-02-22 00:41:40 UTC
Red Hat Knowledge Base (Solution) 5359861 0 None None None 2020-08-31 13:31:58 UTC

Description James Hartsock 2020-08-31 13:25:58 UTC
Description of problem:
rpmsign --delsign fails to remove Signature on certain 3rd party RPMs

Version-Release number of selected component (if applicable):
rpm-sign-4.14.2-37.el8.x86_64

How reproducible:
With proper RPM very

Steps to Reproduce:
1. Download RPM with known issue, like IBM's GPFS or MSFT teams.  Teams is publicly available at:
   https://www.microsoft.com/en-us/microsoft-365/microsoft-teams/download-app#desktopAppDownloadregion

2. Attempt to remove signature

3. Observe return-code, possible error message, or verify signature was removed


Actual RHEL 7 results:

  $ rpmsign --delsign teams-1.3.00.16851-1.x86_64.rpm 
  teams-1.3.00.16851-1.x86_64.rpm:

  $ echo $?
  255


Actual RHEL 8 results:

  $ rpm -qp --info gpfs.msg.en_US-5.0.5-1.noarch.rpm 2>/dev/null | grep ^Signature
  Signature   : RSA/SHA256, Thu 09 Jul 2020 02:25:57 PM CDT, Key ID bdbe75c3efeb6eeb

  $ rpmsign --delsign gpfs.msg.en_US-5.0.5-1.noarch.rpm 
  gpfs.msg.en_US-5.0.5-1.noarch.rpm:
  error: gpfs.msg.en_US-5.0.5-1.noarch.rpm: rpmReadSignature failed: signature region 62: tag number mismatch il 12 ril 7 dl 1279 rdl 16

  $ rpm -qp --info gpfs.msg.en_US-5.0.5-1.noarch.rpm 2>/dev/null | grep ^Signature
  Signature   : RSA/SHA256, Thu 09 Jul 2020 02:25:57 PM CDT, Key ID bdbe75c3efeb6eeb



Expected results, using a previous version of the 3rd party GPFS RPM:

  $ rpm -qp --info ./gpfs.msg.en_US-5.0.3-0.noarch.rpm 2>/dev/null | grep ^Signature
  Signature   : RSA/SHA1, Tue 30 Apr 2019 04:44:05 PM CDT, Key ID 89cc8c5a5c9e89bc

  $ rpmsign --delsign gpfs.msg.en_US-5.0.3-0.noarch.rpm 
  gpfs.msg.en_US-5.0.3-0.noarch.rpm:

  $ rpm -qp --info ./gpfs.msg.en_US-5.0.3-0.noarch.rpm 2>/dev/null | grep ^Signature
  Signature   : (none)


Additional info:

Comment 14 errata-xmlrpc 2021-05-18 14:49:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (rpm bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1606


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