В ядре Linux устранена следующая уязвимость: drm/amdgpu/atom: Check kcalloc() для буфера WS в amdgpu_atom_execute_table_locked() kcalloc() может выйти из строя. Когда WS не равен нулю, а выделение не удается, ectx.ws остается NULL, в то время как ectx.ws_size установлен, что приводит к потенциальному удалению указателя NULL в atom_get_src_int () при доступе к записям WS. Возвращается -ENOMEM в случае неудачного выделения, чтобы избежать смещения NULL.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu/atom: Check kcalloc() for WS buffer in amdgpu_atom_execute_table_locked() kcalloc() may fail. When WS is non-zero and allocation fails, ectx.ws remains NULL while ectx.ws_size is set, leading to a potential NULL pointer dereference in atom_get_src_int() when accessing WS entries. Return -ENOMEM on allocation failure to avoid the NULL dereference.