В ядре Linux устранена следующая уязвимость:
серийный номер: pch: исправлена утечка ссылок на устройства PCI в pch_request_dma(). Как сказано в комментарии к pci_get_slot(), он возвращает pci_device со своим
Рефсчет увеличился. Вызывающий должен уменьшить счетчик ссылок на
вызов pci_dev_put().
Поскольку 'dma_dev' используется только для фильтрации канала в filter(), мы можем
вызовите pci_dev_put() перед выходом из pch_request_dma(). Добавьте
отсутствует pci_dev_put() для нормального пути и пути ошибки.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: serial: pch: Fix PCI device refcount leak in pch_request_dma() As comment of pci_get_slot() says, it returns a pci_device with its refcount increased. The caller must decrement the reference count by calling pci_dev_put(). Since 'dma_dev' is only used to filter the channel in filter(), we can call pci_dev_put() before exiting from pch_request_dma(). Add the missing pci_dev_put() for the normal and error path.