В ядре Linux устранена следующая уязвимость: media: intel/ipu6: fix async notifier clearup leak on parse error isys_notifier_init() вызывает v4l2_async_nf_init(), а затем добавляет fwnode удалённые поддевы в цикл с v4l2_async_nf_add_fwnode_remote(). Если конечная точка разбирается или добавляется частично через цикл, она переходит к err_parse и возвращается без вызова v4l2_async_nf_cleanup(), пропуская каждый v4l2_async_connection, уже добавленный в список ожидания уведомителя. Путь отказа регистра чуть ниже уже корректно очищается, и звонящий только разочаровывает уведомителя (isys_notifier_cleanup()) после того, как isys_notifier_init() вернул успех.
Очистить уведомителя на пути разбора ошибки тоже.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: media: intel/ipu6: fix async notifier cleanup leak on parse error isys_notifier_init() calls v4l2_async_nf_init() and then adds fwnode remote subdevs in a loop with v4l2_async_nf_add_fwnode_remote(). If an endpoint parse or add fails partway through the loop, it jumps to err_parse and returns without calling v4l2_async_nf_cleanup(), leaking every v4l2_async_connection already added to the notifier's waiting list. The register-failure path just below already cleans up correctly, and the caller only tears the notifier down (isys_notifier_cleanup()) once isys_notifier_init() has returned success. Clean up the notifier on the parse error path too.