CVE-2023-52515·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: RDMA/srp: Do not call scsi_done() from srp_abort() After scmd_eh_abort_handler() has called the SCSI LLD eh_abort_handler callback, it performs one of the following actions: * Call scsi_queue_insert(). * Call scsi_finish_command(). * Call scsi_eh_scmd_add(). Hence, SCSI abort handlers must not call scsi_done(). Otherwise all the above actions would trigger a use-after-free. Hence remove the scsi_done() call from srp_abort(). Keep the srp_free_req() call before returning SUCCESS because we may not see the command again if SUCCESS is returned.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.5.7
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 6% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2023-52515 scores 7.8 on CVSS, so a successful attack would be serious — but at <0.1%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.2
Until: 6.5.7
Fixed in: 6.5.7
How to fix this CVE
Update your Linux kernel to version 6.5.7 or later to resolve a use-after-free vulnerability in the RDMA/SRP abort handler. This vulnerability occurs when the srp_abort() function incorrectly calls scsi_done(), which conflicts with SCSI error handling routines and can lead to memory corruption. Apply the kernel update through your distribution's package manager and reboot your system to ensure the fix is active.
sudo dnf check-update kernel && sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with: uname -r
- Step 2: Verify if you have RDMA/SRP modules loaded by running: lsmod | grep srp
- Step 3: Search kernel logs for SCSI abort-related errors with: journalctl -xe | grep -i 'scsi\|abort\|srp'
- Step 4: After patching, confirm the new kernel is running with: uname -r and verify it shows 6.5.7 or later
FAQ
What is CVE-2023-52515?
CVE-2023-52515 is a use-after-free vulnerability in the Linux kernel's RDMA/SRP (SCSI RDMA Protocol) subsystem where the abort handler incorrectly calls scsi_done(), causing memory safety violations during SCSI command abort operations.
Is CVE-2023-52515 being actively exploited?
No, CVE-2023-52515 is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available.
What versions of Kernel are affected by CVE-2023-52515?
Linux kernel versions 6.2 through 6.5.6 are affected. The vulnerability was resolved in kernel 6.5.7.
How do I check if my server is vulnerable to CVE-2023-52515?
Run 'uname -r' to check your kernel version. If it shows a version between 6.2 and 6.5.6 and you have RDMA/SRP modules loaded (verify with 'lsmod | grep srp'), your system is vulnerable.
Does Defensia detect CVE-2023-52515?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2023-52515 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/05a10b316adaac1f322007ca9a0383b410d759cc
- https://git.kernel.org/stable/c/26788a5b48d9d5cd3283d777d238631c8cd7495a
- https://git.kernel.org/stable/c/2b298f9181582270d5e95774e5a6c7a7fb5b1206
- https://git.kernel.org/stable/c/b9bdffb3f9aaeff8379c83f5449c6b42cb71c2b5
- https://git.kernel.org/stable/c/e193b7955dfad68035b983a0011f4ef3590c85eb
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2023-52515. Free for 1 server.
Get started free