9.8critical
scsi: iscsi: Fix conn use after free during resets
- Severity
- 9.8critical CVSS:3.1 by Linux
- Exploit likelihood
- 0.77% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 660d0831d1494a6837b2f810d08b5be092c1f31d before bf20d85a88384574fabb3d53ad62a8af57e7ab11, from 660d0831d1494a6837b2f810d08b5be092c1f31d before d04958a348e560938410e04a12fb99da9c7e6a00, from 660d0831d1494a6837b2f810d08b5be092c1f31d before 89812e7957ab0746eab66ed6fc49d52bb4dca250, from 660d0831d1494a6837b2f810d08b5be092c1f31d before f0a031f7c55ffd944fead1ddaf2aa94df9a158c1, from 660d0831d1494a6837b2f810d08b5be092c1f31d before fa9542b35ceb4202e8f8d65f440529a63524dca9, from 660d0831d1494a6837b2f810d08b5be092c1f31d before ec29d0ac29be366450a7faffbcf8cba3a6a3b506, 861a9633c22ee8b484e1b4054995f7e1b94a3834, 0adcec66bce9b7e84847da09ae3f8bc36e753312 and 7 more Not affected: before 4.2, from 4.19.198 up to 4.19.*, from 5.4.134 up to 5.4.*, from 5.10.52 up to 5.10.*, from 5.12.19 up to 5.12.*, from 5.13.4 up to 5.13.* | CVE List |
| linux linux_kernel | before 4.19.198, from 4.20 before 5.4.134, from 5.5 before 5.10.52, from 5.11 before 5.12.19, from 5.13 before 5.13.4 | NVD |
All scores
| Linux | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47328 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2021-47328 changed 2026-08-04 | Public domain |