CVE intelligence and bounded remediation
CVE-2023-4806 — A flaw has been identified in glibc
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.
- Severity
- Medium
- CVSS
- 5.9 (3.1)
- Published
- 2023-09-18
- CISA KEV
- Not currently listed
- Ecosystem
- software/application
- Weaknesses
- CWE-416
Affected products
- gnu / glibc / 2.33
- 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
Matched remediation archetype
Use-after-free, double free, and expired resource use
This catalog composition supplies bounded fallback guidance. Explicitly reviewed curated workflows load with the complete record below.
Check exposure
- Trace ownership, references, callbacks, asynchronous tasks, and teardown paths around the affected object or resource.
- Identify reachable inputs and timing or state transitions that can release the object while references remain.
- Confirm affected builds, allocators, feature flags, architectures, and process privileges.
Remediate safely
- Apply the maintained ownership or lifetime fix and rebuild all artifacts containing the affected native code.
- Use explicit ownership, safe reference management, cancellation and join semantics, and idempotent teardown.
- Add deterministic lifetime tests plus isolated sanitizer and concurrency coverage for shutdown and error paths.
Authoritative sources
Complete CVE record and remediation plan
The detailed catalog view below loads this exact record, its source evidence, and the full seven-phase agentic change plan.