CVE-2023-52974

scsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress

High · published March 27, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
20.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00292 · 20.7th percentile
Published
2025-03-27T16:43Z
EPSS history
Timeline
  • 27 MAR 16:43Z
    scsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress
    cvelistv5