Buffer overflow in strfmon and strfmon_l right-justification padding
The GNU C Library glibc
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| The GNU C Library glibc |
| No fix yet |
Original description
Calling strfmon and strfmon_l in the GNU C Library version 2.38 to 2.44 can write past the end of the caller-supplied output buffer when a conversion uses right-justified width padding.
Exploitation requires an application code path that calls strfmon or strfmon_l with right-justified width padding into a destination buffer that is large enough for the padding to succeed but too small for the internal memmove call. The field width or format may be attacker-influenced or a fixed susceptible pattern in the caller.
At the time of publication, no network-facing application impact is known.
From the CVE record · glibc