CVE-2012-4412
published 2013-10-09CVE-2012-4412: Integer 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…
PriorityP353high7.5CVSS 2.0
AVNACLAuNCPIPAP
EXPLOIT
EPSS
16.66%
96.7th percentile
Integer 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, which triggers a heap-based buffer overflow.
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.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv7.5HIGH
vendor_debian7.5LOW
vendor_redhat7.5HIGH
vendor_ubuntu7.5HIGH
CVEs like this are exactly what “Exploited This Week” covers.
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: strcoll() integer overflow leading to buffer overflow
vendor_redhat·2012-09-05·CVSS 7.5
CVE-2012-4412 [HIGH] CWE-190 glibc: strcoll() integer overflow leading to buffer overflow
glibc: strcoll() integer overflow leading to buffer overflow
Integer 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, which triggers a heap-based buffer overflow.
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-4412: glibc - Integer overflow in string/strcoll_l.c in the GNU C Library (aka glibc or libc6)...
vendor_debian·2012·CVSS 7.5
CVE-2012-4412 [HIGH] CVE-2012-4412: glibc - Integer overflow in string/strcoll_l.c in the GNU C Library (aka glibc or libc6)...
Integer 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, which triggers a heap-based buffer overflow.
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-cq77-m6w7-c2xc: Integer overflow in string/strcoll_l
ghsa_unreviewed·2022-05-14
CVE-2012-4412 [HIGH] GHSA-cq77-m6w7-c2xc: Integer overflow in string/strcoll_l
Integer 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, which triggers a heap-based buffer overflow.
OSV
CVE-2012-4412: Integer overflow in string/strcoll_l
osv·2013-10-09·CVSS 7.5
CVE-2012-4412 [HIGH] CVE-2012-4412: Integer overflow in string/strcoll_l
Integer 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, which triggers a heap-based buffer overflow.
No detection rules found.
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-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
Bugzilla
CVE-2012-4412 glibc: strcoll() integer overflow leading to buffer overflow
bugzilla·2012-09-07·CVSS 7.5
CVE-2012-4412 [HIGH] CVE-2012-4412 glibc: strcoll() integer overflow leading to buffer overflow
CVE-2012-4412 glibc: strcoll() integer overflow leading to buffer overflow
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=14
http://packetstormsecurity.com/files/153278/WAGO-852-Industrial-Managed-Switch-Series-Code-Execution-Hardcoded-Credentials.htmlhttp://seclists.org/fulldisclosure/2019/Jun/18http://secunia.com/advisories/55113http://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/07/9http://www.ubuntu.com/usn/USN-1991-1https://bugzilla.redhat.com/show_bug.cgi?id=855385https://seclists.org/bugtraq/2019/Jun/14https://security.gentoo.org/glsa/201503-04http://packetstormsecurity.com/files/153278/WAGO-852-Industrial-Managed-Switch-Series-Code-Execution-Hardcoded-Credentials.htmlhttp://seclists.org/fulldisclosure/2019/Jun/18http://secunia.com/advisories/55113http://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/07/9http://www.ubuntu.com/usn/USN-1991-1https://bugzilla.redhat.com/show_bug.cgi?id=855385https://seclists.org/bugtraq/2019/Jun/14https://security.gentoo.org/glsa/201503-04
2013-10-09
Published