Description
sysdeps/i386/ldbl2mpn.c in the GNU C Library (aka glibc or libc6) before 2.23 on x86 targets has a stack-based buffer overflow if the input to any of the printf family of functions is an 80-bit long double with a non-canonical bit pattern, as seen when passing a \x00\x04\x00\x00\x00\x00\x00\x00\x00\x04 value to sprintf. NOTE: the issue does not affect glibc by default in 2016 or later (i.e., 2.23 or later) because of commits made in 2015 for inlining of C99 math functions through use of GCC built-ins. In other words, the reference to 2.23 is intentional despite the mention of "Fixed for glibc 2.33" in the 26649 reference.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.0, < V3.1.5 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.0, < V3.1.5 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 |
References
- https://security.gentoo.org/glsa/202101-20Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210122-0004/Third Party Advisory
- https://sourceware.org/bugzilla/show_bug.cgi?id=26649Issue Tracking, Patch, Third Party Advisory
- https://sourceware.org/pipermail/libc-alpha/2020-September/117779.htmlPatch, Third Party Advisory
- https://security.gentoo.org/glsa/202101-20Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210122-0004/Third Party Advisory
- https://sourceware.org/bugzilla/show_bug.cgi?id=26649Issue Tracking, Patch, Third Party Advisory
- https://sourceware.org/pipermail/libc-alpha/2020-September/117779.htmlPatch, Third Party Advisory
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
Timeline
- Published
- Dec 6, 2020
- Last modified
- Oct 14, 2026
- NVD status
- Modified