В ядре Linux устранена следующая уязвимость: ALSA: ac97: исправьте двойное освобождение в snd_ac97_controller_register() Если ac97_add_adapter() завершается неудачно, put_device() — правильный способ удаления. ссылка на устройство. kfree() не требуется. Добавьте kfree(), если idr_alloc() завершится сбоем, и в ac97_adapter_release(), чтобы сделать уборка. Найден при проверке кода.
Показать оригинальное описание (английский)
In the Linux kernel, the following vulnerability has been resolved: ALSA: ac97: fix a double free in snd_ac97_controller_register() If ac97_add_adapter() fails, put_device() is the correct way to drop the device reference. kfree() is not required. Add kfree() if idr_alloc() fails and in ac97_adapter_release() to do the cleanup. Found by code review.
Источники и патчи
- https://git.kernel.org/stable/c/21f8bc5179bed91c3f946adb5e5…
- https://git.kernel.org/stable/c/830988b6cf197e6dcffdfe2008c…
- https://git.kernel.org/stable/c/c80f9b3349a99a9d5b295f5bbc2…
- https://git.kernel.org/stable/c/cb73d37ac18bc1716690ff5255a…
- https://git.kernel.org/stable/c/fcc04c92cbb5497ce67c58dd2f0…