Lucene search

K
amazonAmazonALAS-2024-2399
HistoryJan 03, 2024 - 9:04 p.m.

Medium: c-ares

2024-01-0321:04:00
alas.aws.amazon.com
10
c-ares
cve-2021-3672
cve-2022-4904
cve-2023-31130
vulnerability
input validation
dns
buffer underflow
stack overflow
denial of service
confidentiality
integrity
system availability

CVSS2

6.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS3

8.6

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

AI Score

7.8

Confidence

High

EPSS

0.002

Percentile

52.8%

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  

Additional References

Red Hat: CVE-2021-3672, CVE-2022-4904, CVE-2023-31130

Mitre: CVE-2021-3672, CVE-2022-4904, CVE-2023-31130

CVSS2

6.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS3

8.6

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

AI Score

7.8

Confidence

High

EPSS

0.002

Percentile

52.8%