<?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-2023-0242</id>
    <title>An update for c-ares is now available for HCE 2.0</title>
    <severity>Moderate</severity>
    <release>HCE 2.0</release>
    <issued date="2023-08-29 13:10:18"/>
    <updated date="2023-08-29 13:10:18"/>
    <references>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2023-31124" id="CVE-2023-31124" title="CVE-2023-31124 Base Score: 3.7 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2023-31147" id="CVE-2023-31147" title="CVE-2023-31147 Base Score: 6.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N" type="cve"/>
    </references>
    <description>Security Fix(es):

c-ares is an asynchronous resolver library. When cross-compiling c-ares and using the autotools build system, CARES_RANDOM_FILE will not be set, as seen when cross compiling aarch64 android.  This will downgrade to using rand() as a fallback which could allow an attacker to take advantage of the lack of entropy by not using a CSPRNG. This issue was patched in version 1.19.1.
 (CVE-2023-31124)

c-ares is an asynchronous resolver library. When /dev/urandom or RtlGenRandom() are unavailable, c-ares uses rand() to generate random numbers used for DNS query ids. This is not a CSPRNG, and it is also not seeded by srand() so will generate predictable output. Input from the random number generator is fed into a non-compilant RC4 implementation and may not be as strong as the original RC4 implementation. No attempt is made to look for modern OS-provided CSPRNGs like arc4random() that is widely available. This issue has been fixed in version 1.19.1. (CVE-2023-31147)
</description>
    <pkglist>
      <collection short="HCE 2.0" package="c-ares">
        <name>HCE 2.0</name>
        <package arch="aarch64" name="c-ares" version="1.18.1" release="1.r4.hce2">
          <filename>c-ares-1.18.1-1.r4.hce2.aarch64.rpm</filename>
        </package>
        <package arch="aarch64" name="c-ares-devel" version="1.18.1" release="1.r4.hce2">
          <filename>c-ares-devel-1.18.1-1.r4.hce2.aarch64.rpm</filename>
        </package>
        <package arch="noarch" name="c-ares-help" version="1.18.1" release="1.r4.hce2">
          <filename>c-ares-help-1.18.1-1.r4.hce2.noarch.rpm</filename>
        </package>
        <package arch="x86_64" name="c-ares" version="1.18.1" release="1.r4.hce2">
          <filename>c-ares-1.18.1-1.r4.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="c-ares-devel" version="1.18.1" release="1.r4.hce2">
          <filename>c-ares-devel-1.18.1-1.r4.hce2.x86_64.rpm</filename>
        </package>
      </collection>
    </pkglist>
  </update>
