В ядре Linux устранена следующая уязвимость: media: ipu6: Do not free aux device pdata after init ipu6_bus_initialize_device() хранит указатель pdata isys/psys в struct ipu6_bus_device и инициализирует вспомогательное устройство. После этого раскручивание ошибки должно отбросить ссылку на вспомогательное устройство и освободить ipu6_bus_release() как устройство шины, так и adev->pdata. Пути isys и psys init уже вызывают put_device(), когда инициализация MMU терпит неудачу, а ipu6_bus_add_device() вызывает auxiliary_device_uninit() при отказе auxiliary_device_add().
Таким образом, оба пути запускают обратный вызов автобуса. Дополнительный kfree(pdata) в абонентах может выпустить тот же объект во второй раз. Удалить ручной pdata frees после инициализации вспомогательного устройства.
Эта проблема была обнаружена с помощью проверки статического анализа и подтверждена ручным анализом источников.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: media: ipu6: Do not free aux device pdata after init ipu6_bus_initialize_device() stores the isys/psys pdata pointer in struct ipu6_bus_device and initializes the auxiliary device. After that point, error unwinding must drop the auxiliary device reference and let ipu6_bus_release() free both the bus device and adev->pdata. The isys and psys init paths already call put_device() when MMU initialization fails, and ipu6_bus_add_device() calls auxiliary_device_uninit() on auxiliary_device_add() failure. Both paths therefore run the bus release callback. The extra kfree(pdata) in the callers can release the same object a second time. Remove the manual pdata frees after the auxiliary device has been initialized. This issue was found by a static analysis checker and confirmed by manual source review.
Характеристики атаки
Последствия
Строка CVSS v3.1