Bug 1647043 (CVE-2018-18751)

Summary: CVE-2018-18751 gettext: double free in default_add_message in read-catalog.c
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abhgupta, apmukher, dbaker, dueno, eng-i18n-bugs, erik-fedora, i18n-bugs, jokerman, nphilipp, petersen, praiskup, rh-spice-bugs, rjones, sthangav, trankin
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-06 00:51:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1647044, 1647045, 1647047, 1647049, 1647050, 1648433, 1829557, 1847114    
Bug Blocks: 1647046    

Description Laura Pardo 2018-11-06 15:20:39 UTC
An issue was discovered in GNU gettext 0.19.8. There is a double free in default_add_message in read-catalog.c, related to an invalid free in po_gram_parse in po-gram-gen.y, as demonstrated by lt-msgfmt. 


References:
https://github.com/CCCCCrash/POCs/tree/master/Bin/Tools-gettext-0.19.8.1/doublefree 
https://github.com/CCCCCrash/POCs/tree/master/Bin/Tools-gettext-0.19.8.1/heapcorruption

Comment 1 Laura Pardo 2018-11-06 15:21:52 UTC
Created gettext tracking bugs for this issue:

Affects: fedora-all [bug 1647044]


Created mingw-gettext tracking bugs for this issue:

Affects: epel-7 [bug 1647045]
Affects: fedora-all [bug 1647047]

Comment 4 Stefan Cornelius 2018-11-09 17:41:01 UTC
Statement:

This issue affects the versions of gettext as shipped with Red Hat Enterprise Linux 7.

This issue did not affect the versions of gettext as shipped with Red Hat Enterprise Linux 5 and 6.

Comment 7 errata-xmlrpc 2019-11-05 21:23:45 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2019:3643 https://access.redhat.com/errata/RHSA-2019:3643

Comment 8 Product Security DevOps Team 2019-11-06 00:51:25 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2018-18751

Comment 9 errata-xmlrpc 2020-03-31 19:27:10 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:1138 https://access.redhat.com/errata/RHSA-2020:1138

Comment 11 errata-xmlrpc 2020-06-10 15:55:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.7 Extended Update Support

Via RHSA-2020:2485 https://access.redhat.com/errata/RHSA-2020:2485

Comment 13 errata-xmlrpc 2020-07-07 10:20:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.6 Extended Update Support

Via RHSA-2020:2846 https://access.redhat.com/errata/RHSA-2020:2846