В ядре Linux устранена следующая уязвимость:
drm/rockchip: dw_dp: исправлено значение null-ptr-deref в dw_dp_remove(). Попытка доступа к данным драйвера в драйвере платформы ->remove()
обратный вызов может привести к разыменованию нулевого указателя, поскольку нет
гарантировать, что вызов компонента ->bind() обратного вызова
Platform_set_drvdata() был выполнен. Распространенный сценарий — когда драйвер Rockchip DRM не удалось запустить.
компонент_bind_all() из-за (несвязанной) ошибки, вызывающей преждевременное
возврат из rockchip_drm_bind().
Отбросьте ненужный вызов Platform_get_drvdata() и вместо этого
ссылайтесь на структуру целевого устройства через Platform_device.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: drm/rockchip: dw_dp: Fix null-ptr-deref in dw_dp_remove() Attempting to access driver data in the platform driver ->remove() callback may lead to a null pointer dereference since there is no guaranty that the component ->bind() callback invoking platform_set_drvdata() was executed. A common scenario is when Rockchip DRM driver didn't manage to run component_bind_all() because of an (unrelated) error causing early return from rockchip_drm_bind(). Drop the unnecessary call to platform_get_drvdata() and, instead, reference the target device structure via platform_device.