CVE-2022-4904: Input Validation
A flaw was found in the c-ares package. The aressetsortlist 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.
Other sources
A flaw was found in the c-ares package. The aressetsortlist 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.
In aressetsortlist, it calls configsortlist(..., sortstr) to parse the input str and initialize a sortlist configuration. However, aressetsortlist has not any checks about the validity of the input str. It is very easy to create an arbitrary length stack overflow with the unchecked memcpy(ipbuf, str, q-str); and memcpy(ipbufpfx, str, q-str); statements in the configsortlist call, which could potentially cause severe security impact in practical programs.
— Red Hat
Affected Software
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the vulnerability ID for this flaw in the c-ares package?
The vulnerability ID for this flaw in the c-ares package is CVE-2022-4904.
What is the severity of CVE-2022-4904?
The severity of CVE-2022-4904 is high with a severity value of 8.6.
What is the impact of CVE-2022-4904?
CVE-2022-4904 may cause a denial of service or a limited impact on confidentiality and integrity.
Which software versions are affected by CVE-2022-4904?
The affected software versions include nodejs 18-9020020230327152102.rhel9, nodejs 1:16.19.1-1.el9_2, nodejs 1:16.20.2-1.el9_0, rh-nodejs14 0:3.6-2.el7, and rh-nodejs14-nodejs 0:14.21.3-2.el7.
How do I fix CVE-2022-4904?
To fix CVE-2022-4904, it is recommended to update the affected software versions to the specified remedy versions.