Bug 2056354 (CVE-2022-25314)

Summary: CVE-2022-25314 expat: Integer overflow in copyString()
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abrt-devel-list, bdettelb, caswilli, csutherl, dhalasz, erack, erik-fedora, fhrdina, fjansen, gzaronik, jburrell, jclere, jhorak, jkoehler, jorton, jwong, jwon, kaycoth, manisandro, micjohns, mturk, pjindal, psegedy, rcritten, rh-bugzilla, rh-spice-bugs, rjones, sthirugn, stransky, szappis, tcarlin, tfister, tkasparek, tkorbar, tpopela, tsasak, vkrizan, vkumar, vmugicag
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: expat 2.4.5 Doc Type: If docs needed, set a value
Doc Text:
An integer overflow flaw was found in expat. This issue affects the encoding name parameter at the parser creation time, which is often hard-coded (rather than user input), takes a value in the gigabytes to trigger, and on a 64-bit machine. This flaw can cause a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-03 23:03:19 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: 2058345, 2056355, 2056356, 2057097, 2057098, 2057099, 2057100, 2057432, 2058346, 2070460, 2078826, 2078933    
Bug Blocks: 2056373    

Description Avinash Hanwate 2022-02-21 04:45:04 UTC
In Expat (aka libexpat) before 2.4.5, there is an integer overflow in copyString.

https://github.com/libexpat/libexpat/pull/560
http://www.openwall.com/lists/oss-security/2022/02/19/1

Comment 1 Avinash Hanwate 2022-02-21 04:45:40 UTC
Created expat tracking bugs for this issue:

Affects: fedora-all [bug 2056356]


Created mingw-expat tracking bugs for this issue:

Affects: fedora-all [bug 2056355]

Comment 2 Mauro Matteo Cascella 2022-02-22 17:57:12 UTC
Upstream commit:
https://github.com/libexpat/libexpat/commit/efcb347440ade24b9f1054671e6bd05e60b4cafd

Comment 5 Mauro Matteo Cascella 2022-02-23 11:52:01 UTC
Created xmlrpc-c tracking bugs for this issue:

Affects: fedora-all [bug 2057432]

Comment 10 errata-xmlrpc 2022-06-28 14:58:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:5244 https://access.redhat.com/errata/RHSA-2022:5244

Comment 11 errata-xmlrpc 2022-06-28 18:31:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:5314 https://access.redhat.com/errata/RHSA-2022:5314

Comment 12 errata-xmlrpc 2022-10-26 20:08:17 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Core Services

Via RHSA-2022:7144 https://access.redhat.com/errata/RHSA-2022:7144

Comment 13 errata-xmlrpc 2022-10-26 20:21:45 UTC
This issue has been addressed in the following products:

  JBoss Core Services on RHEL 7
  JBoss Core Services for RHEL 8

Via RHSA-2022:7143 https://access.redhat.com/errata/RHSA-2022:7143

Comment 15 errata-xmlrpc 2022-11-08 10:34:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7811 https://access.redhat.com/errata/RHSA-2022:7811

Comment 16 Product Security DevOps Team 2022-12-03 23:03:14 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-2022-25314