Description
sprintf in the GNU C Library (glibc) 2.37 has a buffer overflow (out-of-bounds write) in some situations with a correct buffer size. This is unrelated to CWE-676. It may write beyond the bounds of the destination buffer when attempting to write a padded, thousands-separated string representation of a number, if the buffer is allocated the exact size required to represent that number as a string. For example, 1,234,567 (with padding to 13) overflows by two bytes.
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.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | glibc | 2.38-1.1 | openSUSE-SU-2024:13123-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | mpfr4 | 4.2.1-r0 | — |
| Alpine v3.23 | mpfr4 | 4.2.1-r0 | — |
| Alpine v3.22 | mpfr4 | 4.2.1-r0 | — |
| Alpine v3.21 | mpfr4 | 4.2.1-r0 | — |
| Alpine v3.20 | mpfr4 | 4.2.1-r0 | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | mpfr4 | 4.2.1-r0 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | glibc | 2.37-r1 | — |
Advisories 4
- SSA-398330 SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5 Siemens ProductCERT · Oct 13, 2026
- openSUSE-SU-2024:13123-1 glibc-2.38-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- ICSA-23-348-10 Siemens SIMATIC S7-1500 CISA ICS & IT advisories · Aug 12, 2025
- WID-SEC-2023-0277 GNU libc: Schwachstelle ermöglicht nicht spezifizierten Angriff BSI CERT-Bund (WID) · Feb 7, 2023