В ядре Linux устранена следующая уязвимость: scsi: qla2xxx: Unlink NVMe unsol ctx Перед освобождением на LS refile error qla_nvme_xmt_ls_rsp() получает uctx, который был связан в fcport->unsol_ctx_head qla2xxx_process_purls_iocb() и по-прежнему связан, когда транспорт NVMe звонит обратно для передачи ответа LS. На пути ошибки (out:) функция освобождает uctx от kfree(), но никогда не удаляет его из списка. Это оставляет свободный узел в fcport->unsol_ctx_head: следующий list_add_tail () для этого fcport записывает через освобожденный узел, а последующий list_del () может повредить список или вызвать панику.
Unlink uctx с list_del() перед kfree() на пути ошибки, сопоставляя другие бесплатные сайты в qla_nvme_release_lsrsp_cmd_kref() и qla2xxx_process_purls_pkt(). qla2x00_rel_sp() в пути отказа только возвращает SRB в свой пул и не вызывает sp->put_fn, поэтому выход: путь является единственным свободным, и uctx всегда связан там.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Unlink NVMe unsol ctx before freeing on LS reject error qla_nvme_xmt_ls_rsp() obtains uctx, which was linked into fcport->unsol_ctx_head by qla2xxx_process_purls_iocb() and is still linked when the NVMe transport calls back to transmit the LS response. On the error (out:) path the function frees uctx with kfree() but never removes it from the list. This leaves a freed node in fcport->unsol_ctx_head: the next list_add_tail() for that fcport writes through the freed node, and a subsequent list_del() can corrupt the list or panic. Unlink uctx with list_del() before kfree() on the error path, matching the other free sites in qla_nvme_release_lsrsp_cmd_kref() and qla2xxx_process_purls_pkt(). qla2x00_rel_sp() in the failure path only returns the SRB to its pool and does not invoke sp->put_fn, so the out: path is the sole free and uctx is always still linked there.
Характеристики атаки
Последствия
Строка CVSS v3.1