CVE-2012-4412
Integer overflow in string/strcoll_l.c in the GNU C Library (aka glibc or libc6) 2.17 and earlier...
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.
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2012-4412- CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-189
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2012-4412- Updated
- 2026-11-02
EUVDEUVD-2012-4349 No score
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.
- Record
EUVD-2012-4349- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-cq77-m6w7-c2xc No score
Integer overflow in string/strcoll_l.c in the GNU C Library (aka glibc or libc6) 2.17 and earlier...
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.
- Record
GHSA-cq77-m6w7-c2xc- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2012-4412- Updated
- 2026-11-02
OSVDEBIAN-CVE-2012-4412 No score
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.
- Record
DEBIAN-CVE-2012-4412- Updated
- 2026-11-02
Show 6 moreShow less
OSVMGASA-2013-0340 No score
Updated glibc package fixes security vulnerabilities
Updated glibc packages fixes the following security issues:
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. (CVE-2012-4412)
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. (CVE-2012-4424)
pt_chown in GNU C Library (aka glibc or libc6) before 2.18 does not properly check permissions for tty files, which allows local users to change the permission on the files and obtain access to arbitrary pseudo-terminals by leveraging a FUSE file system. (CVE-2013-2207) NOTE! This is fixed by removing pt_chown wich may break chroots if their devpts was not mounted correctly. (make sure to mount the devpts correctly with gid=5)
sysdeps/posix/readdir_r.c in the GNU C Library (aka glibc or libc6) 2.18 and earlier allows context-dependent attackers to cause a denial of service (out-of-bounds write and crash) or possibly execute arbitrary code via a crafted (1) NTFS or (2) CIFS image. (CVE-2013-4237)
Multiple integer overflows in malloc/malloc.c in the GNU C Library (aka glibc or libc6) 2.18 and earlier allow context-dependent attackers to cause a denial of service (heap corruption) via a large value to the (1) pvalloc, (2) valloc, (3) posix_memalign, (4) memalign, or (5) aligned_alloc functions. (CVE-2013-4332)
A stack (frame) overflow flaw, which led to a denial of service (application crash), was found in the way glibc's getaddrinfo() function processed certain requests when called with AF_INET6. A similar flaw to CVE-2013-1914, this affects AF_INET6 rather than AF_UNSPEC (CVE-2013-4458).
The PTR_MANGLE implementation in the GNU C Library (aka glibc or libc6) 2.4, 2.17, and earlier, and Embedded GLIBC (EGLIBC) does not initialize the random value for the pointer guard, which makes it easier for context- dependent attackers to control execution flow by leveraging a buffer- overflow vulnerability in an application and using the known zero value pointer guard to calculate a pointer address. (CVE-2013-4788)
Other fixes in this update:
- Correct the processing of '\x80' characters in crypt_freesec.c
- drop minimal required kernel to 2.6.32 so it works in chroots on top of enterprise kernels and for OpenVZ users.
- fix typo in nscd.service
- Record
MGASA-2013-0340- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10154-1 No score
glibc-2.24-2.3 on GA media
These are all security issues fixed in the glibc-2.24-2.3 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10154-1- Updated
- 2026-11-02
OSVSUSE-RU-2015:0794-1 No score
Security update for glibc
This glibc update fixes a critical privilege escalation problem and two non-security issues:
* bnc#892073: An off-by-one error leading to a heap-based buffer
overflow was found in __gconv_translit_find(). An exploit that
targets the problem is publicly available. (CVE-2014-5119)
* bnc#892065: setenv-alloca.patch: Avoid unbound alloca in setenv.
* bnc#888347: printf-multibyte-format.patch: Don't parse %s format
argument as multi-byte string.
Security Issues:
* CVE-2014-5119
<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-5119>
- Record
SUSE-RU-2015:0794-1- Updated
- 2026-11-02
OSVSUSE-SU-2015:0253-1 No score
Security update for glibc
This glibc update fixes a critical privilege escalation problem and two non-security issues:
* bnc#892073: An off-by-one error leading to a heap-based buffer
overflow was found in __gconv_translit_find(). An exploit that
targets the problem is publicly available. (CVE-2014-5119)
* bnc#892065: setenv-alloca.patch: Avoid unbound alloca in setenv.
* bnc#888347: printf-multibyte-format.patch: Don't parse %s format
argument as multi-byte string.
Security Issues:
* CVE-2014-5119
<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-5119>
- Record
SUSE-SU-2015:0253-1- Updated
- 2026-11-02
OSVSUSE-SU-2015:0439-1 No score
Security update for glibc
This glibc update fixes a critical privilege escalation problem and two non-security issues:
* bnc#892073: An off-by-one error leading to a heap-based buffer
overflow was found in __gconv_translit_find(). An exploit that
targets the problem is publicly available. (CVE-2014-5119)
* bnc#892065: setenv-alloca.patch: Avoid unbound alloca in setenv.
* bnc#888347: printf-multibyte-format.patch: Don't parse %s format
argument as multi-byte string.
Security Issues:
* CVE-2014-5119
<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-5119>
- Record
SUSE-SU-2015:0439-1- Updated
- 2026-11-02
OSVSUSE-SU-2015:0551-1 No score
Security update for glibc
This update for glibc contains the following fixes:
* Fix integer overflows in malloc (CVE-2013-4332, bnc#839870)
* Fix buffer overflow in glob (bnc#691365)
* Fix buffer overflow in strcoll (CVE-2012-4412, bnc#779320)
* Update mount flags in <sys/mount.h> (bnc#791928)
* Fix buffer overrun in regexp matcher (CVE-2013-0242, bnc#801246)
* Fix memory leaks in dlopen (bnc#811979)
* Fix stack overflow in getaddrinfo with many results (CVE-2013-1914,
bnc#813121)
* Fix check for XEN build in glibc_post_upgrade that causes missing
init re-exec (bnc#818628)
* Don't raise UNDERFLOW in tan/tanf for small but normal argument
(bnc#819347)
* Properly cross page boundary in SSE4.2 implementation of strcmp
(bnc#822210)
* Fix robust mutex handling after fork (bnc#827811)
* Fix missing character in IBM-943 charset (bnc#828235)
* Fix use of alloca in gaih_inet (bnc#828637)
* Initialize pointer guard also in static executables (CVE-2013-4788,
bnc#830268)
* Fix readdir_r with long file names (CVE-2013-4237, bnc#834594).
Security Issues:
* CVE-2012-4412
<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-4412>
* CVE-2013-0242
<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-0242>
* CVE-2013-1914
<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-1914>
* CVE-2013-4237
<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-4237>
* CVE-2013-4332
<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-4332>
* CVE-2013-4788
<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-4788>
- Record
SUSE-SU-2015:0551-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
glibcDebian:12 |
before 2.17-94 | 2.17-94 |
glibcDebian:13 |
before 2.17-94 | 2.17-94 |
glibcDebian:14 |
before 2.17-94 | 2.17-94 |
eglibcDebian:6.0 |
before 2.11.3-4+deb6u5, plus listed versions 2.11.2-102.11.2-10+m68k.12.11.2-112.11.2-11+m68k.12.11.2-12 Show 5 moreShow less2.11.2-132.11.3-12.11.3-22.11.3-32.11.3-4 |
2.11.3-4+deb6u5 |
glibcMageia:2 |
before 2.14.1-11.2.mga2 | 2.14.1-11.2.mga2 |
glibcMageia:3 |
before 2.17-7.2.mga3 | 2.17-7.2.mga3 |
glibcopenSUSE:Tumbleweed |
before 2.24-2.3 | 2.24-2.3 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | GNU glibc - 'strcoll()' Routine Integer Overflow | 2012-09-07 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2012-4412 is a high vulnerability (CVSS 7.5) in Gnu Glibc, published September 13, 2013. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 17.5%, the 97th percentile. Fixed in glibc 2.17-94.
References
secunia.com/advisories/55113
bugzilla.redhat.com/show_bug.cgi?id=855385
ubuntu.com/usn/USN-1991-1
mandriva.com/security/advisories?name=MDVSA-2013:284
sourceware.org/bugzilla/show_bug.cgi?id=14547
openwall.com/lists/oss-security/2012/09/07/9
Show 121 moreShow less
security.gentoo.org/glsa/201503-04
mandriva.com/security/advisories?name=MDVSA-2013:283
seclists.org/fulldisclosure/2019/Jun/18
seclists.org/bugtraq/2019/Jun/14
packetstormsecurity.com/files/153278/WAGO-852-Industrial-Managed-Switch-Series-Code-Execution-Hardcoded-Credentials.html
nvd.nist.gov/vuln/detail/CVE-2012-4412
github.com/advisories/GHSA-cq77-m6w7-c2xc
security-tracker.debian.org/tracker/CVE-2012-4412
advisories.mageia.org/MGASA-2013-0340.html
bugs.mageia.org/show_bug.cgi?id=11059
bugzilla.redhat.com/show_bug.cgi?id=858238
bugzilla.redhat.com/show_bug.cgi?id=976408
bugzilla.redhat.com/show_bug.cgi?id=995839
bugzilla.redhat.com/show_bug.cgi?id=1007545
bugzilla.redhat.com/show_bug.cgi?id=985625
bugzilla.redhat.com/show_bug.cgi?id=1022280
suse.com/support/update/announcement//suse-ru-20150794-1
bugzilla.suse.com/691365
bugzilla.suse.com/779320
bugzilla.suse.com/791928
bugzilla.suse.com/801246
bugzilla.suse.com/811979
bugzilla.suse.com/813121
bugzilla.suse.com/819347
bugzilla.suse.com/822210
bugzilla.suse.com/827811
bugzilla.suse.com/828235
bugzilla.suse.com/828637
bugzilla.suse.com/830268
bugzilla.suse.com/834594
bugzilla.suse.com/836746
bugzilla.suse.com/839870
bugzilla.suse.com/844309
bugzilla.suse.com/847227
bugzilla.suse.com/854445
bugzilla.suse.com/863499
bugzilla.suse.com/864081
bugzilla.suse.com/872832
bugzilla.suse.com/882028
bugzilla.suse.com/882600
bugzilla.suse.com/883217
bugzilla.suse.com/886416
bugzilla.suse.com/887022
bugzilla.suse.com/888347
bugzilla.suse.com/891843
bugzilla.suse.com/892065
bugzilla.suse.com/892073
bugzilla.suse.com/894553
bugzilla.suse.com/894556
bugzilla.suse.com/903288
bugzilla.suse.com/904461
bugzilla.suse.com/906371
bugzilla.suse.com/909053
bugzilla.suse.com/913646
bugzilla.suse.com/915526
bugzilla.suse.com/916222
bugzilla.suse.com/917072
bugzilla.suse.com/919678
suse.com/security/cve/CVE-2012-4412
suse.com/security/cve/CVE-2012-6656
suse.com/security/cve/CVE-2013-0242
suse.com/security/cve/CVE-2013-1914
suse.com/security/cve/CVE-2013-4237
suse.com/security/cve/CVE-2013-4332
suse.com/security/cve/CVE-2013-4357
suse.com/security/cve/CVE-2013-4458
suse.com/security/cve/CVE-2013-4788
suse.com/security/cve/CVE-2013-7423
suse.com/security/cve/CVE-2014-0475
suse.com/security/cve/CVE-2014-4043
suse.com/security/cve/CVE-2014-5119
suse.com/security/cve/CVE-2014-6040
suse.com/security/cve/CVE-2014-7817
suse.com/security/cve/CVE-2014-9402
suse.com/security/cve/CVE-2015-0235
suse.com/security/cve/CVE-2015-1472
suse.com/support/update/announcement/2015/suse-su-20150253-1
suse.com/support/update/announcement/2015/suse-su-20150439-1
suse.com/support/update/announcement/2015/suse-su-20150551-1
bugzilla.suse.com/684534
bugzilla.suse.com/741345
bugzilla.suse.com/743689
bugzilla.suse.com/744996
bugzilla.suse.com/745658
bugzilla.suse.com/746824
bugzilla.suse.com/747768
bugzilla.suse.com/750741
bugzilla.suse.com/760795
bugzilla.suse.com/763512
bugzilla.suse.com/767266
bugzilla.suse.com/770891
bugzilla.suse.com/775690
bugzilla.suse.com/777233
bugzilla.suse.com/783060
bugzilla.suse.com/785041
bugzilla.suse.com/793146
bugzilla.suse.com/795129
bugzilla.suse.com/818628
bugzilla.suse.com/910599
bugzilla.suse.com/918233
suse.com/security/cve/CVE-2012-0864
suse.com/security/cve/CVE-2012-3404
suse.com/security/cve/CVE-2012-3405
suse.com/security/cve/CVE-2012-3406
suse.com/security/cve/CVE-2012-3480
suse.com/security/cve/CVE-2009-5029
suse.com/security/cve/CVE-2013-2207
suse.com/security/cve/CVE-2014-8121
suse.com/security/cve/CVE-2014-9761
suse.com/security/cve/CVE-2015-1473
suse.com/security/cve/CVE-2015-1781
suse.com/security/cve/CVE-2015-7547
suse.com/security/cve/CVE-2015-8776
suse.com/security/cve/CVE-2015-8777
suse.com/security/cve/CVE-2015-8778
suse.com/security/cve/CVE-2015-8779
suse.com/security/cve/CVE-2016-1234
suse.com/security/cve/CVE-2016-3075
suse.com/security/cve/CVE-2016-3706
suse.com/security/cve/CVE-2016-4429
suse.com/security/cve/CVE-2016-5417