Bug 1788856 (CVE-2019-19956)

Summary: CVE-2019-19956 libxml2: memory leak in xmlParseBalancedChunkMemoryRecover in parser.c
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: atrivizas, c.david86, csutherl, dking, erik-fedora, gzaronik, igor.raits, jclere, jwon, krathod, ktietz, lgao, mbabacek, mturk, myarboro, ohudlick, pjindal, rjones, tvainio, veillard, weli, yozone
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libxml2 2.9.10 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-22 17:20:30 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: 1788857, 1788858, 1788859, 1793000, 1793001, 1921205, 1921206, 1921207    
Bug Blocks: 1788860    

Description Marian Rehak 2020-01-08 09:08:35 UTC
xmlParseBalancedChunkMemoryRecover in parser.c in libxml2 before 2.9.10 has a memory leak related to newDoc->oldNs.

Upstream Fix:

https://gitlab.gnome.org/GNOME/libxml2/commit/5a02583c7e683896d84878bd90641d8d9b0d0549

Comment 1 Marian Rehak 2020-01-08 09:09:23 UTC
Created libxml2 tracking bugs for this issue:

Affects: fedora-30 [bug 1788857]


Created mingw-libxml2 tracking bugs for this issue:

Affects: epel-7 [bug 1788859]
Affects: fedora-all [bug 1788858]

Comment 2 Jan Pokorný [poki] 2020-01-08 13:08:13 UTC
Already fixed where libxml2-2.9.10 is present [*]:

Rawhide/F32:
https://bodhi.fedoraproject.org/updates/FEDORA-2019-44d48a72e5

F31:
https://bodhi.fedoraproject.org/updates/FEDORA-2019-92097b71ff

Do we want/need to address this in F30 as well?


see:
https://gitlab.gnome.org/GNOME/libxml2/commits/41a34e1f4ffae2ce401600dbb5fe43f8fe402641

Comment 3 Huzaifa S. Sidhpurwala 2020-01-20 13:25:28 UTC
Upstream bug: https://gitlab.gnome.org/GNOME/libxml2/issues/82

Comment 7 errata-xmlrpc 2020-06-22 12:26:42 UTC
This issue has been addressed in the following products:

  JBoss Core Services on RHEL 6
  JBoss Core Services on RHEL 7

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

Comment 8 errata-xmlrpc 2020-06-22 13:08:44 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Core Services

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

Comment 9 Product Security DevOps Team 2020-06-22 17:20:30 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-2019-19956

Comment 10 errata-xmlrpc 2020-09-29 20:27:01 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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

Comment 11 errata-xmlrpc 2020-11-04 01:20:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 13 atrivizas 2023-04-12 12:20:14 UTC
(In reply to errata-xmlrpc from comment #10)
> This issue has been addressed in the following products:
> 
>   Red Hat Enterprise Linux 7
> 
> Via RHSA-2020:3996 https://access.redhat.com/errata/RHSA-2020:3996

Is this fix valid for Red Hat Enterprise Linux 7.6 ?