{"id":"CVE-2023-52515","summary":"RDMA/srp: Do not call scsi_done() from srp_abort()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/srp: Do not call scsi_done() from srp_abort()\n\nAfter scmd_eh_abort_handler() has called the SCSI LLD eh_abort_handler\ncallback, it performs one of the following actions:\n* Call scsi_queue_insert().\n* Call scsi_finish_command().\n* Call scsi_eh_scmd_add().\nHence, SCSI abort handlers must not call scsi_done(). Otherwise all\nthe above actions would trigger a use-after-free. Hence remove the\nscsi_done() call from srp_abort(). Keep the srp_free_req() call\nbefore returning SUCCESS because we may not see the command again if\nSUCCESS is returned.","modified":"2026-11-17T07:01:21.769935436Z","published":"2024-03-02T21:52:25.863Z","related":["SUSE-SU-2024:1320-1","SUSE-SU-2024:1321-1","SUSE-SU-2024:1466-1","SUSE-SU-2024:1480-1","SUSE-SU-2024:1490-1","SUSE-SU-2024:1643-1","SUSE-SU-2024:1646-1","SUSE-SU-2024:1870-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52515.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/05a10b316adaac1f322007ca9a0383b410d759cc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/26788a5b48d9d5cd3283d777d238631c8cd7495a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2b298f9181582270d5e95774e5a6c7a7fb5b1206"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b9bdffb3f9aaeff8379c83f5449c6b42cb71c2b5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e193b7955dfad68035b983a0011f4ef3590c85eb"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52515.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52515"},{"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":"d8536670916a685df116b5c2cb256573fd25e4e3"},{"fixed":"26788a5b48d9d5cd3283d777d238631c8cd7495a"},{"fixed":"b9bdffb3f9aaeff8379c83f5449c6b42cb71c2b5"},{"fixed":"2b298f9181582270d5e95774e5a6c7a7fb5b1206"},{"fixed":"05a10b316adaac1f322007ca9a0383b410d759cc"},{"fixed":"e193b7955dfad68035b983a0011f4ef3590c85eb"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"738589592a04180e39b6fb5fe8205d85b7dc69f6"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0575df129e2eb4a801beae0e6e041787480f42b9"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"22fb582405002812d8fb89d0ed1264e97d3d25ad"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"39d6594c457c4728794cb4c3c7be53f93f1ef3ae"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b3f3b814add77a464911df0080d812b18f61ff38"}]}],"versions":["v3.0.101","v3.0.100","v3.0.99","v3.0.98","v3.0.97","v3.0.96","v3.0.95","v3.0.94","v3.0.93","v3.0.92","v3.0.91","v3.0.90","v3.0.89","v3.0.88","v3.0.87","v3.0.86","v3.0.85","v3.0.84","v3.0.83","v3.0.82","v3.0.81","v3.0.80","v3.0.79","v3.0.78","v3.0.77","v3.0.76","v3.0.75","v3.0.74","v3.0.73","v3.0.72","v3.0.71","v3.0.70","v3.0.69","v3.0.68","v3.0.67","v3.0.66","v3.0.65","v3.0.64","v3.0.63","v3.0.62","v3.0.61","v3.0.60","v3.0.59","v3.0.58","v3.0.57","v3.0.56","v3.0.55","v3.0.54","v3.0.53","v3.0.52","v3.0.51","v3.0.50","v3.0.49","v3.0.48","v3.0.47","v3.0.46","v3.0.45","v3.2.102","v3.2.101","v3.2.100","v3.2.99","v3.2.98","v3.2.97","v3.2.96","v3.2.95","v3.2.94","v3.2.93","v3.2.92","v3.2.91","v3.2.90","v3.2.89","v3.2.88","v3.2.87","v3.2.86","v3.2.85","v3.2.84","v3.2.83","v3.2.82","v3.2.81","v3.2.80","v3.2.79","v3.2.78","v3.2.77","v3.2.76","v3.2.75","v3.2.74","v3.2.73","v3.2.72","v3.2.71","v3.2.70","v3.2.69","v3.2.68","v3.2.67","v3.2.66","v3.2.65","v3.2.64","v3.2.63","v3.2.62","v3.2.61","v3.2.60","v3.2.59","v3.2.58","v3.2.57","v3.2.56","v3.2.55","v3.2.54","v3.2.53","v3.2.52","v3.2.51","v3.2.50","v3.2.49","v3.2.48","v3.2.47","v3.2.46","v3.2.45","v3.2.44","v3.2.43","v3.2.42","v3.2.41","v3.2.40","v3.2.39","v3.2.38","v3.2.37","v3.2.36","v3.2.35","v3.2.34","v3.2.33","v3.2.32","v3.4.113","v3.4.112","v3.4.111","v3.4.110","v3.4.109","v3.4.108","v3.4.107","v3.4.106","v3.4.105","v3.4.104","v3.4.103","v3.4.102","v3.4.101","v3.4.100","v3.4.99","v3.4.98","v3.4.97","v3.4.96","v3.4.95","v3.4.94","v3.4.93","v3.4.92","v3.4.91","v3.4.90","v3.4.89","v3.4.88","v3.4.87","v3.4.86","v3.4.85","v3.4.84","v3.4.83","v3.4.82","v3.4.81","v3.4.80","v3.4.79","v3.4.78","v3.4.77","v3.4.76","v3.4.75","v3.4.74","v3.4.73","v3.4.72","v3.4.71","v3.4.70","v3.4.69","v3.4.68","v3.4.67","v3.4.66","v3.4.65","v3.4.64","v3.4.63","v3.4.62","v3.4.61","v3.4.60","v3.4.59","v3.4.58","v3.4.57","v3.4.56","v3.4.55","v3.4.54","v3.4.53","v3.4.52","v3.4.51","v3.4.50","v3.4.49","v3.4.48","v3.4.47","v3.4.46","v3.4.45","v3.4.44","v3.4.43","v3.4.42","v3.4.41","v3.4.40","v3.4.39","v3.4.38","v3.4.37","v3.4.36","v3.4.35","v3.4.34","v3.4.33","v3.4.32","v3.4.31","v3.4.30","v3.4.29","v3.4.28","v3.4.27","v3.4.26","v3.4.25","v3.4.24","v3.4.23","v3.4.22","v3.4.21","v3.4.20","v3.4.19","v3.4.18","v3.4.17","v3.4.16","v3.4.15","v3.4.14","v3.4.13","v3.5.7","v3.5.6","v3.6.11","v3.6.10","v3.6.9","v3.6.8","v3.6.7","v3.6.6","v3.6.5","v3.6.4","v3.6.3","v3.6.2","v3.6.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52515.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.45"},{"fixed":"3.1"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.2.32"},{"fixed":"3.3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.4.13"},{"fixed":"3.5"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.5.6"},{"fixed":"3.6"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.6.1"},{"fixed":"3.7"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.7.0"},{"fixed":"5.10.199"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.136"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.57"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.5.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52515.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}