Name | CVE-2023-25139 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
glibc (PTS) | jessie, jessie (lts) | 2.19-18+deb8u14 | fixed |
stretch (security) | 2.24-11+deb9u1 | fixed | |
stretch (lts), stretch | 2.24-11+deb9u7 | fixed | |
buster (security), buster, buster (lts) | 2.28-10+deb10u4 | fixed | |
bullseye | 2.31-13+deb11u11 | fixed | |
bullseye (security) | 2.31-13+deb11u10 | fixed | |
bookworm | 2.36-9+deb12u8 | fixed | |
bookworm (security) | 2.36-9+deb12u7 | fixed | |
sid, trixie | 2.40-3 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
glibc | source | (unstable) | (not affected) |
- glibc <not-affected> (Vulnerable code introduced in 2.37)
https://sourceware.org/bugzilla/show_bug.cgi?id=30068
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=c980549cc6a1c03c23cc2fe3e7b0fe626a0364b0
https://sourceware.org/cgit/glibc/tree/advisories/GLIBC-SA-2023-0001