Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Fri, 13 Feb 2015 21:31:22 +0100
From: Hanno Böck <>
Subject: Multiple issues in GnuPG found through keyring fuzzing (TFPA

Advisory published here:

A complex tool like GnuPG has many ways to parse input data. I
previously had fuzzed GnuPG which had led to the detection of a Buffer
Overflow vulnerability in GnuPG and libksba (CVE-2014-9087). Recently I
tried to fuzz less obvious inputs of GnuPG: Keyrings and configuration

GnuPG allows to specify a non-standard keyring on the command line.
Fuzzing GPG with gpg --export --no-default-keyring --keyring [input
keyring] led to the detection of various issues. (Please note that the
keyring parameter needs the full path and does not like filenames with
unusual characters like the ones generated by american fuzzy lop.)

NULL pointer deref in parse_trust (parse-packet.c);a=commit;h=39978487863066e59bb657f5fe4e8baab510da7e

NULL pointer deref in do_key (build-packet.c);a=commit;h=0835d2f44ef62eab51fce6a927908f544e01cf8f

Use after free (build-packet.c);a=commit;h=f0f71a721ccd7ab9e40b8b6b028b59632c0cc648

memcpy with overlapping ranges (keybox_search.c);a=commit;h=2183683bd633818dd031b090b5530951de76f392

All issues found with american fuzzy lop. Fuzzing of the configuration
file parser showed no issues.

While keyrings are usually not user-submitted data, some of these can
be reached through other code paths. None of the issues looks severe,
however judging the exact security would require further analysis.

2015-02-06 Reported three issues to GnuPG developer Werner Koch
2015-02-09 ALl reported issues fixed in git
2015-02-09 Reported one more issue to Werner Koch
2015-02-11 Last issue fixed in git
2015-02-11 Release of GnuPG 2.1.2 containing all fixes

Hanno Böck


Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.