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

VectorAV: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

ALT-PU-2016-1135
CESA-2021_0348
CVE-2020-29573
OPENSUSE-SU-2021:0358-1
OPENSUSE-SU-2021_0358-1
OPENSUSE-SU-2024:10792-1
RHSA-2021:0348
RHSA-2021:2813
RHSA-2021:2998
RHSA-2021:3315
RHSA-2021_0348
SUSE-SU-2021:0653-1
SUSE-SU-2021:1165-1
SUSE-SU-2022:2886-1
SUSE-SU-2024:0759-1

Affected Products

Alt Linux
Centos
Gnu C Library
Red Hat
Suse