Permissions, Privileges, and Access Controls in GNU C Library (glibc) - CVE-2012-3406

 

Permissions, Privileges, and Access Controls in GNU C Library (glibc) - CVE-2012-3406

Published: April 22, 2019 / Updated: June 3, 2025


Vulnerability identifier: #VU110114
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2012-3406
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to read and manipulate data.

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.


Affected software

GNU C Library (glibc)
Gentoo Linux
sys-libs/glibc

How to mitigate CVE-2012-3406

Install update from vendor's website.

sys-libs/glibc - update to 2.19-r1

External References

Related Security Bulletins