CVE-2021-47328

In the Linux kernel, the following vulnerability has been resolved: scsi: iscsi: Fix conn use after free during resets If we haven't done a unbind target call we can race where iscsi_conn_teardown wakes up the EH thread and then frees the conn while those threads are still accessing the conn ehwait. We can only do one TMF per session so this just moves the TMF fields from the conn to the session. We can then rely on the iscsi_session_teardown->iscsi_remove_session->__iscsi_unbind_session call to remove the target and it's devices, and know after that point there is no device or scsi-ml callout trying to access the session.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

26 Dec 2024, 19:52

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.8
CWE CWE-416
First Time Linux linux Kernel
Linux
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
References () https://git.kernel.org/stable/c/89812e7957ab0746eab66ed6fc49d52bb4dca250 - () https://git.kernel.org/stable/c/89812e7957ab0746eab66ed6fc49d52bb4dca250 - Patch
References () https://git.kernel.org/stable/c/bf20d85a88384574fabb3d53ad62a8af57e7ab11 - () https://git.kernel.org/stable/c/bf20d85a88384574fabb3d53ad62a8af57e7ab11 - Patch
References () https://git.kernel.org/stable/c/d04958a348e560938410e04a12fb99da9c7e6a00 - () https://git.kernel.org/stable/c/d04958a348e560938410e04a12fb99da9c7e6a00 - Patch
References () https://git.kernel.org/stable/c/ec29d0ac29be366450a7faffbcf8cba3a6a3b506 - () https://git.kernel.org/stable/c/ec29d0ac29be366450a7faffbcf8cba3a6a3b506 - Patch
References () https://git.kernel.org/stable/c/f0a031f7c55ffd944fead1ddaf2aa94df9a158c1 - () https://git.kernel.org/stable/c/f0a031f7c55ffd944fead1ddaf2aa94df9a158c1 - Patch
References () https://git.kernel.org/stable/c/fa9542b35ceb4202e8f8d65f440529a63524dca9 - () https://git.kernel.org/stable/c/fa9542b35ceb4202e8f8d65f440529a63524dca9 - Patch

21 Nov 2024, 06:35

Type Values Removed Values Added
References () https://git.kernel.org/stable/c/89812e7957ab0746eab66ed6fc49d52bb4dca250 - () https://git.kernel.org/stable/c/89812e7957ab0746eab66ed6fc49d52bb4dca250 -
References () https://git.kernel.org/stable/c/bf20d85a88384574fabb3d53ad62a8af57e7ab11 - () https://git.kernel.org/stable/c/bf20d85a88384574fabb3d53ad62a8af57e7ab11 -
References () https://git.kernel.org/stable/c/d04958a348e560938410e04a12fb99da9c7e6a00 - () https://git.kernel.org/stable/c/d04958a348e560938410e04a12fb99da9c7e6a00 -
References () https://git.kernel.org/stable/c/ec29d0ac29be366450a7faffbcf8cba3a6a3b506 - () https://git.kernel.org/stable/c/ec29d0ac29be366450a7faffbcf8cba3a6a3b506 -
References () https://git.kernel.org/stable/c/f0a031f7c55ffd944fead1ddaf2aa94df9a158c1 - () https://git.kernel.org/stable/c/f0a031f7c55ffd944fead1ddaf2aa94df9a158c1 -
References () https://git.kernel.org/stable/c/fa9542b35ceb4202e8f8d65f440529a63524dca9 - () https://git.kernel.org/stable/c/fa9542b35ceb4202e8f8d65f440529a63524dca9 -
Summary
  • (es) En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: scsi: iscsi: corrige el uso de la conexión después de liberarla durante los reinicios. Si no hemos realizado una llamada de destino de desvinculación, podemos correr donde iscsi_conn_teardown activa el subproceso EH y luego libera la conexión mientras esos Los hilos todavía están accediendo a la conexión ehwait. Solo podemos hacer un TMF por sesión, por lo que esto simplemente mueve los campos TMF de la conexión a la sesión. Luego podemos confiar en la llamada iscsi_session_teardown->iscsi_remove_session->__iscsi_unbind_session para eliminar el objetivo y sus dispositivos, y saber después de ese punto que no hay ningún dispositivo o llamada scsi-ml intentando acceder a la sesión.

21 May 2024, 15:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-05-21 15:15

Updated : 2024-12-26 19:52


NVD link : CVE-2021-47328

Mitre link : CVE-2021-47328

CVE.ORG link : CVE-2021-47328


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-416

Use After Free