title: Glibc: potential use-after-free in gaih_inet()
description: A flaw was found in glibc. In an uncommon situation, the gaih_inet function may use memory that has been freed, resulting in an application crash. This issue is only exploitable when the getaddrinfo function is called and the hosts database in /etc/nsswitch.conf is configured with SUCCESS=continue or SUCCESS=merge.
problem types: Use After Free
affected:
{
product: glibc
vendor: n/a
versions:
version: 2.36, status: unaffected
}
{
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::crb, cpe:/o:redhat:enterprise_linux:8::baseos, cpe:/a:redhat:enterprise_linux:8::appstream]
}
{
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::crb, cpe:/o:redhat:enterprise_linux:8::baseos, cpe:/a:redhat:enterprise_linux:8::appstream]
}
{
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:/o:redhat:rhel_eus:8.6::baseos, cpe:/o:redhat:enterprise_linux:8::hypervisor, cpe:/a:redhat:rhel_eus:8.6::crb, cpe:/a:redhat:rhel_eus:8.6::appstream]
}
{
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:/o:redhat:enterprise_linux:9::baseos, cpe:/a:redhat:enterprise_linux:9::crb, cpe:/a:redhat:enterprise_linux:9::appstream]
}
{
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:/o:redhat:enterprise_linux:9::baseos, cpe:/a:redhat:enterprise_linux:9::crb, cpe:/a:redhat:enterprise_linux:9::appstream]
}
{
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:/o:redhat:rhel_eus:8.6::baseos, cpe:/o:redhat:enterprise_linux:8::hypervisor, cpe:/a:redhat:rhel_eus:8.6::crb, cpe:/a:redhat:rhel_eus:8.6::appstream]
}
{
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
]
workarounds: Removing the "SUCCESS=continue" or "SUCCESS=merge" configuration from the hosts database in /etc/nsswitch.conf will mitigate this vulnerability.
Note that, these options are not supported by the hosts database, if they were working before it was because of this bug.