Bug 1292687

Summary: gpgv2 aborts in keyid.c:342:keystrlen
Product: [Fedora] Fedora Reporter: Zbigniew JÄ™drzejewski-Szmek <zbyszek>
Component: gnupg2Assignee: Tomas Mraz <tmraz>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: bcl, jamielinux, sethdjennings, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gnupg2-2.1.13-1.fc24.x86_64 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-02 12:16:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zbigniew Jędrzejewski-Szmek 2015-12-18 04:50:28 UTC
Description of problem:
This is from a package build, see https://bugzilla.redhat.com/show_bug.cgi?id=1283296#c11.

$ /usr/bin/gpgv2 --quiet --keyring gpgkey-D3994701.gpg pam_u2f-1.0.3.tar.gz.sig pam_u2f-1.0.3.tar.gz
gpgv: keyblock resource '/home/test/.gnupg/gpgkey-D3994701.gpg': No such file or directory
gpgv: Ohhhh jeeee: ... this is a bug (keyid.c:342:keystrlen)
Aborted (core dumped)

File used in the test are available in http://in.waw.pl/~zbyszek/fedora/gpgv-crash/. A coredump is also there.

Version-Release number of selected component (if applicable):
gnupg2-2.1.10-1.fc24.x86_64

How reproducible:
100%, on a few different machines.

Steps to Reproduce:
1. Run command above.

Comment 1 Jan Kurik 2016-02-24 14:09:25 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 2 Tomas Mraz 2016-09-02 12:16:50 UTC
According to my testing this is fixed in the current gnupg2 on Fedora.