<?xml version="1.0" encoding="utf-8"?>
  <?xml-stylesheet type="text/xsl" href="sa-render.xsl"?>
  <update from="huaweicloud.com" type="security" status="stable" version="1">
    <id>HCE2-SA-2024-0162</id>
    <title>An update for libxml2 is now available for HCE 2.0</title>
    <severity>Important</severity>
    <release>HCE 2.0</release>
    <issued date="2024-06-28 03:57:36"/>
    <updated date="2024-06-28 03:57:36"/>
    <references>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2022-29824" id="CVE-2022-29824" title="CVE-2022-29824 Base Score: 6.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2022-40303" id="CVE-2022-40303" title="CVE-2022-40303 Base Score: 7.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-34459" id="CVE-2024-34459" title="CVE-2024-34459 Base Score: 3.3 Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2022-40304" id="CVE-2022-40304" title="CVE-2022-40304 Base Score: 7.8 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H" type="cve"/>
    </references>
    <description>Security Fix(es):

In libxml2 before 2.9.14, several buffer handling functions in buf.c (xmlBuf*) and tree.c (xmlBuffer*) don_x27;t check for integer overflows. This can result in out-of-bounds memory writes. Exploitation requires a victim to open a crafted, multi-gigabyte XML file. Other software using libxml2_x27;s buffer functions, for example libxslt through 1.1.35, is affected as well. (CVE-2022-29824)

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 xmllint (from libxml2) before 2.11.8 and 2.12.x before 2.12.7. Formatting error messages with xmllint --htmlout can result in a buffer over-read in xmlHTMLPrintFileContext in xmllint.c. (CVE-2024-34459)

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)
</description>
    <pkglist>
      <collection short="HCE 2.0" package="libxml2">
        <name>HCE 2.0</name>
        <package arch="aarch64" name="libxml2" version="2.9.12" release="5.r29.hce2">
          <filename>libxml2-2.9.12-5.r29.hce2.aarch64.rpm</filename>
        </package>
        <package arch="aarch64" name="libxml2-devel" version="2.9.12" release="5.r29.hce2">
          <filename>libxml2-devel-2.9.12-5.r29.hce2.aarch64.rpm</filename>
        </package>
        <package arch="noarch" name="libxml2-help" version="2.9.12" release="5.r29.hce2">
          <filename>libxml2-help-2.9.12-5.r29.hce2.noarch.rpm</filename>
        </package>
        <package arch="aarch64" name="python3-libxml2" version="2.9.12" release="5.r29.hce2">
          <filename>python3-libxml2-2.9.12-5.r29.hce2.aarch64.rpm</filename>
        </package>
        <package arch="x86_64" name="libxml2" version="2.9.12" release="5.r29.hce2">
          <filename>libxml2-2.9.12-5.r29.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="libxml2-devel" version="2.9.12" release="5.r29.hce2">
          <filename>libxml2-devel-2.9.12-5.r29.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="python3-libxml2" version="2.9.12" release="5.r29.hce2">
          <filename>python3-libxml2-2.9.12-5.r29.hce2.x86_64.rpm</filename>
        </package>
      </collection>
    </pkglist>
  </update>
