REDHAT-BUG-2209497: Medium severity c-ares c-ares vulnerability
aresinetnetpton() 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 aressetsortlist().
CVE-2023-31130. Moderate. Buffer Underwrite in aresinetnetpton() (https://github.com/c-ares/c-ares/security/advisories/GHSA-x6mf-cxr9-8q6v)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Do not configure sortlist entries that include the IPv6 address/prefix '0::00:00:00/2' (or similarly malformed IPv6 prefixes). Avoid calling ares_set_sortlist() with untrusted or unvalidated IPv6 inputs.
c-ares (sortlist via ares_set_sortlist) sortlist entries / ares_set_sortlist = do not include IPv6 address/prefix '0::00:00:00/2' - Compensating control
Restrict the ability to set resolver sortlist (invocations of ares_set_sortlist()) to trusted administrators and management interfaces; limit remote access to those interfaces and enforce input validation before applying sortlist changes.
- Operational
Audit existing configurations and codepaths that call ares_set_sortlist(). Remove or sanitize any sortlist entries matching '0::00:00:00/2' or other potentially problematic IPv6 prefixes.
- Operational
Monitor upstream c-ares security advisories (e.g., CVE-2023-31130 / GHSA-x6mf-cxr9-8q6v) and apply any vendor patches or fixes when they are published.
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2209497?
The severity of REDHAT-BUG-2209497 is considered critical due to the potential for buffer underflow in specific IPv6 address configurations.
How do I fix REDHAT-BUG-2209497?
To fix REDHAT-BUG-2209497, ensure that the C-ares library is updated to the latest version that addresses this vulnerability.
Is my system affected by REDHAT-BUG-2209497?
Your system may be affected by REDHAT-BUG-2209497 if it is running a vulnerable version of the C-ares library and has specific IPv6 addresses configured.
What are the risks associated with REDHAT-BUG-2209497?
The risks associated with REDHAT-BUG-2209497 include potential exploitation that could lead to unauthorized access or manipulation of affected systems.
What type of vulnerability is REDHAT-BUG-2209497?
REDHAT-BUG-2209497 is a buffer underflow vulnerability that affects the ares_inet_net_pton() function in the C-ares library.