In the Linux kernel, the following vulnerability has been resolved:
scsi: iscsitcp: Check that sock is valid before iscsiset_param()
The validity of sock should be checked before assignment to avoid incorrect values. Commit 57569c37f0ad ("scsi: iscsi: iscsitcp: Fix null-ptr-deref while calling getpeername()") introduced this change which may lead to inconsistent values of tcpswconn->sendpage and conn->datadgsten.
Fix the issue by moving the position of the assignment.