NULL pointer dereference in Linux

CVE-2023-53464

In the Linux kernel, the following vulnerability has been resolved:

scsi: iscsi_tcp: Check that sock is valid before iscsi_set_param()

The validity of sock should be checked before assignment to avoid incorrect
values. Commit 57569c37f0ad ("scsi: iscsi: iscsi_tcp: Fix null-ptr-deref
while calling getpeername()") introduced this change which may lead to
inconsistent values of tcp_sw_conn->sendpage and conn->datadgst_en.

Fix the issue by moving the position of the assignment.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

EPSS exploit prediction

EPSS 0.002, 5.9th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions 897dbbc57d71e8a34ec1af8e573a142de457da38, 5.15.75, a26b0658751bb0a3b28386fca715333b104d32a2
  • Linux Kernel — versions 6.3

Weakness classification (CWE)

References