title: Glibc: potential use-after-free in getaddrinfo()
description: A flaw was found 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.
problem types: Use After Free
affected:
{
product: glibc
vendor: n/a
defaultStatus: affected
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: glibc
defaultStatus: affected
versions:
version: 0:2.28-225.el8_8.6, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:enterprise_linux:8::appstream, cpe:/o:redhat:enterprise_linux:8::baseos, cpe:/a:redhat:enterprise_linux:8::crb]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: glibc
defaultStatus: affected
versions:
version: 0:2.28-225.el8_8.6, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:enterprise_linux:8::appstream, cpe:/o:redhat:enterprise_linux:8::baseos, cpe:/a:redhat:enterprise_linux:8::crb]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.6 Extended Update Support
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: glibc
defaultStatus: affected
versions:
version: 0:2.28-189.8.el8_6, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:rhel_eus:8.6::appstream, cpe:/a:redhat:rhel_eus:8.6::crb, cpe:/o:redhat:enterprise_linux:8::hypervisor, cpe:/o:redhat:rhel_eus:8.6::baseos]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 9
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: glibc
defaultStatus: affected
versions:
version: 0:2.34-60.el9_2.7, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:enterprise_linux:9::crb, cpe:/a:redhat:enterprise_linux:9::appstream, cpe:/o:redhat:enterprise_linux:9::baseos]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 9
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: glibc
defaultStatus: affected
versions:
version: 0:2.34-60.el9_2.7, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:enterprise_linux:9::crb, cpe:/a:redhat:enterprise_linux:9::appstream, cpe:/o:redhat:enterprise_linux:9::baseos]
}
{
vendor: Red Hat
product: Red Hat Virtualization 4 for Red Hat Enterprise Linux 8
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: glibc
defaultStatus: affected
versions:
version: 0:2.28-189.8.el8_6, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:rhel_eus:8.6::appstream, cpe:/a:redhat:rhel_eus:8.6::crb, cpe:/o:redhat:enterprise_linux:8::hypervisor, cpe:/o:redhat:rhel_eus:8.6::baseos]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 6
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: compat-glibc
defaultStatus: unknown
cpes: cpe:/o:redhat:enterprise_linux:6
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 6
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: glibc
defaultStatus: unknown
cpes: cpe:/o:redhat:enterprise_linux:6
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 7
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: compat-glibc
defaultStatus: affected
cpes: cpe:/o:redhat:enterprise_linux:7
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 7
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: glibc
defaultStatus: affected
cpes: cpe:/o:redhat:enterprise_linux:7
}
{
product: Fedora
vendor: Fedora
collectionURL: https://packages.fedoraproject.org/
packageName: glibc
defaultStatus: affected
}
metrics:
other: [
content: {'value': 'Moderate', 'namespace': 'https://access.redhat.com/security/updates/classification/'}
type: Red Hat severity rating
]