CVE-2023-52974
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.29% (higher than 23% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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

Product or packageVersionsReported by
Linux Linuxfrom a79af8a64d395bd89de8695a5ea5e1a7f01f02a8 before 496af9d3682ed4c28fb734342a09e6cc0c056ea4, from a79af8a64d395bd89de8695a5ea5e1a7f01f02a8 before 6abd4698f4c8a78e7bbfc421205c060c199554a0, from a79af8a64d395bd89de8695a5ea5e1a7f01f02a8 before d4d765f4761f9e3a2d62992f825aeee593bcb6b9, from a79af8a64d395bd89de8695a5ea5e1a7f01f02a8 before 9758ffe1c07b86aefd7ca8e40d9a461293427ca0, from a79af8a64d395bd89de8695a5ea5e1a7f01f02a8 before 0aaabdb900c7415caa2006ef580322f7eac5f6b6, from a79af8a64d395bd89de8695a5ea5e1a7f01f02a8 before 61e43ebfd243bcbad11be26bd921723027b77441, from a79af8a64d395bd89de8695a5ea5e1a7f01f02a8 before f484a794e4ee2a9ce61f52a78e810ac45f3fe3b3, 2.6.39
Not affected: before 2.6.39, from 4.14.306 up to 4.14.*, from 4.19.273 up to 4.19.*, from 5.4.232 up to 5.4.*, from 5.10.168 up to 5.10.*, from 5.15.93 up to 5.15.*
CVE List
linux linux_kernelbefore 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, 6.2NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: scsi: iscsi_tcp: Se corrige el UAF durante el inicio de sesión al acceder a la dirección IP del host. Si durante iscsi_sw_tcp_session_create() falla iscsi_tcp_r2tpool_alloc(), el espacio de usuario podría estar accediendo a la dirección IP del host. Si liberamos la sesión mediante iscsi_session_teardown() mientras el espacio de usuario aún accede a ella, se producirá un error de use after free. Configure tcp_sw_host->session después de completar la creación de la sesión y ya no podrá fallar.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-52974 changed 2026-08-05CVE Terms of Use
NVDCVE-2023-52974 changed 2026-06-17Public domain