ALAS2-2023-1996


Amazon Linux 2 Security Advisory: ALAS-2023-1996
Advisory Release Date: 2023-03-17 16:34 Pacific
Advisory Updated Date: 2023-03-21 23:25 Pacific
Severity: Medium

Issue Overview:

An issue was discovered in libxml2 before 2.10.3. When parsing a multi-gigabyte XML document with the XML_PARSE_HUGE parser option enabled, several integer counters can overflow. This results in an attempt to access an array at a negative 2GB offset, typically leading to a segmentation fault. (CVE-2022-40303)

An issue was discovered in libxml2 before 2.10.3. Certain invalid XML entity definitions can corrupt a hash table key, potentially leading to subsequent logic errors. In one case, a double-free can be provoked. (CVE-2022-40304)


Affected Packages:

libxml2


Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.


Issue Correction:
Run yum update libxml2 to update your system.

New Packages:
aarch64:
    libxml2-2.9.1-6.amzn2.5.7.aarch64
    libxml2-devel-2.9.1-6.amzn2.5.7.aarch64
    libxml2-static-2.9.1-6.amzn2.5.7.aarch64
    libxml2-python-2.9.1-6.amzn2.5.7.aarch64
    libxml2-debuginfo-2.9.1-6.amzn2.5.7.aarch64

i686:
    libxml2-2.9.1-6.amzn2.5.7.i686
    libxml2-devel-2.9.1-6.amzn2.5.7.i686
    libxml2-static-2.9.1-6.amzn2.5.7.i686
    libxml2-python-2.9.1-6.amzn2.5.7.i686
    libxml2-debuginfo-2.9.1-6.amzn2.5.7.i686

src:
    libxml2-2.9.1-6.amzn2.5.7.src

x86_64:
    libxml2-2.9.1-6.amzn2.5.7.x86_64
    libxml2-devel-2.9.1-6.amzn2.5.7.x86_64
    libxml2-static-2.9.1-6.amzn2.5.7.x86_64
    libxml2-python-2.9.1-6.amzn2.5.7.x86_64
    libxml2-debuginfo-2.9.1-6.amzn2.5.7.x86_64