В ядре Linux устранена следующая уязвимость: media: micro-isc: take a reference on the parsed endpoints for_each_endpoint_of_node() drops the reference on the current node as it progresses. xisc_parse_dt() и isc_parse_dt() сохраняют узел в subdev_entity->epn и выпускают его позже с of_node_put(), но никогда не использовали собственную ссылку. Это подводит пересчет и может use-after-free, достигаемый через наложение дерева устройства камеры. Возьмите ссылку с of_node_get () при хранении узла и сбросьте его в microchip_isc_subdev_cleanup (), чтобы объекты, которых цикл связывания никогда не достигает при раннем выходе, не пропускали его.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: media: microchip-isc: take a reference on the parsed endpoints for_each_endpoint_of_node() drops the reference on the current node as it advances. xisc_parse_dt() and isc_parse_dt() store the node in subdev_entity->epn and release it later with of_node_put(), but never took their own reference, so the stored pointer refers to an already-released node. This underflows the refcount and can use-after-free, reachable through the camera device tree overlay. Take a reference with of_node_get() when storing the node, and drop it in microchip_isc_subdev_cleanup() so the entities the bind loop never reaches on an early exit do not leak it.