{"id":"CVE-2023-52974","aliases":["CVE-2023-52974"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress\n\nIf during iscsi_sw_tcp_session_create() iscsi_tcp_r2tpool_alloc() fails,\nuserspace could be accessing the host's ipaddress attr. If we then free the\nsession via iscsi_session_teardown() while userspace is still accessing the\nsession we will hit a use after free bug.\n\nSet the tcp_sw_host->session after we have completed session creation and\ncan no longer fail.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress\n\nIf during iscsi_sw_tcp_session_create() iscsi_tcp_r2tpool_alloc() fails,\nuserspace could be accessing the host's ipaddress attr. If we then free the\nsession via iscsi_session_teardown() while userspace is still accessing the\nsession we will hit a use after free bug.\n\nSet the tcp_sw_host->session after we have completed session creation and\ncan no longer fail.","source":"cvelist"},{"lang":"es","text":"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-&gt;session después de completar la creación de la sesión y ya no podrá fallar.","source":"nvd"}],"published":"2025-03-27T16:43:13.792Z","modified":"2026-08-05T09:12:12.182Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"a79af8a64d395bd89de8695a5ea5e1a7f01f02a8","fixed":"496af9d3682ed4c28fb734342a09e6cc0c056ea4","status":"affected"},{"type":"git","introduced":"a79af8a64d395bd89de8695a5ea5e1a7f01f02a8","fixed":"6abd4698f4c8a78e7bbfc421205c060c199554a0","status":"affected"},{"type":"git","introduced":"a79af8a64d395bd89de8695a5ea5e1a7f01f02a8","fixed":"d4d765f4761f9e3a2d62992f825aeee593bcb6b9","status":"affected"},{"type":"git","introduced":"a79af8a64d395bd89de8695a5ea5e1a7f01f02a8","fixed":"9758ffe1c07b86aefd7ca8e40d9a461293427ca0","status":"affected"},{"type":"git","introduced":"a79af8a64d395bd89de8695a5ea5e1a7f01f02a8","fixed":"0aaabdb900c7415caa2006ef580322f7eac5f6b6","status":"affected"},{"type":"git","introduced":"a79af8a64d395bd89de8695a5ea5e1a7f01f02a8","fixed":"61e43ebfd243bcbad11be26bd921723027b77441","status":"affected"},{"type":"git","introduced":"a79af8a64d395bd89de8695a5ea5e1a7f01f02a8","fixed":"f484a794e4ee2a9ce61f52a78e810ac45f3fe3b3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.39","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.39","status":"unaffected"},{"type":"semver","introduced":"4.14.306","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.273","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.232","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.168","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.93","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.11","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.14.306"},{"status":"affected","introduced":"4.15","fixed":"4.19.273"},{"status":"affected","introduced":"4.20","fixed":"5.4.232"},{"status":"affected","introduced":"5.5","fixed":"5.10.168"},{"status":"affected","introduced":"5.11","fixed":"5.15.93"},{"status":"affected","introduced":"5.16","fixed":"6.1.11"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/496af9d3682ed4c28fb734342a09e6cc0c056ea4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6abd4698f4c8a78e7bbfc421205c060c199554a0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d4d765f4761f9e3a2d62992f825aeee593bcb6b9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9758ffe1c07b86aefd7ca8e40d9a461293427ca0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0aaabdb900c7415caa2006ef580322f7eac5f6b6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/61e43ebfd243bcbad11be26bd921723027b77441","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f484a794e4ee2a9ce61f52a78e810ac45f3fe3b3","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-03-27T16:59:50.791Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-52974","url":"https://www.cve.org/CVERecord?id=CVE-2023-52974","licence":"CVE Terms of Use","modified":"2026-08-05T09:12:12.182Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-52974","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52974","licence":"Public domain","modified":"2026-06-17T06:44:01.917Z"}],"updatedAt":"2026-11-25T22:58:34.580Z","epss":{"score":0.00292,"percentile":0.23498,"date":"2026-12-01T12:00:22.000Z"}}