# CVE-2021-47328: scsi: iscsi: Fix conn use after free during resets

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Published: 2024-05-21T14:35:40.479Z
- Modified: 2026-08-05T08:47:16.792Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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; 20b38ab5b687df3dbb873cfb0efa946a021f890a; 71b6a23ea944c6a30958bd15a69211e1fd521e1e; from 3.2.72 before 3.3; from 3.4.111 before 3.5; and 3 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.*; from 5.14 up to *)
- 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

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/bf20d85a88384574fabb3d53ad62a8af57e7ab11> (patch)
- <https://git.kernel.org/stable/c/d04958a348e560938410e04a12fb99da9c7e6a00> (patch)
- <https://git.kernel.org/stable/c/89812e7957ab0746eab66ed6fc49d52bb4dca250> (patch)
- <https://git.kernel.org/stable/c/f0a031f7c55ffd944fead1ddaf2aa94df9a158c1> (patch)
- <https://git.kernel.org/stable/c/fa9542b35ceb4202e8f8d65f440529a63524dca9> (patch)
- <https://git.kernel.org/stable/c/ec29d0ac29be366450a7faffbcf8cba3a6a3b506> (patch)

## Sources

- CVE List: [CVE-2021-47328](https://www.cve.org/CVERecord?id=CVE-2021-47328), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47328](https://nvd.nist.gov/vuln/detail/CVE-2021-47328), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47328 · Whole record: https://cve.day/CVE-2021-47328.json · Rebuilt by cve.day 2026-11-25T22:58:08.799Z
