Bug 2056350 (CVE-2022-25313)

Summary: CVE-2022-25313 expat: Stack exhaustion in doctype parsing
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:
A flaw was found in expat. A stack exhaustion in doctype parsing could be triggered by a file with a large number of opening braces, resulting in a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-03 22:33:18 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: 2058343, 2056351, 2056352, 2057092, 2057093, 2057094, 2057095, 2057433, 2058157, 2058158, 2058159, 2058160, 2058161, 2058162, 2058344, 2070459, 2078824, 2078932    
Bug Blocks: 2056373    

Description Avinash Hanwate 2022-02-21 04:38:52 UTC
In Expat (aka libexpat) before 2.4.5, an attacker can trigger stack exhaustion in build_model via a large nesting depth in the DTD element.

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

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

Affects: fedora-all [bug 2056351]


Created mingw-expat tracking bugs for this issue:

Affects: fedora-all [bug 2056352]

Comment 2 Mauro Matteo Cascella 2022-02-22 17:50:25 UTC
Upstream commit:
https://github.com/libexpat/libexpat/commit/9b4ce651b26557f16103c3a366c91934ecd439ab

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

Affects: fedora-all [bug 2057433]

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:09 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:41 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:07 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 22:33: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-25313