What’s Vulnerable › Vulnerabilities

CVE-2023-52974: scsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress If during iscsi_sw_tcp_session_create() iscsi_tcp_r2tpool_alloc() fails, userspace could be accessing the host's ipaddress attr. If we then free the session via iscsi_session_teardown() while userspace is still accessing the session we will hit a use after free bug. Set the tcp_sw_host->session after we have completed session creation and can no longer fail.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.14.306, 4.19.273, 5.10.168, 5.15.93. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-52974 or the next vulnerability affects your stack