Vulnerability · Published May 21, 2024 · Assigned by Linux

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

Critical 9.8

In plain English

A critical-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)0.8%top 44.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12linux5.14.6-1DEBIAN-CVE-2021-47328
Debian:13linux5.14.6-1DEBIAN-CVE-2021-47328
Debian:14linux5.14.6-1DEBIAN-CVE-2021-47328
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-intel-iot-realtimeno fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2021-47328
Ubuntu:24.04:LTSlinux-raspi-realtimeno fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2021-47328
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2021-47328

Affected products (as reported)

VendorProductVersions
Linux Linux 660d0831d1494a6837b2f810d08b5be092c1f31d – before bf20d85a88384574fabb3d53ad62a8af57e7ab11660d0831d1494a6837b2f810d08b5be092c1f31d – before d04958a348e560938410e04a12fb99da9c7e6a00660d0831d1494a6837b2f810d08b5be092c1f31d – before 89812e7957ab0746eab66ed6fc49d52bb4dca250660d0831d1494a6837b2f810d08b5be092c1f31d – before f0a031f7c55ffd944fead1ddaf2aa94df9a158c1660d0831d1494a6837b2f810d08b5be092c1f31d – before fa9542b35ceb4202e8f8d65f440529a63524dca9660d0831d1494a6837b2f810d08b5be092c1f31d – before ec29d0ac29be366450a7faffbcf8cba3a6a3b506861a9633c22ee8b484e1b4054995f7e1b94a38340adcec66bce9b7e84847da09ae3f8bc36e753312
Linux Linux 4.2

References