{"id":"CVE-2023-52974","summary":"scsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress","details":"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-\u003esession after we have completed session creation and\ncan no longer fail.","modified":"2026-04-02T09:43:30.469687Z","published":"2025-03-27T16:43:13.792Z","related":["SUSE-SU-2025:02099-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1194-1","SUSE-SU-2025:1195-1","SUSE-SU-2025:1241-1","SUSE-SU-2025:1263-1","SUSE-SU-2025:1293-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52974.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0aaabdb900c7415caa2006ef580322f7eac5f6b6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/496af9d3682ed4c28fb734342a09e6cc0c056ea4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/61e43ebfd243bcbad11be26bd921723027b77441"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6abd4698f4c8a78e7bbfc421205c060c199554a0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9758ffe1c07b86aefd7ca8e40d9a461293427ca0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d4d765f4761f9e3a2d62992f825aeee593bcb6b9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f484a794e4ee2a9ce61f52a78e810ac45f3fe3b3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52974.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52974"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a79af8a64d395bd89de8695a5ea5e1a7f01f02a8"},{"fixed":"496af9d3682ed4c28fb734342a09e6cc0c056ea4"},{"fixed":"6abd4698f4c8a78e7bbfc421205c060c199554a0"},{"fixed":"d4d765f4761f9e3a2d62992f825aeee593bcb6b9"},{"fixed":"9758ffe1c07b86aefd7ca8e40d9a461293427ca0"},{"fixed":"0aaabdb900c7415caa2006ef580322f7eac5f6b6"},{"fixed":"61e43ebfd243bcbad11be26bd921723027b77441"},{"fixed":"f484a794e4ee2a9ce61f52a78e810ac45f3fe3b3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52974.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}