В ядре Linux устранена следующая уязвимость: drm/amd/display: Fix NULL deref в dcn401_update_clocks_update_dtb_dto [Why] resource_get_otg_master_for_stream() может вернуть NULL, если для заданного потока не найдена мастер-труба OTG. Текущий код снимает ссылку с этого указателя без проверки NULL. Это может привести к возможному удалению указателя NULL. [Как] Add явный NULL проверить и пропустить поток, если OTG мастер не найден.
Это похоже на dcn60_update_clocks_update_dtb_dto(). Обнаружены Linux Verification Center (linuxtesting.org) с помощью SVACE. (Вишня выбрана из commit ffde3d74c1faeeb645b66d02d02fdae3e073941b)
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Fix NULL deref in dcn401_update_clocks_update_dtb_dto [Why] resource_get_otg_master_for_stream() can return NULL if no OTG master pipe is found for a given stream. The current code dereferences this pointer without a NULL check. This may lead to a possible NULL pointer dereference. [How] Add an explicit NULL check and skip the stream if the OTG master is not found. This is similar to dcn60_update_clocks_update_dtb_dto(). Found by Linux Verification Center (linuxtesting.org) with SVACE. (cherry picked from commit ffde3d74c1faeeb645b66d02d02fdae3e073941b)