---
title: "CVE-2012-3406\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2012-3406?format=md
keywords: index, follow
---

# CVE-2012-3406

Publication date 13 July 2012

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## Description

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.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2012-3406?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| eglibc | 12.04 LTS precise | Fixed 2.15-0ubuntu10.2 |
| 11.10 oneiric | Fixed 2.13-20ubuntu5.2 |
| 11.04 natty | Fixed 2.13-0ubuntu13.2 |
| 10.04 LTS lucid | Fixed 2.11.1-0ubuntu7.11 |
| 8.04 LTS hardy | Not in release |
| glibc | 12.04 LTS precise | Not in release |
| 11.10 oneiric | Not in release |
| 11.04 natty | Not in release |
| 10.04 LTS lucid | Not in release |
| 8.04 LTS hardy | Fixed 2.7-10ubuntu8.2 |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## Notes

---

### [sbeattie](https://launchpad.net/~sbeattie)

bug23-3.c from redhat patch does seem to reproduce issue on
all releases

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-3406)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2012-3406)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2012-3406)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2012-3406)

### Related Ubuntu Security Notices (USN)

+ [USN-1589-1](https://usn.ubuntu.com/USN-1589-1)
+ GNU C Library vulnerabilities
+ 2 October 2012

### Other references

* <https://bugzilla.redhat.com/show_bug.cgi?id=826943>
* <https://bugzilla.redhat.com/attachment.cgi?id=594722&action=diff>
* <https://bugzilla.redhat.com/attachment.cgi?id=594727&action=diff>
* <http://www.openwall.com/lists/oss-security/2012/07/11/5>
* <http://www.openwall.com/lists/oss-security/2012/07/11/17>
* <https://www.cve.org/CVERecord?id=CVE-2012-3406>
