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

Published Sep 6, 2023
·
Updated

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 nssgethostbyname2r and nssgetcanonnamer hooks without implementing the nssgethostbyname3r hook. The resolved name should return a large number of IPv6 and IPv4, and the call to the getaddrinfo function should have the AFINET6 address family with AICANONNAME, AIALL and AIV4MAPPED as flags.

Other sources

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 nssgethostbyname2r and nssgetcanonnamer hooks without implementing the nssgethostbyname3r hook. The resolved name should return a large number of IPv6 and IPv4, and the call to the getaddrinfo function should have the AFINET6 address family with AICANONNAME, AIALL and AIV4MAPPED as flags.

Ubuntu

Glibc: potential use-after-free in getaddrinfo()

Microsoft

GNU glibc is vulnerable to a denial of service, caused by a use-after-free flaw in the getaddrinfo() function. By sending a specially crafted request, a remote attacker could exploit this vulnerability to cause the application to crash.

IBM

In an extremely rare situation, the getaddrinfo function in glibc may access memory that has already been freed, resulting in an application crash.

This issue is only exploitable when a NSS module implements only the nssgethostbyname2r hook without implementing the nssgethostbyname3r hook. There are no known modules that are implemented in this way.

In addition to that condition, the resolved name should return a large number of IPv6 as well as IPv4 and the call to the getaddrinfo function should have AFINET6 with AICANONNAME, AIALL and AIV4MAPPED as flags.

Reference: https://sourceware.org/bugzilla/showbug.cgi?id=30843

Red Hat

Affected Software

42 affected componentsFixes available
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
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.38-1ubuntu5
2.38-1ubuntu5
ubuntu/glibc<2.23-0ubuntu11.3+
2.23-0ubuntu11.3+
debian/glibc<=2.31-13+deb11u10
2.36-9+deb12u72.39-6
GNU glibc=2.33
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
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
IBM QRadar Network Packet Capture<=7.5.0 - 7.5.0 Update Package 7
Microsoft azl3 glibc 2.38-11
Microsoft cbl2 glibc 2.35-6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/glibc to a version that resolves this vulnerability.

    Fixed in 0:2.28-225.el8_8.6
  2. Upgrade

    Upgrade redhat/glibc to a version that resolves this vulnerability.

    Fixed in 0:2.34-60.el9_2.7
  3. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.27-3ubuntu1.6+
  4. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.31-0ubuntu9.14
  5. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.35-0ubuntu3.5
  6. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.37-0ubuntu2.2
  7. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.38-1ubuntu5
  8. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.23-0ubuntu11.3+
  9. Upgrade

    Upgrade debian/glibc to a version that resolves this vulnerability.

    Fixed in 2.36-9+deb12u7Fixed in 2.39-6

Event History

Sep 6, 2023
Data Sourced
via Red Hat·08:48 PM
DescriptionSeverityAffected Software
Sep 12, 2023
CVE Published
12:00 AM
Sep 18, 2023
CVE Published
via MITRE·04:33 PM
Data Sourced
via MITRE·04:33 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeaknessAffected Software
Sep 25, 2023
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Feb 1, 2024
Data Sourced
via Launchpad·05:24 PM
Description
Jul 23, 2024
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

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 CVE-2023-4806?

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

2

What is the severity of CVE-2023-4806?

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

3

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.

4

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.

5

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