Bug 2044455 (CVE-2021-46143)

Summary: CVE-2021-46143 expat: Integer overflow in doProlog in xmlparse.c
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
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, adudiak, aprice, bdettelb, caswilli, cschalle, csutherl, dfreiber, doconnor, drow, erack, fhrdina, fjansen, gotiwari, gzaronik, hkataria, jburrell, jclere, jdobes, jforrest, jhorak, jkoehler, jmitchel, jorton, jsamir, jtanner, jwong, jwon, kaycoth, kholdawa, krathod, kshier, lcouzens, lphiri, micjohns, mpierce, mskarbek, mturk, mvyas, nobody, oezr, omaciel, orabin, pjindal, plodge, psegedy, rblanco, rcritten, stcannon, sthirugn, stransky, szappis, tcarlin, teagle, tfister, tkasparek, tkorbar, tpopela, tsasak, vkrizan, vkumar, vmugicag, yguenane
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: expat 2.4.3 Doc Type: If docs needed, set a value
Doc Text:
expat (libexpat) is susceptible to a software flaw that causes process interruption. When processing a large number of prefixed XML attributes on a single tag can libexpat can terminate unexpectedly due to integer overflow. The highest threat from this vulnerability is to availability, confidentiality and integrity.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-05 01:16:20 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: 2053208, 2044456, 2052244, 2052245, 2052246, 2052247, 2052248, 2052249, 2052250, 2058557, 2058558, 2058559, 2058560, 2058561, 2058562, 2060192, 2060197, 2060199, 2060203, 2060208, 2060210    
Bug Blocks: 2044492    

Description Pedro Sampaio 2022-01-24 16:27:57 UTC
In doProlog in xmlparse.c in Expat (aka libexpat) before 2.4.3, an integer overflow exists for m_groupSize. 

References:

https://github.com/libexpat/libexpat/issues/532
https://github.com/libexpat/libexpat/pull/538
http://www.openwall.com/lists/oss-security/2022/01/17/3

Comment 1 Pedro Sampaio 2022-01-24 16:28:16 UTC
Created expat tracking bugs for this issue:

Affects: fedora-all [bug 2044456]

Comment 8 errata-xmlrpc 2022-03-16 16:16:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 9 errata-xmlrpc 2022-03-28 11:49:14 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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

Comment 10 Product Security DevOps Team 2022-05-05 01:16:17 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-2021-46143

Comment 11 errata-xmlrpc 2022-10-26 20:07:24 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 12 errata-xmlrpc 2022-10-26 20:20:48 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 13 errata-xmlrpc 2022-11-08 10:11:07 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 15 errata-xmlrpc 2025-12-04 23:08:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Via RHSA-2025:22785 https://access.redhat.com/errata/RHSA-2025:22785

Comment 16 errata-xmlrpc 2025-12-08 20:27:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

Via RHSA-2025:22871 https://access.redhat.com/errata/RHSA-2025:22871