В ядре Linux устранена следующая уязвимость: RDMA/hfi1: Preserve unit 0 on assocation failure hfi1_free_devdata() предполагает, что устройство было вставлено в таблицу юнитов и безоговорочно стирает dd->unit. Если xa_alloc_irq() выходит из строя, инициализированный с нуля блок остается нулевым, поэтому полная очистка может удалить несвязанное устройство из индекса 0. Освободите только распределение rdmavt и немедленно верните, пока таблица блоков не приобрела устройство.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: RDMA/hfi1: Preserve unit 0 on allocation failure hfi1_free_devdata() assumes that the device was inserted into the unit table and unconditionally erases dd->unit. If xa_alloc_irq() fails, the zero-initialized unit remains zero, so full cleanup can remove an unrelated device from index 0. Release only the rdmavt allocation and return immediately while the unit table has not acquired the device.