NetSight
high7.8

CVE-2023-52974

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…

Impact

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

VendorProductAffected versions
LinuxLinux Kernel
before 4.14.306
from 4.15 before 4.19.273
from 4.20 before 5.4.232
from 5.5 before 5.10.168
from 5.11 before 5.15.93
from 5.16 before 6.1.11

Weakness classification

References