CVE Vulnerabilities

CVE-2023-29469

Double Free

Published: Apr 24, 2023 | Modified: Feb 04, 2025
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
5.9 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

An issue was discovered in libxml2 before 2.10.4. When hashing empty dict strings in a crafted XML document, xmlDictComputeFastKey in dict.c can produce non-deterministic values, leading to various logic and memory errors, such as a double free. This behavior occurs because there is an attempt to use the first byte of an empty string, and any value is possible (not solely the 0 value).

Weakness

The product calls free() twice on the same memory address.

Affected Software

NameVendorStart VersionEnd Version
Libxml2Xmlsoft*2.10.4 (excluding)
Red Hat Enterprise Linux 8RedHatlibxml2-0:2.9.7-16.el8_8.1*
Red Hat Enterprise Linux 8RedHatlibxml2-0:2.9.7-16.el8_8.1*
Red Hat Enterprise Linux 8.6 Extended Update SupportRedHatlibxml2-0:2.9.7-13.el8_6.4*
Red Hat Enterprise Linux 9RedHatlibxml2-0:2.9.13-3.el9_2.1*
Red Hat Enterprise Linux 9RedHatlibxml2-0:2.9.13-3.el9_2.1*
Text-Only JBCSRedHatlibxml2*
Libxml2Ubuntubionic*
Libxml2Ubuntuesm-infra-legacy/trusty*
Libxml2Ubuntuesm-infra/bionic*
Libxml2Ubuntuesm-infra/focal*
Libxml2Ubuntuesm-infra/xenial*
Libxml2Ubuntufocal*
Libxml2Ubuntujammy*
Libxml2Ubuntukinetic*
Libxml2Ubuntulunar*
Libxml2Ubuntutrusty*
Libxml2Ubuntutrusty/esm*
Libxml2Ubuntuxenial*

Potential Mitigations

References