Bug 1178773 - gnupg2: use-after-free in parse_keyserver_line()
Summary: gnupg2: use-after-free in parse_keyserver_line()
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1178774
Blocks: 1178767
TreeView+ depends on / blocked
 
Reported: 2015-01-05 13:21 UTC by Vasyl Kaigorodov
Modified: 2021-02-17 05:52 UTC (History)
5 users (show)

Fixed In Version: GnuPG 2.1.2
Clone Of:
Environment:
Last Closed: 2015-03-09 16:36:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Vasyl Kaigorodov 2015-01-05 13:21:18 UTC
Use-after-free issue was reported in sm/gpgsm.c / parse_keyserver_line() [1]:

sm/gpgsm.c:
...
 839   if (fail)
 840     {
 841       log_info (_("%s:%u: skipping this line\n"), filename, lineno);
 842       keyserver_list_free (server);
 843     }
 844 
 845   return server;
...

If something in the keyserver_line failed, parse_keyserver_line would free 'server', but then return it afterwards, leading to a use-after-free.

Upstream commit that fixes this:
http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commit;h=abd5f6752d693b7f313c19604f0723ecec4d39a6

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773473

Comment 1 Vasyl Kaigorodov 2015-03-09 16:36:50 UTC
Statement:

Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.


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