ALAS-2024-2399

Related Vulnerabilities: CVE-2021-3672   CVE-2022-4904   CVE-2023-31130  

A flaw was found in c-ares library, where a missing input validation check of host names returned by DNS (Domain Name Servers) can lead to output of wrong hostnames which might potentially lead to Domain Hijacking. The highest threat from this vulnerability is to confidentiality and integrity as well as system availability. (CVE-2021-3672) A flaw was found in the c-ares package. The ares_set_sortlist is missing checks about the validity of the input string, which allows a possible arbitrary length stack overflow. This issue may cause a denial of service or a limited impact on confidentiality and integrity. (CVE-2022-4904) ares_inet_net_pton() is vulnerable to a buffer underflow for certain ipv6 addresses, in particular "0::00:00:00/2" was found to cause an issue. C-ares only uses this function internally for configuration purposes which would require an administrator to configure such an address via ares_set_sortlist(). However, users may externally use ares_inet_net_pton() for other purposes and thus be vulnerable to more severe issues. (CVE-2023-31130)

ALAS-2024-2399


Amazon Linux 2 Security Advisory: ALAS-2024-2399
Advisory Release Date: 2024-01-03 21:04 Pacific
Advisory Updated Date: 2024-01-09 17:51 Pacific
Severity: Medium

Issue Overview:

A flaw was found in c-ares library, where a missing input validation check of host names returned by DNS (Domain Name Servers) can lead to output of wrong hostnames which might potentially lead to Domain Hijacking. The highest threat from this vulnerability is to confidentiality and integrity as well as system availability. (CVE-2021-3672)

A flaw was found in the c-ares package. The ares_set_sortlist is missing checks about the validity of the input string, which allows a possible arbitrary length stack overflow. This issue may cause a denial of service or a limited impact on confidentiality and integrity. (CVE-2022-4904)

ares_inet_net_pton() is vulnerable to a buffer underflow for certain ipv6 addresses, in particular "0::00:00:00/2" was found to cause an issue. C-ares only uses this function internally for configuration purposes which would require an administrator to configure such an address via ares_set_sortlist().

However, users may externally use ares_inet_net_pton() for other purposes and thus be vulnerable to more severe issues. (CVE-2023-31130)


Affected Packages:

c-ares


Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.


Issue Correction:
"Run yum update c-ares to update your system.
"

New Packages:
aarch64:
    c-ares-1.10.0-3.amzn2.0.4.aarch64
    c-ares-devel-1.10.0-3.amzn2.0.4.aarch64
    c-ares-debuginfo-1.10.0-3.amzn2.0.4.aarch64

i686:
    c-ares-1.10.0-3.amzn2.0.4.i686
    c-ares-devel-1.10.0-3.amzn2.0.4.i686
    c-ares-debuginfo-1.10.0-3.amzn2.0.4.i686

src:
    c-ares-1.10.0-3.amzn2.0.4.src

x86_64:
    c-ares-1.10.0-3.amzn2.0.4.x86_64
    c-ares-devel-1.10.0-3.amzn2.0.4.x86_64
    c-ares-debuginfo-1.10.0-3.amzn2.0.4.x86_64