Amazon Linux AMI update for libxml2



Risk High
Patch available YES
Number of vulnerabilities 4
CVE-ID CVE-2022-23308
CVE-2022-29824
CVE-2022-40303
CVE-2022-40304
CWE-ID CWE-416
CWE-190
CWE-399
Exploitation vector Network
Public exploit N/A
Vulnerable software
Amazon Linux AMI
Operating systems & Components / Operating system

libxml2
Operating systems & Components / Operating system package or component

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains information about 4 vulnerabilities.

1) Use-after-free

EUVDB-ID: #VU60922

Risk: High

CVSSv4.0: 8.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2022-23308

CWE-ID: CWE-416 - Use After Free

Exploit availability: No

Description

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a use-after-free error when processing ID and IDREF attributes in valid.c. A remote attacker can pass specially crafted XML input to the application, trigger a use-after-free error and crash the application or execute arbitrary code on the system.

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.

Mitigation

Update the affected packages:

aarch64:
    python3-libxml2-debuginfo-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-debugsource-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-static-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-devel-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-debuginfo-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-2.10.3-2.amzn2023.0.1.aarch64
    python3-libxml2-2.10.3-2.amzn2023.0.1.aarch64

src:
    libxml2-2.10.3-2.amzn2023.0.1.src

x86_64:
    libxml2-devel-2.10.3-2.amzn2023.0.1.x86_64
    python3-libxml2-debuginfo-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-debuginfo-2.10.3-2.amzn2023.0.1.x86_64
    python3-libxml2-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-debugsource-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-static-2.10.3-2.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

libxml2: before 2.10.3-2

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-096.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Integer overflow

EUVDB-ID: #VU62741

Risk: High

CVSSv4.0: 8.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2022-29824

CWE-ID: CWE-190 - Integer overflow

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to integer overflow in several buffer handling functions in buf.c (xmlBuf*) and tree.c (xmlBuffer*). A remote attacker can pass specially crafted multi-gigabyte XML file to the application, trigger integer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Update the affected packages:

aarch64:
    python3-libxml2-debuginfo-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-debugsource-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-static-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-devel-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-debuginfo-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-2.10.3-2.amzn2023.0.1.aarch64
    python3-libxml2-2.10.3-2.amzn2023.0.1.aarch64

src:
    libxml2-2.10.3-2.amzn2023.0.1.src

x86_64:
    libxml2-devel-2.10.3-2.amzn2023.0.1.x86_64
    python3-libxml2-debuginfo-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-debuginfo-2.10.3-2.amzn2023.0.1.x86_64
    python3-libxml2-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-debugsource-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-static-2.10.3-2.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

libxml2: before 2.10.3-2

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-096.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

3) Integer overflow

EUVDB-ID: #VU68828

Risk: High

CVSSv4.0: 8.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2022-40303

CWE-ID: CWE-190 - Integer overflow

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to integer overflow in parse.c when processing content when XML_PARSE_HUGE is set. A remote attacker can pass specially crafted data to the application, trigger an integer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Update the affected packages:

aarch64:
    python3-libxml2-debuginfo-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-debugsource-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-static-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-devel-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-debuginfo-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-2.10.3-2.amzn2023.0.1.aarch64
    python3-libxml2-2.10.3-2.amzn2023.0.1.aarch64

src:
    libxml2-2.10.3-2.amzn2023.0.1.src

x86_64:
    libxml2-devel-2.10.3-2.amzn2023.0.1.x86_64
    python3-libxml2-debuginfo-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-debuginfo-2.10.3-2.amzn2023.0.1.x86_64
    python3-libxml2-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-debugsource-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-static-2.10.3-2.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

libxml2: before 2.10.3-2

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-096.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

4) Resource management error

EUVDB-ID: #VU68829

Risk: Medium

CVSSv4.0: 6.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2022-40304

CWE-ID: CWE-399 - Resource Management Errors

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists in entities.c due to the way libxml2 handles reference cycles. The library does not anticipate that entity content can be allocated from a dict and clears it upon reference cycle detection by setting its first byte to zero. This can lead to memory corruption  issues, such as double free errors and result in a denial of service.

Mitigation

Update the affected packages:

aarch64:
    python3-libxml2-debuginfo-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-debugsource-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-static-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-devel-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-debuginfo-2.10.3-2.amzn2023.0.1.aarch64
    libxml2-2.10.3-2.amzn2023.0.1.aarch64
    python3-libxml2-2.10.3-2.amzn2023.0.1.aarch64

src:
    libxml2-2.10.3-2.amzn2023.0.1.src

x86_64:
    libxml2-devel-2.10.3-2.amzn2023.0.1.x86_64
    python3-libxml2-debuginfo-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-debuginfo-2.10.3-2.amzn2023.0.1.x86_64
    python3-libxml2-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-debugsource-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-2.10.3-2.amzn2023.0.1.x86_64
    libxml2-static-2.10.3-2.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

libxml2: before 2.10.3-2

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-096.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###