CVE-2012-4424
published 2013-10-09CVE-2012-4424: Stack-based buffer overflow in string/strcoll_l.c in the GNU C Library (aka glibc or libc6) 2.17 and earlier allows context-dependent attackers to cause a…
PriorityP426medium5.1CVSS 2.0
AVNACHAuNCPIPAP
EPSS
3.38%
87.5th percentile
Stack-based buffer overflow in string/strcoll_l.c in the GNU C Library (aka glibc or libc6) 2.17 and earlier allows context-dependent attackers to cause a denial of service (crash) or possibly execute arbitrary code via a long string that triggers a malloc failure and use of the alloca function.
Affected
31 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | glibc | < glibc 2.17-94 (bookworm) | glibc 2.17-94 (bookworm) |
| gnu | glibc | <= 2.17 | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
| gnu | glibc | — | — |
CVSS provenance
nvdv2.05.1MEDIUMAV:N/AC:H/Au:N/C:P/I:P/A:P
osv5.1MEDIUM
vendor_ubuntu7.5HIGH
vendor_debian5.1LOW
vendor_redhat5.1MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
GNU C Library vulnerabilities
vendor_ubuntu·2013-10-21·CVSS 7.5
CVE-2012-4412 [HIGH] GNU C Library vulnerabilities
Title: GNU C Library vulnerabilities
Summary: Several security issues were fixed in the GNU C Library.
It was discovered that the GNU C Library incorrectly handled the strcoll()
function. An attacker could use this issue to cause a denial of service, or
possibly execute arbitrary code. (CVE-2012-4412, CVE-2012-4424)
It was discovered that the GNU C Library incorrectly handled multibyte
characters in the regular expression matcher. An attacker could use this
issue to cause a denial of service. (CVE-2013-0242)
It was discovered that the GNU C Library incorrectly handled large numbers
of domain conversion results in the getaddrinfo() function. An attacker
could use this issue to cause a denial of service. (CVE-2013-1914)
It was discovered that the GNU C Library readdir_r() function incor
Red Hat
glibc: alloca() stack overflow in the strcoll() interface
vendor_redhat·2012-09-06·CVSS 5.1
CVE-2012-4424 [MEDIUM] glibc: alloca() stack overflow in the strcoll() interface
glibc: alloca() stack overflow in the strcoll() interface
Stack-based buffer overflow in string/strcoll_l.c in the GNU C Library (aka glibc or libc6) 2.17 and earlier allows context-dependent attackers to cause a denial of service (crash) or possibly execute arbitrary code via a long string that triggers a malloc failure and use of the alloca function.
Package: glibc (Red Hat Enterprise Linux 5) - Will not fix
Package: glibc (Red Hat Enterprise Linux 6) - Will not fix
Package: glibc (Red Hat Enterprise Linux 7) - Not affected
Debian
CVE-2012-4424: glibc - Stack-based buffer overflow in string/strcoll_l.c in the GNU C Library (aka glib...
vendor_debian·2012·CVSS 5.1
CVE-2012-4424 [MEDIUM] CVE-2012-4424: glibc - Stack-based buffer overflow in string/strcoll_l.c in the GNU C Library (aka glib...
Stack-based buffer overflow in string/strcoll_l.c in the GNU C Library (aka glibc or libc6) 2.17 and earlier allows context-dependent attackers to cause a denial of service (crash) or possibly execute arbitrary code via a long string that triggers a malloc failure and use of the alloca function.
Scope: local
bookworm: resolved (fixed in 2.17-94)
bullseye: resolved (fixed in 2.17-94)
forky: resolved (fixed in 2.17-94)
sid: resolved (fixed in 2.17-94)
trixie: resolved (fixed in 2.17-94)
GHSA
GHSA-xmcm-jqgw-pm47: Stack-based buffer overflow in string/strcoll_l
ghsa_unreviewed·2022-05-17
CVE-2012-4424 [MEDIUM] CWE-119 GHSA-xmcm-jqgw-pm47: Stack-based buffer overflow in string/strcoll_l
Stack-based buffer overflow in string/strcoll_l.c in the GNU C Library (aka glibc or libc6) 2.17 and earlier allows context-dependent attackers to cause a denial of service (crash) or possibly execute arbitrary code via a long string that triggers a malloc failure and use of the alloca function.
OSV
CVE-2012-4424: Stack-based buffer overflow in string/strcoll_l
osv·2013-10-09·CVSS 5.1
CVE-2012-4424 [MEDIUM] CVE-2012-4424: Stack-based buffer overflow in string/strcoll_l
Stack-based buffer overflow in string/strcoll_l.c in the GNU C Library (aka glibc or libc6) 2.17 and earlier allows context-dependent attackers to cause a denial of service (crash) or possibly execute arbitrary code via a long string that triggers a malloc failure and use of the alloca function.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2015-8982 glibc: multiple overflows in strxfrm()
bugzilla·2015-02-13·CVSS 7.5
CVE-2015-8982 [HIGH] CVE-2015-8982 glibc: multiple overflows in strxfrm()
CVE-2015-8982 glibc: multiple overflows in strxfrm()
Integer overflow when computing memory allocation sizes (similar to CVE-2012-4412) was reported [1] in glibc strxfrm() function. Attached strxfrm-int32.c should trigger this issue on a 32-bit systems.
Additionally, it was discovered [1] that strxfrm() falls back to an unbounded alloca if malloc fails making it vulnerable to stack-based buffer overflows (similar to CVE-2012-4424). Attached strxfrm-alloca.c should trigger this issue.
Upstream commit that fixes all issues:
http://seclists.org/oss-sec/2015/q1/540
[1]: http://seclists.org/oss-sec/2015/q1/540
Discussion:
Created attachment 991416
strxfrm-alloca.c
---
Created attachment 991417
strxfrm-int32.c
---
Created glibc tracking bugs for this issue:
Affects: fedora-all [bug 119
Bugzilla
CVE-2012-4424 glibc: alloca() stack overflow in the strcoll() interface
bugzilla·2012-09-18·CVSS 5.1
CVE-2012-4424 [MEDIUM] CVE-2012-4424 glibc: alloca() stack overflow in the strcoll() interface
CVE-2012-4424 glibc: alloca() stack overflow in the strcoll() interface
A security flaw was found in the way strcoll() interface of glibc, the GNU libc libraries, performed failsafe back to alloca() routine when malloc() function call failed previously (due to out of memory [OOM] condition for example). 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 the reproducer):
[1] http://sourceware.org/bugzilla/show_bug.cgi?id=14552#c0
Issue / part: 1) alloca() stack overflow from [1].
Refere
Bugzilla
CVE-2012-4412 CVE-2012-4424 glibc: various flaws [fedora-all]
bugzilla·2012-09-07·CVSS 7.5
CVE-2012-4412 [HIGH] CVE-2012-4412 CVE-2012-4424 glibc: various flaws [fedora-all]
CVE-2012-4412 CVE-2012-4424 glibc: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected Fedora
versions.
For comments that are specific to the vulnerability please use bugs filed
against "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When creating a Bodhi update request, please include this bug ID and the
bug IDs of this bug's parent bugs filed against the "Security Response"
product (the top-level CVE bugs). Please mention the CVE IDs being fixed
in the RPM changelog when available.
Bodhi update submission link:
https://admin.fedoraproject.org/updates/new/?type_=security&bugs=855385
http://sourceware.org/bugzilla/show_bug.cgi?id=14547http://www.mandriva.com/security/advisories?name=MDVSA-2013:283http://www.mandriva.com/security/advisories?name=MDVSA-2013:284http://www.openwall.com/lists/oss-security/2012/09/13/16http://www.ubuntu.com/usn/USN-1991-1https://bugzilla.redhat.com/show_bug.cgi?id=858238https://security.gentoo.org/glsa/201503-04http://sourceware.org/bugzilla/show_bug.cgi?id=14547http://www.mandriva.com/security/advisories?name=MDVSA-2013:283http://www.mandriva.com/security/advisories?name=MDVSA-2013:284http://www.openwall.com/lists/oss-security/2012/09/13/16http://www.ubuntu.com/usn/USN-1991-1https://bugzilla.redhat.com/show_bug.cgi?id=858238https://security.gentoo.org/glsa/201503-04
2013-10-09
Published