Bug 2136266 (CVE-2022-40303)

Summary: CVE-2022-40303 libxml2: integer overflows with XML_PARSE_HUGE
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: adudiak, bdettelb, caswilli, csutherl, dffrench, dhalasz, dking, dkuc, fjansen, gzaronik, jburrell, jclere, jkoehler, jwong, jwon, kaycoth, kshier, micjohns, mturk, ngough, ohudlick, peholase, pjindal, plodge, psegedy, rgodfrey, rh-spice-bugs, stcannon, sthirugn, szappis, tcarlin, tfister, tkasparek, tmeszaro, tsasak, veillard, vkrizan, vkumar, vmugicag
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libxml2 2.10.3 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in libxml2. Parsing a XML document with the XML_PARSE_HUGE option enabled can result in an integer overflow because safety checks were missing in some functions. Also, the xmlParseEntityValue function didn't have any length limitation.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-28 16:22:32 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: 2136275, 2136274, 2136276, 2136277, 2136300, 2136562, 2136563, 2136564, 2136565, 2136566    
Bug Blocks: 2135075, 2169449    

Description Guilherme de Almeida Suckevicz 2022-10-19 18:50:12 UTC
A flaw was found in libxml2. Parsing a XML document with the XML_PARSE_HUGE option enabled can result in an integer overflow because safety checks were missing in some functions. Also, the xmlParseEntityValue function didn't have any length limitation.

Comment 1 Guilherme de Almeida Suckevicz 2022-10-19 19:11:44 UTC
Upstream patch:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/c846986356fc149915a74972bf198ab

Comment 2 Guilherme de Almeida Suckevicz 2022-10-19 19:18:57 UTC
Created libxml2 tracking bugs for this issue:

Affects: fedora-all [bug 2136274]


Created mingw-libxml2 tracking bugs for this issue:

Affects: fedora-all [bug 2136276]


Created qt5-qtwebengine tracking bugs for this issue:

Affects: epel-all [bug 2136275]
Affects: fedora-all [bug 2136277]

Comment 3 Guilherme de Almeida Suckevicz 2022-10-19 21:01:14 UTC
Created perl-Alien-Libxml2 tracking bugs for this issue:

Affects: fedora-all [bug 2136300]

Comment 9 errata-xmlrpc 2022-12-08 13:22:35 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Core Services

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

Comment 11 errata-xmlrpc 2023-01-16 09:22:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:0173 https://access.redhat.com/errata/RHSA-2023:0173

Comment 12 errata-xmlrpc 2023-01-23 15:21:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:0338 https://access.redhat.com/errata/RHSA-2023:0338

Comment 14 Product Security DevOps Team 2023-01-28 16:22:28 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-40303

Comment 17 errata-xmlrpc 2024-01-24 16:46:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:0413 https://access.redhat.com/errata/RHSA-2024:0413