Database/Kernel, userspace & hypervisor
glibc: getaddrinfo in no-aaaa mode leaks stack contents from a large TCP DNS response
Impact
When /etc/resolv.conf sets no-aaaa mode and an application calls getaddrinfo with AF_UNSPEC, a DNS response arriving over TCP larger than 2048 bytes can cause stack contents to be returned in the address data, or crash the process. Every daemon on a GPU node resolves names through glibc - the container runtime pulling images, the scheduler agent, telemetry shippers - so an attacker who controls or can spoof a DNS answer gets a slow read of process stack memory from any of them, with pointers and secrets as plausible content, or just drops the resolver-dependent service. The precondition is the no-aaaa option, which is uncommon but does get set in IPv6-free datacenter builds; hosts without it are not affected.
Who can reach it
Remote and unauthenticated but indirect (CVSS AV:N/AC:H/PR:N): the attacker must be able to return an oversized TCP DNS response to the node - an operator-controlled or compromised resolver, an upstream authoritative server for a name the host looks up, or an on-path position - and the host must have no-aaaa configured.
What to do
Update glibc from the Red Hat errata (RHSA-2023:5453, RHSA-2023:5455). glibc is linked into every running process, so coverage requires restarting all services that resolve names, and in practice operators reboot the node to be sure - a drain-and-reboot pass. Immediate mitigation with no downtime: remove the no-aaaa option from /etc/resolv.conf, which closes the affected path entirely.
References
Related entries
- GPU local/shared memory not cleared between kernels (AMD, Apple, Qualcomm, Imagination): A GPU kernel reads whateverCVE-2023-4969 · GPU local/shared memory not cleared between kernels (AMD, Apple, Qualcomm, Imagination)Medium
- Linux kernel (net/xfrm): XFRM_MSG_NEWAE lets a caller update replay-window state on a state that never had replay_esnCVE-2023-53147 · Linux kernel (net/xfrm)Medium
- Linux kernel (drivers/vfio): Pinned-memory accounting for a VFIO container is lost across exec(), then underflows to aCVE-2023-53171 · Linux kernel (drivers/vfio)Medium
- Linux kernel (drivers/iommu/iommufd): Iommufd accepts a user address plus length that wraps past zero, then asks the mmCVE-2023-54239 · Linux kernel (drivers/iommu/iommufd)Medium
- QEMU VNC server: ClientCutText before clipboard peer init crashes QEMU via NULL dereferenceCVE-2023-6683 · QEMU built-in VNC server (clipboard peer NULL pointer dereference)Medium
- Oracle VirtualBox: Easily exploitable Core flaw allowing unauthorised access to VirtualBox-accessible dataCVE-2024-21121 · Oracle VirtualBoxMedium
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.