Bug 855385 (CVE-2012-4412)

Summary: CVE-2012-4412 glibc: strcoll() integer overflow leading to buffer overflow
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: codonell, fweimer, grocha, huzaifas, jakub, jrusnack, law, mnewsome, ohudlick, pfrankli, pneedle, schwab
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:59:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 855399, 989861    
Bug Blocks: 855429    

Description Jan Lieskovsky 2012-09-07 14:59:00 UTC
An integer overflow, leading to buffer overflow flaw was found in the way the implementation of strcoll() routine, used to compare two strings based on the current locale, of glibc, the GNU libc libraries, performed calculation of memory requirements / allocation, needed for storage of the strings. If an application linked against glibc was missing an application-level sanity checks for validity of strcoll() arguments and accepted untrusted input, an attacker could use this flaw to cause the particular application to crash or, potentially, execute arbitrary code with the privileges of the user running the application.

Upstream bug report (including reproducer):
[1] http://sourceware.org/bugzilla/show_bug.cgi?id=14547

Comment 1 Jan Lieskovsky 2012-09-07 15:31:44 UTC
CVE request:
[2] http://www.openwall.com/lists/oss-security/2012/09/07/9

Comment 2 Jan Lieskovsky 2012-09-07 15:32:49 UTC
This issue affects the versions of the glibc package, as shipped with Red Hat Enterprise Linux 5 and 6.

--

This issue affects the versions of the glibc package, as shipped with Fedora release of 16 and 17. Please schedule an update (once there is final upstream patch available).

Comment 3 Jan Lieskovsky 2012-09-07 15:34:15 UTC
Created glibc tracking bugs for this issue

Affects: fedora-all [bug 855399]

Comment 4 Jan Lieskovsky 2012-09-07 17:29:07 UTC
The CVE identifier of CVE-2012-4412 has been assigned to this issue:
http://www.openwall.com/lists/oss-security/2012/09/07/12

Comment 18 Fedora Update System 2013-08-22 00:49:36 UTC
glibc-2.17-13.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.