Skip to content
OpenAdvisories
Unscored CVE-2012-3406 EUVD-2012-3377GHSA-8mj9-m673-h2gf

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 res…

Published Feb 10, 2014 · Updated Aug 6, 2024 · Assigned by redhat

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 glibc 2.19-14 —
Debian 13 glibc 2.19-14 —
Debian 12 glibc 2.19-14 —
Debian 7 eglibc 2.13-38+deb7u8 DSA-3169-1
Debian 6.0 eglibc 2.11.3-4+deb6u5 DLA-165-1
ReleasePackageFixed inAdvisory
RHEL 6 nscd +7 2.12-1.80.el6_3.3 RHSA-2012:1098
RHEL 6 rhev-hypervisor6 6.3-20120815.0.el6_3 RHSA-2012:1200
RHEL 5 nscd +6 2.5-81.el5_8.4 RHSA-2012:1097
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed glibc 2.24-2.3 openSUSE-SU-2024:10154-1

Advisories 6

References