glibc getaddrinfo NPE after NSS module missing gethostbyname3
CVE-2023-4806 Published on September 18, 2023
Glibc: potential use-after-free in getaddrinfo()
A flaw has been identified in glibc. In an extremely rare situation, the getaddrinfo function may access memory that has been freed, resulting in an application crash. This issue is only exploitable when a NSS module implements only the _nss_*_gethostbyname2_r and _nss_*_getcanonname_r hooks without implementing the _nss_*_gethostbyname3_r hook. The resolved name should return a large number of IPv6 and IPv4, and the call to the getaddrinfo function should have the AF_INET6 address family with AI_CANONNAME, AI_ALL and AI_V4MAPPED as flags.
Vulnerability Analysis
CVE-2023-4806 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.
Timeline
Reported to Red Hat.
Made public. 6 days later.
Weakness Type
What is a Dangling pointer Vulnerability?
Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code.
CVE-2023-4806 has been classified to as a Dangling pointer vulnerability or weakness.
Products Associated with CVE-2023-4806
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2023-4806 are published in these products:
Affected Versions
Red Hat Enterprise Linux 8:- Version 0:2.28-225.el8_8.6 and below * is unaffected.
- Version 0:2.28-225.el8_8.6 and below * is unaffected.
- Version 0:2.28-189.8.el8_6 and below * is unaffected.
- Version 0:2.34-100.el9 and below * is unaffected.
- Version 0:2.34-60.el9_2.7 and below * is unaffected.
- Version 0:2.34-100.el9 and below * is unaffected.
- Version 0:2.34-60.el9_2.7 and below * is unaffected.
- Version 0:2.28-189.8.el8_6 and below * is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.