CVE-2012-3406

glibc: printf() unbound alloca() usage in case of positional parameters + many format specs

Published Feb 10, 2014 CVSS 2.0 · 6.8 Medium EPSS 3.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-165-1 eglibc security update
Debian DSA Debian DSA DSA-3169-1 eglibc security update
EUVD EUVD EUVD-2012-3377 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.
Ubuntu USN Ubuntu USN USN-1589-1 GNU C Library vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 6, 2024, 8:05 PM
Reserved
Jun 14, 2012, 12:00 AM
Status
Modified
Published
Feb 10, 2014, 6:15 PM
Modified
Jun 16, 2026, 11:43 PM
Severity
Moderate
Public date
Jul 11, 2012, 12:00 AM