Bug 1215281 (CVE-2023-4806) - VUL-0: CVE-2023-4806: glibc: potential use-after-free in getaddrinfo()
Summary: VUL-0: CVE-2023-4806: glibc: potential use-after-free in getaddrinfo()
Status: RESOLVED FIXED
Alias: CVE-2023-4806
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Andreas Schwab
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/377994/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-4806:5.9:(AV:N...
Keywords:
Depends on: CVE-2023-5156
Blocks:
  Show dependency treegraph
 
Reported: 2023-09-13 07:39 UTC by Cathy Hu
Modified: 2023-12-04 12:21 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cathy Hu 2023-09-13 07:39:37 UTC
CVE-2023-4806

In an extremely rare situation, the getaddrinfo function in glibc may access memory that has already been freed, resulting in an application crash.

This issue is only exploitable when a NSS module implements only the _nss_*_gethostbyname2_r hook without implementing the _nss_*_gethostbyname3_r hook. There are no known modules that are implemented in this way.

In addition to that condition, the resolved name should return a large number of IPv6 as well as IPv4 and the call to the getaddrinfo function should have AF_INET6 with AI_CANONNAME, AI_ALL and AI_V4MAPPED as flags.

Reference:
https://sourceware.org/bugzilla/show_bug.cgi?id=30843

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-4806
https://bugzilla.redhat.com/show_bug.cgi?id=2237782
Comment 1 Cathy Hu 2023-09-13 07:40:13 UTC
afaik no patch upstream yet
Comment 3 OBSbugzilla Bot 2023-09-18 09:45:05 UTC
This is an autogenerated message for OBS integration:
This bug (1215281) was mentioned in
https://build.opensuse.org/request/show/1111922 Factory / glibc
Comment 5 Cathy Hu 2023-09-26 08:38:57 UTC
The fix for this CVE introduces a memory leak, which is tracked via CVE-2023-5156 bnc#1215714. Could you please fix both at the same time with a submit? Thanks!