CWE
416
Advisory Published
CVE Published
CVE Published
Updated

CVE-2023-4806: Glibc: potential use-after-free in getaddrinfo()

First published: Wed Sep 06 2023(Updated: )

A flaw was found 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.

Credit: secalert@redhat.com secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
redhat/glibc<0:2.28-225.el8_8.6
0:2.28-225.el8_8.6
redhat/glibc<0:2.34-60.el9_2.7
0:2.34-60.el9_2.7
GNU glibc=2.33
Redhat Enterprise Linux=7.0
Redhat Enterprise Linux=8.0
Redhat Enterprise Linux=9.0
ubuntu/glibc<2.27-3ubuntu1.6+
2.27-3ubuntu1.6+
ubuntu/glibc<2.31-0ubuntu9.14
2.31-0ubuntu9.14
ubuntu/glibc<2.35-0ubuntu3.5
2.35-0ubuntu3.5
ubuntu/glibc<2.37-0ubuntu2.2
2.37-0ubuntu2.2
ubuntu/glibc<2.38-1ubuntu5
2.38-1ubuntu5
ubuntu/glibc<2.23-0ubuntu11.3+
2.23-0ubuntu11.3+
debian/glibc<=2.28-10+deb10u1<=2.28-10+deb10u2<=2.31-13+deb11u8<=2.31-13+deb11u9
2.36-9+deb12u4
2.36-9+deb12u6
2.37-18
Redhat Codeready Linux Builder Eus=9.2
Redhat Codeready Linux Builder Eus For Power Little Endian=9.0_ppc64le
Redhat Codeready Linux Builder Eus For Power Little Endian Eus=9.2_ppc64le
Redhat Codeready Linux Builder For Arm64=9.0_aarch64
Redhat Codeready Linux Builder For Arm64 Eus=9.2_aarch64
Redhat Codeready Linux Builder For Ibm Z Systems=9.0_s390x
Redhat Codeready Linux Builder For Ibm Z Systems Eus=9.2_s390x
Redhat Enterprise Linux Eus=8.8
Redhat Enterprise Linux Eus=9.2
Redhat Enterprise Linux For Arm 64=9.0_aarch64
Redhat Enterprise Linux For Arm 64 Eus=9.2_aarch64
Redhat Enterprise Linux For Ibm Z Systems=8.0_s390x
Redhat Enterprise Linux For Ibm Z Systems Eus=8.8_s390x
Redhat Enterprise Linux For Ibm Z Systems Eus S390x=9.2
Redhat Enterprise Linux For Ibm Z Systems S390x=9.2
Redhat Enterprise Linux For Power Little Endian=8.0_ppc64le
Redhat Enterprise Linux For Power Little Endian=9.2_ppc64le
Redhat Enterprise Linux For Power Little Endian Eus=8.8_ppc64le
Redhat Enterprise Linux For Power Little Endian Eus=9.2_ppc64le
Redhat Enterprise Linux Server Aus=9.2
Redhat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions=9.2_ppc64le
Redhat Enterprise Linux Tus=8.8
Fedoraproject Fedora=37
Fedoraproject Fedora=38
Fedoraproject Fedora=39

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is CVE-2023-4806?

    CVE-2023-4806 is a vulnerability found in glibc that allows the getaddrinfo function to access freed memory, causing application crashes.

  • What is the severity of CVE-2023-4806?

    CVE-2023-4806 has a severity level of high (7.5).

  • Which software versions are affected by CVE-2023-4806?

    CVE-2023-4806 affects GNU glibc version 2.33, Redhat Enterprise Linux versions 7.0, 8.0, and 9.0.

  • How can CVE-2023-4806 be exploited?

    CVE-2023-4806 can be exploited when an NSS module implements only the _nss_*_gethostbyname2_r and _nss_*_getcanonname_r hooks without implementation.

  • How can I fix CVE-2023-4806?

    To fix CVE-2023-4806, it is recommended to upgrade to the patched version of GNU glibc or Redhat Enterprise Linux.

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203