В ядре Linux была устранена следующая уязвимость: scsi: mpi3mr: Fix NULL Указатель dereference в mpi3mr_sas_port_add() sas_port_alloc_num() может возвращать NULL при отказе выделения памяти. Возвращаемое значение передается непосредственно sas_port_add() без проверки NULL, что вызывает удаление указателя NULL. Кроме того, если sas_port_add() выходит из строя, выделенный порт не освобождается до перехода на out_fail, что приводит к утечке структуры sas_port.
Позвоните sas_port_free(), чтобы правильно отпустить его.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix NULL pointer dereference in mpi3mr_sas_port_add() sas_port_alloc_num() can return NULL on memory allocation failure. The return value is passed directly to sas_port_add() without a NULL check, which causes a NULL pointer dereference. Additionally, if sas_port_add() fails, the allocated port is not freed before jumping to out_fail, leaking the sas_port structure. Call sas_port_free() to properly release it.
Уязвимые продукты 6
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.1
|
6.1.189
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.1
|
6.6.158
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.1
|
6.12.111
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.1
|
6.18.53
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.1
|
7.2.7
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.1
|
7.3-rc2
|