Gửi #544226: Open Source STB Project (https://github.com/nothings/stb) Latest (<= commit f056911) stbhw_build_tileset_from_image Out-of-Bounds Readthông tin

tiêu đềOpen Source STB Project (https://github.com/nothings/stb) Latest (<= commit f056911) stbhw_build_tileset_from_image Out-of-Bounds Read
Mô tảOut-of-Bounds read via user-controlled index. The variable `w` is supplied by the user and directly influences the arithmetic used to determine which element of `data` is read into the local `header` array. If `w` is set to an unexpected or small value, the computed index (`w*3 - 1 - i`) can fall outside the bounds of the provided `data` buffer, resulting in an out-of-bounds read. STBHW_EXTERN int stbhw_build_tileset_from_image(stbhw_tileset *ts, unsigned char *data, int stride, int w, int h) { // ... unsigned char header[9]; // ... for (i = 0; i < 9; ++i) { // w is controlled by the user, affecting the read index: header[i] = data[w*3 - 1 - i] ^ (i * 55); } // ... }
Người dùng ninpwn (UID 82253)
Đệ trình27/03/2025 15:49 (cách đây 2 những năm)
Kiểm duyệt07/04/2025 12:56 (11 days later)
Trạng tháiđược chấp nhận
Mục VulDB303684 [Nothings stb đến f056911 Header Array stbhw_build_tileset_from_image w tiết lộ thông tin]
điểm17

Want to know what is going to be exploited?

We predict KEV entries!