CVE-2026-70457
Beschrijving NL
rsync 3.2.3 voor 3.5.0 bevat een out-of-bounds schrijf in parse_size_arg() waarbij de retourwaarde van snprintf() direct als index wordt gebruikt in een .bss-segment array zonder grenzencontrole. Wanneer snprintf de opgemaakte tekenreeks afkapt, is de retourwaarde gelijk aan het aantal tekens dat zou zijn geschreven, inclusief het afgekorte gedeelte, en deze waarde kan de lengte van de array overschrijden. Het daaropvolgende geïndexeerde schrijfgeheugen richt zich op geheugen buiten de beoogde arraygrenzen, waardoor het .bss-geheugen wordt beschadigd.
Origineel (Engels) tonen
rsync 3.2.3 before 3.5.0 contains an out-of-bounds write in parse_size_arg() where the return value of snprintf() is used directly as an index into a .bss-segment array without bounds checking. When snprintf truncates the formatted size string, the return value equals the number of characters that would have been written including the truncated portion, and this value may exceed the array length. The subsequent indexed write targets memory outside the intended array bounds, corrupting .bss memory.