CVE-2023-4806 - Use After Free

Severity

75%

Complexity

39%

Confidentiality

60%

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.

CVSS 3.1 Base Score 7.5. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

CVSS 3.1 Base Score 5.9. CVSS Attack Vector: network. CVSS Attack Complexity: high. CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).

Demo Examples

Use After Free

CWE-416

The following example demonstrates the weakness.


               
}
free(buf3R2);

Use After Free

CWE-416

The following code illustrates a use after free error:


               
}
free(ptr);
logError("operation aborted before commit", ptr);

When an error occurs, the pointer is immediately freed. However, this pointer is later incorrectly used in the logError function.

Overview

Type

Red Hat Enterprise Linux

First reported 1 year ago

2023-09-18 17:15:00

Last updated 1 year ago

2023-11-21 18:15:00

Affected Software

Red Hat Enterprise Linux (RHEL) 7.0 (7)

7.0

Red Hat Enterprise Linux 8.0

8.0

References

https://bugzilla.redhat.com/show_bug.cgi?id=2237782

https://access.redhat.com/security/cve/CVE-2023-4806

https://bugzilla.redhat.com/show_bug.cgi?id=2237782

Issue Tracking, Third Party Advisory

https://access.redhat.com/security/cve/CVE-2023-4806

Third Party Advisory

http://www.openwall.com/lists/oss-security/2023/10/03/5

http://www.openwall.com/lists/oss-security/2023/10/03/4

http://www.openwall.com/lists/oss-security/2023/10/03/6

http://www.openwall.com/lists/oss-security/2023/10/03/8

https://security.gentoo.org/glsa/202310-03

https://lists.fedoraproject.org/archives/list/[email protected]/message/NDAQWHTSVOCOZ5K6KPIWKRT3JX4RTZUR/

https://lists.fedoraproject.org/archives/list/[email protected]/message/4DBUQRRPB47TC3NJOUIBVWUGFHBJAFDL/

https://lists.fedoraproject.org/archives/list/[email protected]/message/DFG4P76UHHZEWQ26FWBXG76N2QLKKPZA/

https://access.redhat.com/errata/RHSA-2023:5453

https://access.redhat.com/errata/RHSA-2023:5455

http://www.openwall.com/lists/oss-security/2023/10/03/5

Mailing List

http://www.openwall.com/lists/oss-security/2023/10/03/4

Mailing List

http://www.openwall.com/lists/oss-security/2023/10/03/6

Mailing List

http://www.openwall.com/lists/oss-security/2023/10/03/8

Mailing List

https://security.gentoo.org/glsa/202310-03

Third Party Advisory

https://lists.fedoraproject.org/archives/list/[email protected]/message/NDAQWHTSVOCOZ5K6KPIWKRT3JX4RTZUR/

Mailing List

https://lists.fedoraproject.org/archives/list/[email protected]/message/4DBUQRRPB47TC3NJOUIBVWUGFHBJAFDL/

Mailing List

https://lists.fedoraproject.org/archives/list/[email protected]/message/DFG4P76UHHZEWQ26FWBXG76N2QLKKPZA/

Mailing List

https://access.redhat.com/errata/RHSA-2023:5453

Third Party Advisory

https://access.redhat.com/errata/RHSA-2023:5455

Third Party Advisory

RHSA-2023:7409

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.