В ядре Linux устранена следующая уязвимость: gpiolib: исправлена утечка памяти в gpiod_set_array_value_complex() на путях ошибок A drive-by review by Sashiko сообщает, что после неудачного вызова в gpiochip_set_multiple(), gpiod_set_array_value() возвращается резко, минуя освобождение возможно выделенных растровых изображений, что потенциально приводит к утечке памяти. Это маловероятный путь ошибки, но он возможен. Отложите проверку кода возврата до блокировки bitmap_free().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths A drive-by review by Sashiko reports that, after a failed call to gpiochip_set_multiple(), gpiod_set_array_value() returns abruptly, bypassing the freeing of possibly alloced bitmaps, potentially leaking memory. It is an unlikely error path, but is possible. Defer the return code check until after the bitmap_free() block.
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.12.114
|
6.12.115
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.15
|
6.18.59
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.15
|
7.2.13
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.15
|
7.3
|