В ядре Linux устранена следующая уязвимость:
wifi: mt76: mt7921: исправлена утечка ресурсов в пути ошибки зонда
При сбое pcim_iomap_region() или devm_kmemdup() код возвращает
напрямую, без очистки ранее выделенных ресурсов:
- mt76_device, выделенный с помощью mt76_alloc_device()
- векторы PCI IRQ, выделенные с помощью pci_alloc_irq_vectors()
Исправьте это, перейдя к существующему пути устранения ошибок вместо
возвращаясь напрямую.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7921: fix resource leak in probe error path When pcim_iomap_region() or devm_kmemdup() fail, the code returns directly without cleaning up previously allocated resources: - mt76_device allocated by mt76_alloc_device() - pci irq vectors allocated by pci_alloc_irq_vectors() Fix this by jumping to the existing error cleanup path instead of returning directly.