В ядре Linux была устранена следующая уязвимость: media: saa7164: fix cleanup on resource distributation failure saa7164_dev_setup() добавляет устройство в глобальный saa7164_devlist перед запросом областей памяти PCI BAR. Если get_resources() терпит неудачу, saa7164_dev_setup() уменьшает количество устройств и возвращает ошибку, но оставляет устройство на saa7164_devlist. Затем путь ошибки зонда освобождает устройство, оставляя болтающуюся запись в глобальном списке.
Повторно используйте существующий путь ошибки отображения MMIO, чтобы удалить устройство из saa7164_devlist и уменьшить количество устройств перед возвращением. Также выпустите BAR0, если он был успешно запрошен, но запрос BAR2 не удался.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: media: saa7164: fix cleanup on resource allocation failure saa7164_dev_setup() adds the device to the global saa7164_devlist before requesting the PCI BAR memory regions. If get_resources() fails, saa7164_dev_setup() decrements the device count and returns an error, but leaves the device on saa7164_devlist. The probe error path then frees the device, leaving a dangling entry on the global list. Reuse the existing MMIO mapping error path to remove the device from saa7164_devlist and decrement the device count before returning. Also release BAR0 if it was successfully requested but the BAR2 request fails.
Характеристики атаки
Последствия
Строка CVSS v3.1