CVE-2022-4904: Input Validation

Published Dec 13, 2022
·
Updated

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

21 affected componentsFixes available
redhat/nodejs<18-9020020230327152102.rhel9
18-9020020230327152102.rhel9
redhat/nodejs<1:16.19.1-1.el9_2
1:16.19.1-1.el9_2
redhat/nodejs<1:16.20.2-1.el9_0
1:16.20.2-1.el9_0
redhat/rh-nodejs14<0:3.6-2.el7
0:3.6-2.el7
redhat/rh-nodejs14-nodejs<0:14.21.3-2.el7
0:14.21.3-2.el7
C-ares Project C-ares<1.19.0
redhat Software Collections
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
Fedoraproject Fedora=36
Microsoft cbl2 c-ares 1.19.0-1
Microsoft azl3 grpc 1.62.0-2
Microsoft cm1 c-ares 1.19.0-1
Microsoft cbl2 rubygem-mini_portile2 2.8.0-1
Microsoft cbl2 nodejs 16.20.1-2
Microsoft cbl2 grpc 1.42.0-11
Microsoft cm1 nodejs 14.21.3-1
Microsoft cbl2 python-gevent 21.1.2-3
Microsoft azl3 grpc 1.42.0-7
Microsoft cm1 grpc 1.35.0-9
Microsoft cm1 python-gevent 1.3.6-5

Event History

Dec 13, 2022
CVE Published
12:00 AM
Feb 9, 2023
Data Sourced
via Red Hat·03:33 PM
DescriptionSeverityAffected Software
Mar 6, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

What is the severity of CVE-2022-4904?

The severity of CVE-2022-4904 is high with a severity value of 8.6.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203