Bug 2136266 (CVE-2022-40303) - CVE-2022-40303 libxml2: integer overflows with XML_PARSE_HUGE
Summary: CVE-2022-40303 libxml2: integer overflows with XML_PARSE_HUGE
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-40303
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2136275 2136274 2136276 2136277 2136300 2136562 2136563 2136564 2136565 2136566
Blocks: 2135075 2169449
TreeView+ depends on / blocked
 
Reported: 2022-10-19 18:50 UTC by Guilherme de Almeida Suckevicz
Modified: 2024-01-24 16:47 UTC (History)
39 users (show)

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.
Clone Of:
Environment:
Last Closed: 2023-01-28 16:22:32 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:8841 0 None None None 2022-12-08 13:22:38 UTC
Red Hat Product Errata RHSA-2023:0173 0 None None None 2023-01-16 09:22:29 UTC
Red Hat Product Errata RHSA-2023:0338 0 None None None 2023-01-23 15:21:56 UTC
Red Hat Product Errata RHSA-2024:0413 0 None None None 2024-01-24 16:47:03 UTC

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


Note You need to log in before you can comment on or make changes to this bug.