CVE-2012-3406Gnu Glibc
Medium 6.8 No auth needed
Follow: this CVE · Gnu · Gnu Glibc We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 2.0
- 6.8
- EPSS
- 3.2% probability of exploitation in 30 days · percentile 89
- Auth required
- No
- Published
- Feb 10, 2014
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-264
- Vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
What happens
The vfprintf function in stdio-common/vfprintf.c in GNU C Library (aka glibc) 2.5, 2.12, and probably other versions does not "properly restrict the use of" the alloca function when allocating the SPECS array, which allows context-dependent attackers to bypass the FORTIFY_SOURCE format-string protection mechanism and cause a denial of service (crash) or possibly execute arbitrary code via a crafted format string using positional parameters and a large number of format specifiers, a different vulnerability than CVE-2012-3404 and CVE-2012-3405.
What to do
- Apply the vendor's security update for Glibc.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gnu | glibc | 2.5 |
| gnu | glibc | 2.12 |
| redhat | enterprise_virtualization | 3.0 |
| canonical | ubuntu_linux | 8.04 |
| canonical | ubuntu_linux | 10.04 |
| canonical | ubuntu_linux | 11.04 |
| canonical | ubuntu_linux | 11.10 |
| canonical | ubuntu_linux | 12.04 |
| redhat | enterprise_linux | 5 |
| redhat | enterprise_linux | 6.0 |
Official sources
References
Links published by the sources. Open them with care.