Debian Security Advisory

DLA-3172-1 libxml2 -- LTS security update

Date Reported:
30 Oct 2022
Affected Packages:
Security database references:
In the Debian bugtracking system: Bug 1022224, Bug 1022225.
In Mitre's CVE dictionary: CVE-2022-40303, CVE-2022-40304.
More information:

It was discovered that libxml2, the GNOME XML library, was vulnerable to integer overflows and memory corruption.

  • CVE-2022-40303

    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 did not have any length limitation.

  • CVE-2022-40304

    When a reference cycle is detected in the XML entity cleanup function the XML entity data can be stored in a dictionary. In this case, the dictionary becomes corrupted resulting in logic errors, including memory errors like double free.

For Debian 10 buster, these problems have been fixed in version 2.9.4+dfsg1-7+deb10u5.

We recommend that you upgrade your libxml2 packages.

For the detailed security status of libxml2 please refer to its security tracker page at:

Further information about Debian LTS security advisories, how to apply these updates to your system and frequently asked questions can be found at: