В ядре Linux устранена следующая уязвимость:
drm/xe/gsc: исправлено двойное освобождение управляемого BO в пути ошибки. Путь ошибки в xe_gsc_init_post_hwconfig() явно освобождает BO.
выделено с помощью xe_managed_bo_create_pin_map() через
xe_bo_unpin_map_no_vm(). Так как у управляемого БО уже есть devm
зарегистрировано действие очистки, это приводит к двойному освобождению, когда devm
раскручивается при выходе из строя зонда.
Удалите явную свободу и позвольте devm обработать ее в соответствии с
все остальные вызывающие программы xe_managed_bo_create_pin_map().
(вишня выбрана из коммита 71d61e3e299a17139e47f980a4d6f425b2c59bf7)
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: drm/xe/gsc: Fix double-free of managed BO in error path The error path in xe_gsc_init_post_hwconfig() explicitly frees a BO allocated with xe_managed_bo_create_pin_map() via xe_bo_unpin_map_no_vm(). Since the managed BO already has a devm cleanup action registered, this causes a double-free when devm unwinds during probe failure. Remove the explicit free and let devm handle it, consistent with all other xe_managed_bo_create_pin_map() callers. (cherry picked from commit 71d61e3e299a17139e47f980a4d6f425b2c59bf7)