Bug 1204366 (CVE-2022-40303) - VUL-0: CVE-2022-40303: libxml2: Fix integer overflows with XML_PARSE_HUGE
Summary: VUL-0: CVE-2022-40303: libxml2: Fix integer overflows with XML_PARSE_HUGE
Status: RESOLVED FIXED
Alias: CVE-2022-40303
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/345323/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-40303:7.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-17 09:08 UTC by Robert Frohl
Modified: 2023-04-06 15:31 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Frohl 2022-10-17 09:08:42 UTC
Fix integer overflows with XML_PARSE_HUGE

Also impose size limits when XML_PARSE_HUGE is set. Limit size of names
to XML_MAX_TEXT_LENGTH (10 million bytes) and other content to
XML_MAX_HUGE_LENGTH (1 billion bytes).

Move some the length checks to the end of the respective loop to make
them strict.

xmlParseEntityValue didn't have a length limitation at all. But without
XML_PARSE_HUGE, this should eventually trigger an error in xmlGROW.

Thanks to Maddie Stone working with Google Project Zero for the report!

https://gitlab.gnome.org/GNOME/libxml2/-/commit/ffaec75809a315457891a0e54f8828bc6e056067
Comment 2 Robert Frohl 2022-10-17 12:40:43 UTC
tracking as affected:

- SUSE:SLE-12-SP2:Update/libxml2
- SUSE:SLE-15:Update/libxml2
- SUSE:SLE-15-SP4:Update/libxml2
Comment 6 David Anes 2022-10-17 13:50:33 UTC
All done. Sending back to security.
Comment 7 OBSbugzilla Bot 2022-10-17 14:15:03 UTC
This is an autogenerated message for OBS integration:
This bug (1204366) was mentioned in
https://build.opensuse.org/request/show/1014116 Factory / libxml2
Comment 8 Swamp Workflow Management 2022-10-21 19:18:46 UTC
SUSE-SU-2022:3692-1: An update that fixes two vulnerabilities is now available.

Category: security (important)
Bug References: 1204366,1204367
CVE References: CVE-2022-40303,CVE-2022-40304
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    libxml2-2.9.14-150400.5.10.1, libxml2-python-2.9.14-150400.5.10.1
SUSE Linux Enterprise Module for Basesystem 15-SP4 (src):    libxml2-2.9.14-150400.5.10.1, libxml2-python-2.9.14-150400.5.10.1
SUSE Linux Enterprise Micro 5.3 (src):    libxml2-2.9.14-150400.5.10.1, libxml2-python-2.9.14-150400.5.10.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 9 Swamp Workflow Management 2022-10-25 13:27:47 UTC
SUSE-SU-2022:3717-1: An update that fixes three vulnerabilities is now available.

Category: security (important)
Bug References: 1201978,1204366,1204367
CVE References: CVE-2016-3709,CVE-2022-40303,CVE-2022-40304
JIRA References: 
Sources used:
SUSE OpenStack Cloud Crowbar 9 (src):    libxml2-2.9.4-46.59.2, python-libxml2-2.9.4-46.59.3
SUSE OpenStack Cloud 9 (src):    libxml2-2.9.4-46.59.2, python-libxml2-2.9.4-46.59.3
SUSE Linux Enterprise Software Development Kit 12-SP5 (src):    libxml2-2.9.4-46.59.2
SUSE Linux Enterprise Server for SAP 12-SP4 (src):    libxml2-2.9.4-46.59.2, python-libxml2-2.9.4-46.59.3
SUSE Linux Enterprise Server 12-SP5 (src):    libxml2-2.9.4-46.59.2, python-libxml2-2.9.4-46.59.3
SUSE Linux Enterprise Server 12-SP4-LTSS (src):    libxml2-2.9.4-46.59.2, python-libxml2-2.9.4-46.59.3
SUSE Linux Enterprise Server 12-SP3-BCL (src):    libxml2-2.9.4-46.59.2, python-libxml2-2.9.4-46.59.3
SUSE Linux Enterprise Server 12-SP2-BCL (src):    libxml2-2.9.4-46.59.2, python-libxml2-2.9.4-46.59.3

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 10 Swamp Workflow Management 2022-11-04 17:28:33 UTC
SUSE-SU-2022:3871-1: An update that fixes three vulnerabilities is now available.

Category: security (important)
Bug References: 1201978,1204366,1204367
CVE References: CVE-2016-3709,CVE-2022-40303,CVE-2022-40304
JIRA References: 
Sources used:
openSUSE Leap Micro 5.2 (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
openSUSE Leap 15.4 (src):    python-libxml2-python-2.9.7-150000.3.51.1
openSUSE Leap 15.3 (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Manager Server 4.1 (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Manager Retail Branch Server 4.1 (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Manager Proxy 4.1 (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise Server for SAP 15-SP2 (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise Server for SAP 15-SP1 (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise Server for SAP 15 (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise Server 15-SP2-LTSS (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise Server 15-SP2-BCL (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise Server 15-SP1-LTSS (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise Server 15-SP1-BCL (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise Server 15-LTSS (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise Module for Python2 15-SP3 (src):    python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise Module for Basesystem 15-SP3 (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise Micro 5.2 (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise Micro 5.1 (src):    libxml2-2.9.7-150000.3.51.1
SUSE Linux Enterprise High Performance Computing 15-SP2-LTSS (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise High Performance Computing 15-SP2-ESPOS (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise High Performance Computing 15-SP1-LTSS (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise High Performance Computing 15-SP1-ESPOS (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise High Performance Computing 15-LTSS (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Linux Enterprise High Performance Computing 15-ESPOS (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Enterprise Storage 7 (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE Enterprise Storage 6 (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1
SUSE CaaS Platform 4.0 (src):    libxml2-2.9.7-150000.3.51.1, python-libxml2-python-2.9.7-150000.3.51.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.