CVE-2012-3404: Medium severity GNU glibc vulnerability

Published Jun 20, 2012
·
Updated

It was discovered that the formatted printing functionality in glibc did not properly honor the size of a structure when calculating the amount of memory to allocate. A remote attacker could provide a specially crafted sequence of format specifiers, leading to an undersized buffer allocation and subsequent stack corruption, resulting in a crash or, potentially, FORTIFYSOURCE format string protection mechanism bypass, when processed.

References: http://sourceware.org/bugzilla/showbug.cgi?id=12445 http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=84a4211850e3d23a9d3a4f3b294752a3b30bc0ff

Other sources

The vfprintf function in stdio-common/vfprintf.c in libc in GNU C Library (aka glibc) 2.12 and other versions does not properly calculate a buffer length, which allows context-dependent attackers to bypass the FORTIFYSOURCE format-string protection mechanism and cause a denial of service (stack corruption and crash) via a format string that uses positional parameters and many format specifiers.

Affected Software

8 affected components
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=6.0

Event History

Jun 20, 2012
Data Sourced
07:26 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-3404?

The severity of CVE-2012-3404 is classified as high due to the potential for remote code execution.

2

How do I fix CVE-2012-3404?

To fix CVE-2012-3404, update the GNU C Library (glibc) to a version that includes the security patch.

3

Which software is affected by CVE-2012-3404?

CVE-2012-3404 affects versions of glibc 2.12 and certain versions of Red Hat and Ubuntu Linux.

4

Can CVE-2012-3404 lead to a buffer overflow?

Yes, CVE-2012-3404 can lead to a buffer overflow due to improper memory allocation when handling formatted printing.

5

Is CVE-2012-3404 being actively exploited?

At the time of its disclosure, CVE-2012-3404 was considered a potential target for exploitation, and users were advised to mitigate risks promptly.

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