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. Reference: https://sourceware.org/bugzilla/show_bug.cgi?id=30068
Created glibc tracking bugs for this issue: Affects: fedora-36 [bug 2167667] Affects: fedora-37 [bug 2167669] Created zig tracking bugs for this issue: Affects: fedora-36 [bug 2167668]
(In reply to Sandipan Roy from comment #1) > Created glibc tracking bugs for this issue: > > Affects: fedora-36 [bug 2167667] > Affects: fedora-37 [bug 2167669] > > > Created zig tracking bugs for this issue: > > Affects: fedora-36 [bug 2167668] Please create a rawhide tracker for this. This only affects glibc 2.37, which is only in rawhide.
Created glibc tracking bugs for this issue: Affects: fedora-rawhide [bug 2167955] Created zig tracking bugs for this issue: Affects: fedora-rawhide [bug 2167956]
Fedora Rawhide glibc is fixed with glibc-2.37-1.fc38 https://bodhi.fedoraproject.org/updates/FEDORA-2023-da6855d11c
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s): https://access.redhat.com/security/cve/cve-2023-25139