Bug 1009643 (CVE-2012-6686, CVE-2013-4357) - CVE-2012-6686 CVE-2013-4357 glibc: stack overflow in getaddrinfo()'s use of alloca()
Summary: CVE-2012-6686 CVE-2013-4357 glibc: stack overflow in getaddrinfo()'s use of a...
Alias: CVE-2012-6686, CVE-2013-4357
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On:
Blocks: 1009645
TreeView+ depends on / blocked
Reported: 2013-09-18 19:12 UTC by Vincent Danen
Modified: 2021-02-17 07:20 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-10-28 06:03:31 UTC

Attachments (Terms of Use)

Description Vincent Danen 2013-09-18 19:12:17 UTC
It was reported [1],[2] that there are potential security problems with allocating memory in glibc's getaddrinfo() function.  As noted in the posting to the oss-security mailing list:

"I believe the analysis in this bug report is incorrect.  The security 
implications are unclear.  A straight copy of a long name to a stack 
buffer should trigger a crash because it hits the guard page, but even 
that could be a problem for daemons.

On the other hand, it's impossible to know for sure that no GCC version 
ever lays out the stack in such a way that we end up with a problem. 
Multi-threaded programs linking in script interpreters are more exposed 
to these problems, too."

[1] http://sourceware.org/bugzilla/show_bug.cgi?id=12671
[2] http://www.openwall.com/lists/oss-security/2013/08/22/4

Comment 3 Huzaifa S. Sidhpurwala 2013-10-28 06:01:28 UTC
This issue has been addressed in the previous versions of Red Hat Enterprise Linux 5 and 6 by the following advisories:

Red Hat Enterprise Linux 5:

Red Hat Enterprise Linux 6:

Comment 4 Huzaifa S. Sidhpurwala 2013-10-28 06:02:43 UTC

This issue has already been addressed in Red Hat Enterprise Linux 5 via http://rhn.redhat.com/errata/RHBA-2013-0022.html and in Red Hat Enterprise Linux 6 via http://rhn.redhat.com/errata/RHBA-2012-0763.html

Comment 5 Huzaifa S. Sidhpurwala 2013-10-28 06:03:31 UTC
This issue does not affect the version of glibc as shipped with Fedora 18 and 19.

Comment 6 Martin Prpič 2015-02-24 13:00:49 UTC
This issue was incorrectly assigned a duplicate CVE ID, CVE-2012-6686, and should be referred to by the original ID: CVE-2013-4357.

Comment 8 Salvatore Bonaccorso 2020-02-08 14:06:24 UTC

I suggest to remove the CVE-2012-6686 in the subject and as alias for this bug. The CVE-2012-6686 has in meanwhile been properly rejected.


Comment 9 Salvatore Bonaccorso 2020-02-08 14:08:11 UTC
See: https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=CVE-2012-6686

Note You need to log in before you can comment on or make changes to this bug.