CVE-2021-47328

scsi: iscsi: Fix conn use after free during resets

State
Published
Severity
9.8 Critical
Published
May 21, 2024
Updated
Aug 5, 2026
Reserved
May 21, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 660d0831d1494a6837b2f810d08b5be092c1f31d to before bf20d85a88384574fabb3d53ad62a8af57e7ab11Affected
  • 660d0831d1494a6837b2f810d08b5be092c1f31d to before d04958a348e560938410e04a12fb99da9c7e6a00Affected
  • 660d0831d1494a6837b2f810d08b5be092c1f31d to before 89812e7957ab0746eab66ed6fc49d52bb4dca250Affected
  • 660d0831d1494a6837b2f810d08b5be092c1f31d to before f0a031f7c55ffd944fead1ddaf2aa94df9a158c1Affected
  • 660d0831d1494a6837b2f810d08b5be092c1f31d to before fa9542b35ceb4202e8f8d65f440529a63524dca9Affected
  • 660d0831d1494a6837b2f810d08b5be092c1f31d to before ec29d0ac29be366450a7faffbcf8cba3a6a3b506Affected
  • 861a9633c22ee8b484e1b4054995f7e1b94a3834Affected
  • 0adcec66bce9b7e84847da09ae3f8bc36e753312Affected
  • 20b38ab5b687df3dbb873cfb0efa946a021f890aAffected
  • 71b6a23ea944c6a30958bd15a69211e1fd521e1eAffected
  • 3.2.72 to before 3.3Affected
  • 3.4.111 to before 3.5Affected
  • 3.18.22 to before 3.19Affected
  • 4.1.7 to before 4.2Affected
LinuxLinux
  • 4.2Affected
  • before 4.2Not affected
  • 4.19.198 through 4.19.*Not affected
  • 5.4.134 through 5.4.*Not affected
  • 5.10.52 through 5.10.*Not affected
  • 5.12.19 through 5.12.*Not affected
  • 5.13.4 through 5.13.*Not affected
  • 5.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.