В ядре Linux устранена следующая уязвимость:
drm/exynos: vidi: используйте priv->vidi_dev для поиска ctx в vidi_connection_ioctl()
vidi_connection_ioctl() извлекает данные driver_data из drm_dev->dev в
получить указатель на структуру vidi_context. Однако drm_dev->dev – это
главное устройство exynos-drm, и содержащиеся в нем данные driver_data не являются
компонентное устройство vidi, но совершенно другое устройство. Это может привести к различным ошибкам, начиная от разыменования нулевого указателя и заканчивая
доступ к мусорному значению, в неудачных случаях, к ошибкам за пределами границ,
ошибки использования после освобождения и многое другое.
Чтобы решить эту проблему, нам нужно сохранить/удалить указатель устройства Vidi в
exynos_drm_private->vidi_dev во время привязки/отмены привязки, а затем прочитайте это
exynos_drm_private->vidi_dev в ioctl(), чтобы получить правильные
Указатель struct vidi_context.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: drm/exynos: vidi: use priv->vidi_dev for ctx lookup in vidi_connection_ioctl() vidi_connection_ioctl() retrieves the driver_data from drm_dev->dev to obtain a struct vidi_context pointer. However, drm_dev->dev is the exynos-drm master device, and the driver_data contained therein is not the vidi component device, but a completely different device. This can lead to various bugs, ranging from null pointer dereferences and garbage value accesses to, in unlucky cases, out-of-bounds errors, use-after-free errors, and more. To resolve this issue, we need to store/delete the vidi device pointer in exynos_drm_private->vidi_dev during bind/unbind, and then read this exynos_drm_private->vidi_dev within ioctl() to obtain the correct struct vidi_context pointer.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 6
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.3
|
5.10.253
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.203
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.167
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.130
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.18.14
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
6.19.4
|