{"id":"CVE-2021-47328","aliases":["CVE-2021-47328"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: iscsi: Fix conn use after free during resets","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: iscsi: Fix conn use after free during resets\n\nIf we haven't done a unbind target call we can race where\niscsi_conn_teardown wakes up the EH thread and then frees the conn while\nthose threads are still accessing the conn ehwait.\n\nWe can only do one TMF per session so this just moves the TMF fields from\nthe conn to the session. We can then rely on the\niscsi_session_teardown->iscsi_remove_session->__iscsi_unbind_session call\nto remove the target and it's devices, and know after that point there is\nno device or scsi-ml callout trying to access the session.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: iscsi: Fix conn use after free during resets\n\nIf we haven't done a unbind target call we can race where\niscsi_conn_teardown wakes up the EH thread and then frees the conn while\nthose threads are still accessing the conn ehwait.\n\nWe can only do one TMF per session so this just moves the TMF fields from\nthe conn to the session. We can then rely on the\niscsi_session_teardown->iscsi_remove_session->__iscsi_unbind_session call\nto remove the target and it's devices, and know after that point there is\nno device or scsi-ml callout trying to access the session.","source":"cvelist"},{"lang":"es","text":"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-&gt;iscsi_remove_session-&gt;__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.","source":"nvd"}],"published":"2024-05-21T14:35:40.479Z","modified":"2026-08-05T08:47:16.792Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"660d0831d1494a6837b2f810d08b5be092c1f31d","fixed":"bf20d85a88384574fabb3d53ad62a8af57e7ab11","status":"affected"},{"type":"git","introduced":"660d0831d1494a6837b2f810d08b5be092c1f31d","fixed":"d04958a348e560938410e04a12fb99da9c7e6a00","status":"affected"},{"type":"git","introduced":"660d0831d1494a6837b2f810d08b5be092c1f31d","fixed":"89812e7957ab0746eab66ed6fc49d52bb4dca250","status":"affected"},{"type":"git","introduced":"660d0831d1494a6837b2f810d08b5be092c1f31d","fixed":"f0a031f7c55ffd944fead1ddaf2aa94df9a158c1","status":"affected"},{"type":"git","introduced":"660d0831d1494a6837b2f810d08b5be092c1f31d","fixed":"fa9542b35ceb4202e8f8d65f440529a63524dca9","status":"affected"},{"type":"git","introduced":"660d0831d1494a6837b2f810d08b5be092c1f31d","fixed":"ec29d0ac29be366450a7faffbcf8cba3a6a3b506","status":"affected"},{"type":"git","version":"861a9633c22ee8b484e1b4054995f7e1b94a3834","status":"affected"},{"type":"git","version":"0adcec66bce9b7e84847da09ae3f8bc36e753312","status":"affected"},{"type":"git","version":"20b38ab5b687df3dbb873cfb0efa946a021f890a","status":"affected"},{"type":"git","version":"71b6a23ea944c6a30958bd15a69211e1fd521e1e","status":"affected"},{"type":"semver","introduced":"3.2.72","fixed":"3.3","status":"affected"},{"type":"semver","introduced":"3.4.111","fixed":"3.5","status":"affected"},{"type":"semver","introduced":"3.18.22","fixed":"3.19","status":"affected"},{"type":"semver","introduced":"4.1.7","fixed":"4.2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.2","status":"unaffected"},{"type":"semver","introduced":"4.19.198","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.134","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.52","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.12.19","lastAffected":"5.12.*","status":"unaffected"},{"type":"semver","introduced":"5.13.4","lastAffected":"5.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.19.198"},{"status":"affected","introduced":"4.20","fixed":"5.4.134"},{"status":"affected","introduced":"5.5","fixed":"5.10.52"},{"status":"affected","introduced":"5.11","fixed":"5.12.19"},{"status":"affected","introduced":"5.13","fixed":"5.13.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/bf20d85a88384574fabb3d53ad62a8af57e7ab11","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d04958a348e560938410e04a12fb99da9c7e6a00","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/89812e7957ab0746eab66ed6fc49d52bb4dca250","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f0a031f7c55ffd944fead1ddaf2aa94df9a158c1","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fa9542b35ceb4202e8f8d65f440529a63524dca9","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ec29d0ac29be366450a7faffbcf8cba3a6a3b506","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-23T19:06:33.421Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47328","url":"https://www.cve.org/CVERecord?id=CVE-2021-47328","licence":"CVE Terms of Use","modified":"2026-08-05T08:47:16.792Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47328","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47328","licence":"Public domain","modified":"2026-08-04T10:16:58.130Z"}],"updatedAt":"2026-11-25T22:58:08.799Z","epss":{"score":0.00766,"percentile":0.56677,"date":"2026-12-01T12:00:22.000Z"}}