PT-2020-17196 · Gnu+4 · Gnu C Library+4
Florian Weimer
·
Published
2016-02-19
·
Updated
2024-06-15
·
CVE-2020-29573
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
GNU C Library (aka glibc or libc6) versions prior to 2.23
Description
The issue is a stack-based buffer overflow in the GNU C Library, which occurs when the input to any of the printf family of functions is an 80-bit long double with a non-canonical bit pattern. This can happen when passing a specific value, such as
x00x04x00x00x00x00x00x00x00x04, to sprintf. The problem does not affect glibc by default in 2016 or later, which means versions 2.23 or later are not affected due to commits made in 2015 for inlining of C99 math functions through use of GCC built-ins.Recommendations
For GNU C Library (aka glibc or libc6) versions prior to 2.23, update to version 2.23 or later to resolve the issue. As a temporary workaround, consider avoiding the use of non-canonical bit patterns with the printf family of functions until a patch is available. Restrict access to the
sprintf function to minimize the risk of exploitation.Exploit
Fix
Memory Corruption
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Centos
Gnu C Library
Red Hat
Suse