CVE-2023-52515: RDMA/srp: Do not call scsi_done() from srp_abort()

Published Mar 2, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

RDMA/srp: Do not call scsidone() from srpabort()

After scmdehaborthandler() has called the SCSI LLD ehaborthandler callback, it performs one of the following actions: Call scsiqueueinsert(). Call scsifinishcommand(). Call scsiehscmdadd(). Hence, SCSI abort handlers must not call scsidone(). Otherwise all the above actions would trigger a use-after-free. Hence remove the scsidone() call from srpabort(). Keep the srpfreereq() call before returning SUCCESS because we may not see the command again if SUCCESS is returned.

Affected Software

8 affected components
Linux Linux kernel>=3.7<5.10.199
Linux Linux kernel>=5.11<5.15.136
Linux Linux kernel>=5.16<6.1.57
Linux Linux kernel>=6.2<6.5.7
Linux Linux kernel=6.6-rc1
Linux Linux kernel=6.6-rc2
Linux Linux kernel=6.6-rc3
Linux Linux kernel=6.6-rc4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Do not call scsi_done() from srp_abort(); ensure the abort handler sequence does not invoke scsi_done() to avoid use-after-free.

    Linux kernel SCSI RDMA/srp scsi_done() invocation from srp_abort() = must not call
  2. Configuration

    Keep the srp_free_req() call in the srp abort path; removing it can lead to incorrect command handling.

    Linux kernel RDMA/srp srp_free_req() call = keep

Event History

Mar 2, 2024
CVE Published
via MITRE·09:52 PM
Data Sourced
via MITRE·09:52 PM
DescriptionSeverity
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-52515?

CVE-2023-52515 has a moderate severity rating as it impacts the Linux kernel's RDMA subsystem.

2

How do I fix CVE-2023-52515?

To fix CVE-2023-52515, update your Linux kernel to a version that includes the fix for this vulnerability.

3

Which Linux kernel versions are affected by CVE-2023-52515?

CVE-2023-52515 affects Linux kernel versions between 3.7 and 6.5.7, including various release candidates.

4

Is CVE-2023-52515 exploitative in nature?

There is currently no public evidence suggesting CVE-2023-52515 is actively being exploited in the wild.

5

What specific component is impacted by CVE-2023-52515?

CVE-2023-52515 impacts the SRP (SCSI RDMA Protocol) handling in the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203