---
id: CVE-2023-4806
title: A flaw has been identified in glibc
summary: >-
  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 …
severity: medium
cvss: 5.9
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-416
  - CWE-416
vendor: gnu
product: glibc
affected:
  - glibc = 2.33
  - codeready_linux_builder_eus = 9.2
  - codeready_linux_builder_eus_for_power_little_endian = 9.0_ppc64le
  - codeready_linux_builder_eus_for_power_little_endian_eus = 9.2_ppc64le
  - codeready_linux_builder_for_arm64 = 9.0_aarch64
  - codeready_linux_builder_for_arm64_eus = 9.2_aarch64
  - codeready_linux_builder_for_ibm_z_systems = 9.0_s390x
  - codeready_linux_builder_for_ibm_z_systems_eus = 9.2_s390x
  - enterprise_linux = 7.0
  - enterprise_linux = 8.0
  - enterprise_linux = 9.0
  - enterprise_linux_eus = 8.8
  - enterprise_linux_eus = 9.2
  - enterprise_linux_for_arm_64 = 9.0_aarch64
  - enterprise_linux_for_arm_64_eus = 9.2_aarch64
  - enterprise_linux_for_ibm_z_systems = 8.0_s390x
  - enterprise_linux_for_ibm_z_systems_eus = 8.8_s390x
  - enterprise_linux_for_ibm_z_systems_eus_s390x = 9.2
  - enterprise_linux_for_ibm_z_systems_s390x = 9.2
  - enterprise_linux_for_power_little_endian = 8.0_ppc64le
  - enterprise_linux_for_power_little_endian = 9.2_ppc64le
  - enterprise_linux_for_power_little_endian_eus = 8.8_ppc64le
  - enterprise_linux_for_power_little_endian_eus = 9.2_ppc64le
  - enterprise_linux_server_aus = 9.2
  - >-
    enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions
    = 9.2_ppc64le
  - enterprise_linux_tus = 8.8
  - fedora = 37
  - fedora = 38
  - fedora = 39
published: '2023-09-18'
updated: '2026-07-14'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2023-4806'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2023:5453'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2023:5455'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2023:7409'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2023-4806'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2237782'
    label: secalert@redhat.com
  - url: 'http://www.openwall.com/lists/oss-security/2023/10/03/4'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://www.openwall.com/lists/oss-security/2023/10/03/5'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://www.openwall.com/lists/oss-security/2023/10/03/6'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://www.openwall.com/lists/oss-security/2023/10/03/8'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2023:5453'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2023:5455'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2023:7409'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/security/cve/CVE-2023-4806'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2237782'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4DBUQRRPB47TC3NJOUIBVWUGFHBJAFDL/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DFG4P76UHHZEWQ26FWBXG76N2QLKKPZA/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NDAQWHTSVOCOZ5K6KPIWKRT3JX4RTZUR/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.gentoo.org/glsa/202310-03'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20240125-0008/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-082556.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-831302.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
epss: 0.01606
epssPercentile: 0.7484
ingestedAt: '2026-07-14T14:37:02.323Z'
---

## Overview

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.

## Affected

- `glibc = 2.33`
- `codeready_linux_builder_eus = 9.2`
- `codeready_linux_builder_eus_for_power_little_endian = 9.0_ppc64le`
- `codeready_linux_builder_eus_for_power_little_endian_eus = 9.2_ppc64le`
- `codeready_linux_builder_for_arm64 = 9.0_aarch64`
- `codeready_linux_builder_for_arm64_eus = 9.2_aarch64`
- `codeready_linux_builder_for_ibm_z_systems = 9.0_s390x`
- `codeready_linux_builder_for_ibm_z_systems_eus = 9.2_s390x`
- `enterprise_linux = 7.0`
- `enterprise_linux = 8.0`
- `enterprise_linux = 9.0`
- `enterprise_linux_eus = 8.8`
- `enterprise_linux_eus = 9.2`
- `enterprise_linux_for_arm_64 = 9.0_aarch64`
- `enterprise_linux_for_arm_64_eus = 9.2_aarch64`
- `enterprise_linux_for_ibm_z_systems = 8.0_s390x`
- `enterprise_linux_for_ibm_z_systems_eus = 8.8_s390x`
- `enterprise_linux_for_ibm_z_systems_eus_s390x = 9.2`
- `enterprise_linux_for_ibm_z_systems_s390x = 9.2`
- `enterprise_linux_for_power_little_endian = 8.0_ppc64le`
- `enterprise_linux_for_power_little_endian = 9.2_ppc64le`
- `enterprise_linux_for_power_little_endian_eus = 8.8_ppc64le`
- `enterprise_linux_for_power_little_endian_eus = 9.2_ppc64le`
- `enterprise_linux_server_aus = 9.2`
- `enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions = 9.2_ppc64le`
- `enterprise_linux_tus = 8.8`
- `fedora = 37`
- `fedora = 38`
- `fedora = 39`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
