CVE-2012-3406: Medium severity GNU glibc vulnerability

Published May 31, 2012
·
Updated

It was discovered that the formatted printing functionality in glibc did not properly restrict the use of alloca(). A remote attacker could provide a specially crafted sequence of format specifiers, leading to a crash or, potentially, FORTIFYSOURCE format string protection mechanism bypass, when processed.

Other sources

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 FORTIFYSOURCE 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.

Affected Software

10 affected components
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

Event History

May 31, 2012
Data Sourced
09:38 AM
DescriptionSeverityAffected Software
Feb 10, 2014
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2012-3406?

CVE-2012-3406 has a moderate severity rating due to the potential for a crash or format string protection bypass.

2

How do I fix CVE-2012-3406?

To fix CVE-2012-3406, update the GNU C Library (glibc) to a patched version that addresses the vulnerability.

3

What versions are affected by CVE-2012-3406?

CVE-2012-3406 affects glibc versions 2.5 and 2.12, along with several specific versions of Red Hat Enterprise and Ubuntu Linux.

4

Can CVE-2012-3406 be exploited remotely?

Yes, a remote attacker could exploit CVE-2012-3406 by sending specially crafted input sequences.

5

What are the potential impacts of CVE-2012-3406?

The potential impacts of CVE-2012-3406 include application crashes and the risk of bypassing security mechanisms.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203