В ядре Linux устранена следующая уязвимость:
scsi: qedf: исправлено разыменование NULL при обработке ошибок.
Смэтч сообщил:
драйверы/scsi/qedf/qedf_main.c:3056 qedf_alloc_global_queues()
предупреждаю: отсутствует переход к размотке?
На этом этапе функции ничего не было выделено, поэтому мы можем вернуть
напрямую. В частности, «qedf->global_queues» не были выделены.
поэтому вызов qedf_free_global_queues() приведет к разыменованию NULL, когда
мы проверяем, имеет ли (!gl[i]) и «gl» значение NULL.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: scsi: qedf: Fix NULL dereference in error handling Smatch reported: drivers/scsi/qedf/qedf_main.c:3056 qedf_alloc_global_queues() warn: missing unwind goto? At this point in the function, nothing has been allocated so we can return directly. In particular the "qedf->global_queues" have not been allocated so calling qedf_free_global_queues() will lead to a NULL dereference when we check if (!gl[i]) and "gl" is NULL.