В ядре Linux устранена следующая уязвимость:
net/sched: act_api: избегать разыменования ERR_PTR в tcf_idrinfo_destroy
syzbot сообщил о сбое в tc_act_in_hw() во время демонтажа netns, где
tcf_idrinfo_destroy() передал значение ERR_PTR(-EBUSY) как tc_action
указатель, что приводит к недопустимому разыменованию.
Остерегайтесь записей ERR_PTR при повторении действия IDR, поэтому удалите его.
не вызывает tc_act_in_hw() для указателя ошибки.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net/sched: act_api: avoid dereferencing ERR_PTR in tcf_idrinfo_destroy syzbot reported a crash in tc_act_in_hw() during netns teardown where tcf_idrinfo_destroy() passed an ERR_PTR(-EBUSY) value as a tc_action pointer, leading to an invalid dereference. Guard against ERR_PTR entries when iterating the action IDR so teardown does not call tc_act_in_hw() on an error pointer.