In the Linux kernel, the following vulnerability has been resolved: scsi: iscsitcp: Check that sock is valid before iscsisetparam() 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->datadgst_en. Fix the issue by moving the position of the assignment.