CVE-2023-4806
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedA 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceUse-after-free vulnerability in glibc's getaddrinfo function that occurs when an NSS module implements only the _nss_*_gethostbyname2_r and _nss_*_getcanonname_r hooks but not _nss_*_gethostbyname3_r, combined with getaddrinfo calls using AF_INET6 with AI_CANONNAME, AI_ALL, and AI_V4MAPPED flags for names resolving to many IPv6 and IPv4 addresses.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 9.2= 9.0_ppc64le= 9.2_ppc64le= 9.0_aarch64= 9.2_aarch64= 9.0_s390x= 9.2_s390x= 7.0= 8.0= 9.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- 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
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check glibc versionRun `rpm -q glibc` or check the output of `ldd --version` to identify the installed glibc versionAffected if The glibc version falls within Red Hat Enterprise Linux 7.0, 8.0, 9.0 or the listed Codeready Builder versions for the respective architectures
-
Identify custom NSS modulesExamine /etc/nsswitch.conf to see which NSS modules are configured, then check /lib64 or /lib directories for any third-party or custom NSS shared libraries (files matching libnss_*.so*)Affected if Any custom NSS module is loaded in addition to or instead of standard system modules like files, dns, or systemd
-
Check for missing gethostbyname3_r hookInspect the symbols exported by any custom NSS module libraries using `nm -D` or `readelf -s` to see if they define _nss_*_gethostbyname2_r and _nss_*_getcanonname_r but lack _nss_*_gethostbyname3_rAffected if The custom NSS module implements gethostbyname2_r and getcanonname_r hooks but does NOT implement the gethostbyname3_r hook
-
Identify applications using vulnerable getaddrinfo flagsReview application source code or configuration to determine if any program calls getaddrinfo with AF_INET6 family and includes the flags AI_CANONNAME | AI_ALL | AI_V4MAPPED simultaneously for hostnames resolving to many addressesAffected if Any application uses getaddrinfo with all three flags (AI_CANONNAME, AI_ALL, AI_V4MAPPED) for IPv6-capable lookups against a service using a custom NSS module
A system is affected if it runs a vulnerable glibc version AND uses a custom NSS module that implements gethostbyname2_r and getcanonname_r but omits gethostbyname3_r, with any application employing the specific combination of AF_INET6, AI_CANONNAME, AI_ALL, and AI_V4MAPPED flags.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpdate glibc to the patched version, or modify any custom NSS modules to implement the missing _nss_*_gethostbyname3_r hook.
Update glibc to the latest patched version available via Red Hat errata for your RHEL 7.x, 8.x, or 9.x system
- 1. Identify the exact glibc version currently installed: rpm -q glibc
- 2. Check for available errata/patches for this CVE in the Red Hat errata database (access.redhat.com) for your specific RHEL version (7.x, 8.x, or 9.x)
- 3. Run 'yum update glibc' or 'dnf update glibc' to apply the latest glibc packages containing the security fix
- 4. Verify the updated glibc version matches the patched release: rpm -q glibc
- 5. Reboot the system to ensure the updated glibc library is loaded for all running processes
- 6. Test critical applications that use getaddrinfo to confirm functionality
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,984.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-4806 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sources- access.redhat.com
- access.redhat.com
- access.redhat.com
- bugzilla.redhat.com
- access.redhat.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.gentoo.org
- security.netapp.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- nvd.nist.gov
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2023-4806 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data