Skip to content
CVE PROGRAM SOURCE RECORD9.8 Critical

CVE-2021-47328

scsi: iscsi: Fix conn use after free during resets

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 660d0831d1494a6837b2f810d08b5be092c1f31d to < bf20d85a88384574fabb3d53ad62a8af57e7ab11affected
  • 660d0831d1494a6837b2f810d08b5be092c1f31d to < d04958a348e560938410e04a12fb99da9c7e6a00affected
  • 660d0831d1494a6837b2f810d08b5be092c1f31d to < 89812e7957ab0746eab66ed6fc49d52bb4dca250affected
  • 660d0831d1494a6837b2f810d08b5be092c1f31d to < f0a031f7c55ffd944fead1ddaf2aa94df9a158c1affected
  • 660d0831d1494a6837b2f810d08b5be092c1f31d to < fa9542b35ceb4202e8f8d65f440529a63524dca9affected
  • 660d0831d1494a6837b2f810d08b5be092c1f31d to < ec29d0ac29be366450a7faffbcf8cba3a6a3b506affected
  • 861a9633c22ee8b484e1b4054995f7e1b94a3834affected
  • 0adcec66bce9b7e84847da09ae3f8bc36e753312affected
  • 20b38ab5b687df3dbb873cfb0efa946a021f890aaffected
  • 71b6a23ea944c6a30958bd15a69211e1fd521e1eaffected
  • 3.2.72 to < 3.3affected
  • 3.4.111 to < 3.5affected
  • 3.18.22 to < 3.19affected
  • 4.1.7 to < 4.2affected

Linux Linux

Default version status: affected

  • 4.2affected
  • 0 to < 4.2unaffected
  • 4.19.198 to ≤ 4.19.*unaffected
  • 5.4.134 to ≤ 5.4.*unaffected
  • 5.10.52 to ≤ 5.10.*unaffected
  • 5.12.19 to ≤ 5.12.*unaffected
  • 5.13.4 to ≤ 5.13.*unaffected
  • 5.14 to ≤ *unaffected

References