In the Linux kernel, the following vulnerability has been resolved: media: zoran: Avoid freeing a registered video_device twice zoran_init_video_device() installs zoran_vdev_release() as the video_device release callback through zoran_template. После того, как video_register_device() преуспевает, video_unregister_device() удаляет зарегистрированную ссылку video_device, и ядро V4L2 в конечном итоге вызывает этот вызов, который kfree()s video_device. zoran_exit_video_devices() назвал video_unregister_device(), а затем kfree(zr->video_dev), поэтому демонтаж устройства может освободить один и тот же video_device дважды. Удалите прямой kfree() и очистите кэшированный указатель после снятия регистрации.
Путь отказа предварительной регистрации остается свободным, потому что video_device не был зарегистрирован там. Эта проблема была обнаружена с помощью проверки статического анализа и подтверждена ручным анализом источников.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: media: zoran: Avoid freeing a registered video_device twice zoran_init_video_device() installs zoran_vdev_release() as the video_device release callback through zoran_template. After video_register_device() succeeds, video_unregister_device() drops the registered video_device reference and the V4L2 core eventually invokes that release callback, which kfree()s the video_device. zoran_exit_video_devices() called video_unregister_device() and then kfree(zr->video_dev), so device teardown could free the same video_device twice. Remove the direct kfree() and clear the cached pointer after unregistering. The pre-registration failure path keeps its manual free because the video_device was not registered there. This issue was found by a static analysis checker and confirmed by manual source review.
Характеристики атаки
Последствия
Строка CVSS v3.1