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

Summary

CVECVE-2023-4806
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-09-18 17:15:55 UTC
Updated2026-05-12 11:16:15 UTC
DescriptionA 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.

Risk And Classification

Primary CVSS: v3.1 5.9 MEDIUM from [email protected]

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS: 0.018950000 probability, percentile 0.833660000 (date 2026-05-12)

Problem Types: CWE-416 | CWE-416 Use After Free


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary5.9MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1[email protected]Secondary5.9MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1CNACVSS5.9MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Fedoraproject Fedora 37 All All All
Operating System Fedoraproject Fedora 38 All All All
Operating System Fedoraproject Fedora 39 All All All
Application Gnu Glibc 2.33 All All All
Application Redhat Codeready Linux Builder Eus 9.2 All All All
Application Redhat Codeready Linux Builder Eus For Power Little Endian 9.0_ppc64le All All All
Application Redhat Codeready Linux Builder Eus For Power Little Endian Eus 9.2_ppc64le All All All
Application Redhat Codeready Linux Builder For Arm64 9.0_aarch64 All All All
Application Redhat Codeready Linux Builder For Arm64 Eus 9.2_aarch64 All All All
Application Redhat Codeready Linux Builder For Ibm Z Systems 9.0_s390x All All All
Application Redhat Codeready Linux Builder For Ibm Z Systems Eus 9.2_s390x All All All
Operating System Redhat Enterprise Linux 7.0 All All All
Operating System Redhat Enterprise Linux 8.0 All All All
Operating System Redhat Enterprise Linux 9.0 All All All
Operating System Redhat Enterprise Linux Eus 8.8 All All All
Operating System Redhat Enterprise Linux Eus 9.2 All All All
Operating System Redhat Enterprise Linux For Arm 64 9.0_aarch64 All All All
Operating System Redhat Enterprise Linux For Arm 64 Eus 9.2_aarch64 All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems 8.0_s390x All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems Eus 8.8_s390x All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems Eus S390x 9.2 All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems S390x 9.2 All All All
Operating System Redhat Enterprise Linux For Power Little Endian 8.0_ppc64le All All All
Operating System Redhat Enterprise Linux For Power Little Endian 9.2_ppc64le All All All
Operating System Redhat Enterprise Linux For Power Little Endian Eus 8.8_ppc64le All All All
Operating System Redhat Enterprise Linux For Power Little Endian Eus 9.2_ppc64le All All All
Operating System Redhat Enterprise Linux Server Aus 9.2 All All All
Operating System Redhat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions 9.2_ppc64le All All All
Operating System Redhat Enterprise Linux Tus 8.8 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:2.28-225.el8_8.6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:2.28-225.el8_8.6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support unaffected 0:2.28-189.8.el8_6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:2.34-100.el9 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:2.34-60.el9_2.7 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:2.34-100.el9 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:2.34-60.el9_2.7 * rpm Not specified
CNA Red Hat Red Hat Virtualization 4 For Red Hat Enterprise Linux 8 unaffected 0:2.28-189.8.el8_6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 6 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 6 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Not specified Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.5 * custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.5 * custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP affected V3.1.5 * custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP affected V3.1.5 * custom Not specified
ADP Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.5 * custom Not specified

References

ReferenceSourceLinkTags
CVE-2023-4806 GNU C Library (glibc) Vulnerability in NetApp Products | NetApp Product Security af854a3a-2127-422b-91ae-364da2661108 security.netapp.com
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
cert-portal.siemens.com/productcert/html/ssa-082556.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
oss-security - Re: CVE-2023-4806, CVE-2023-5156: glibc: potential use-after-free in getaddrinfo() af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
glibc: Multiple vulnerabilities (GLSA 202310-03) — Gentoo security af854a3a-2127-422b-91ae-364da2661108 security.gentoo.org
2237782 – (CVE-2023-4806) CVE-2023-4806 glibc: potential use-after-free in getaddrinfo() af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Issue Tracking, Third Party Advisory
[SECURITY] Fedora 38 Update: glibc-2.37-10.fc38 - package-announce - Fedora Mailing-Lists af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
cert-portal.siemens.com/productcert/html/ssa-831302.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
[SECURITY] Fedora 39 Update: glibc-2.38-6.fc39 - package-announce - Fedora Mailing-Lists af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
cve-details af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
oss-security - Re: CVE-2023-4806, CVE-2023-5156: glibc: potential use-after-free in getaddrinfo() af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
access.redhat.com/errata/RHBA-2024:2413 [email protected] access.redhat.com
[SECURITY] Fedora 37 Update: glibc-2.36-14.fc37 - package-announce - Fedora Mailing-Lists af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
oss-security - CVE-2023-4806, CVE-2023-5156: glibc: potential use-after-free in getaddrinfo() af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
oss-security - Re: CVE-2023-4806, CVE-2023-5156: glibc: potential use-after-free in getaddrinfo() af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: This issue was discovered by Siddhesh Poyarekar (Red Hat). (en)

Additional Advisory Data

SourceTimeEvent
CNA2023-09-06T00:00:00.000ZReported to Red Hat.
CNA2023-09-12T00:00:00.000ZMade public.

Legacy QID Mappings

  • 160965 Oracle Enterprise Linux Security Update for glibc (ELSA-2023-5455)
  • 160968 Oracle Enterprise Linux Security Update for glibc (ELSA-2023-5453)
  • 160973 Oracle Enterprise Linux Security Update for glibc (ELSA-2023-12872)
  • 160974 Oracle Enterprise Linux Security Update for glibc (ELSA-2023-12873)
  • 199987 Ubuntu Security Notification for GNU C Library Vulnerabilities (USN-6541-1)
  • 242111 Red Hat Update for glibc (RHSA-2023:5453)
  • 242118 Red Hat Update for glibc (RHSA-2023:5455)
  • 242490 Red Hat Update for glibc (RHSA-2023:7409)
  • 284570 Fedora Security Update for glibc (FEDORA-2023-2b8c11ee75)
  • 284571 Fedora Security Update for glibc (FEDORA-2023-028062484e)
  • 285226 Fedora Security Update for glibc (FEDORA-2023-63e5a77522)
  • 356310 Amazon Linux Security Advisory for glibc : ALAS2023-2023-359
  • 378929 Alibaba Cloud Linux Security Update for glibc (ALINUX3-SA-2023:0124)
  • 6000014 Debian Security Update for glibc (DSA 5514-1)
  • 6140090 AWS Bottlerocket Security Update for glibc (GHSA-m6r6-qxq3-mcgr)
  • 673448 EulerOS Security Update for glibc (EulerOS-SA-2024-1268)
  • 673505 EulerOS Security Update for glibc (EulerOS-SA-2023-3269)
  • 673617 EulerOS Security Update for glibc (EulerOS-SA-2023-3241)
  • 673645 EulerOS Security Update for glibc (EulerOS-SA-2023-3330)
  • 673703 EulerOS Security Update for glibc (EulerOS-SA-2023-3298)
  • 673859 EulerOS Security Update for glibc (EulerOS-SA-2024-1057)
  • 674073 EulerOS Security Update for glibc (EulerOS-SA-2024-1081)
  • 710764 Gentoo Linux glibc Multiple Vulnerabilities (GLSA 202310-03)
  • 907528 Common Base Linux Mariner (CBL-Mariner) Security Update for glibc (29954-1)
  • 941278 AlmaLinux Security Update for glibc (ALSA-2023:5455)
  • 941283 AlmaLinux Security Update for glibc (ALSA-2023:5453)
  • 961035 Rocky Linux Security Update for glibc (RLSA-2023:5455)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report