CVE-2023-4813: Glibc: potential use-after-free in gaih_inet()

Published Mar 1, 2022
·
Updated

A flaw has been identified in glibc. In an uncommon situation, the gaihinet 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.

Other sources

A flaw was found in glibc. In an uncommon situation, the gaihinet 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.

Ubuntu

glibc is vulnerable to a denial of service, caused by a use-after-free flaw in the gaihinet function. By sending a specially crafted request, a remote attacker could exploit this vulnerability to cause a denial of service.

IBM

Glibc: potential use-after-free in gaihinet()

Microsoft

In an uncommon situation, the gaihinet function in glibc may use memory that has already 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.

This flaw affects glibc versions prior to 2.36.

Reference: https://sourceware.org/bugzilla/showbug.cgi?id=28931

Upstream patch: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1c37b8022e8763fedbb3f79c02e05c6acfe5a215

Red Hat

Affected Software

34 affected componentsFixes available
redhat/glibc<0:2.28-225.el8_8.6
0:2.28-225.el8_8.6
redhat/glibc<0:2.34-60.el9_2.7
0:2.34-60.el9_2.7
ubuntu/glibc<2.27-3ubuntu1.6+
2.27-3ubuntu1.6+
ubuntu/glibc<2.31-0ubuntu9.14
2.31-0ubuntu9.14
ubuntu/glibc<2.35-0ubuntu3.5
2.35-0ubuntu3.5
ubuntu/glibc<2.36-3
2.36-3
ubuntu/glibc<2.23-0ubuntu11.3+
2.23-0ubuntu11.3+
debian/glibc<=2.31-13+deb11u10
2.36-9+deb12u72.39-6
GNU glibc<2.36
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
redhat Enterprise Linux Eus=8.8
redhat Enterprise Linux Eus=9.2
redhat Enterprise Linux For Ibm Z Systems Eus S390x=9.2
redhat Enterprise Linux For Ibm Z Systems S390x=9.2
redhat Enterprise Linux For Power Little Endian=9.2_ppc64le
redhat Enterprise Linux For Power Little Endian Eus=9.2_ppc64le
redhat Enterprise Linux Server Aus=9.2
redhat Enterprise Linux Server Tus=8.8
Fedoraproject Fedora=38
NetApp Active Iq Unified Manager Vmware Vsphere
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H410s Firmware
NetApp H410s
All of the following
NetApp H410c Firmware
NetApp H410c
redhat/glibc<2.36
2.36
IBM QRadar Network Packet Capture<=7.5.0 - 7.5.0 Update Package 7
Microsoft cbl2 glibc 2.35-7

Remediation

Information

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.

Event History

Mar 1, 2022
CVE Published
12:00 AM
Sep 7, 2023
Data Sourced
via Red Hat·01:14 AM
DescriptionSeverityAffected Software
Sep 12, 2023
CVE Published
via MITRE·09:54 PM
Data Sourced
via MITRE·09:54 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 12, 2024
Data Sourced
via Launchpad·05:20 PM
Description
Jul 23, 2024
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Oct 1, 2025
Data Sourced
via Microsoft·11:11 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·11:11 PM
Affected Software
Updated
via Microsoft·11:11 PM
DescriptionSeverity

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-4813?

CVE-2023-4813 is a vulnerability found in glibc that can result in an application crash when the getaddrinfo function is called.

2

What is the severity of CVE-2023-4813?

The severity of CVE-2023-4813 is medium with a CVSS score of 5.9.

3

How does CVE-2023-4813 affect Redhat Enterprise Linux 8.0?

Redhat Enterprise Linux 8.0 is affected by CVE-2023-4813.

4

How do I fix CVE-2023-4813?

To fix CVE-2023-4813, update the glibc package to version 2.36 or apply the recommended fix provided by Redhat.

5

Where can I find more information about CVE-2023-4813?

You can find more information about CVE-2023-4813 on the CVE website and the NIST National Vulnerability Database.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203