Skip to main content
← All vulnerabilities
CVE-2023-52515

RDMA/srp: Do not call scsi_done() from srp_abort()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.1, 3.3, 3.5, 3.6, 3.7
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 3.0.45 · fixed in 3.1; From 3.2.32 · fixed in 3.3; From 3.4.13 · fixed in 3.5; From 3.5.6 · fixed in 3.6; From 3.6.1 · fixed in 3.7

  • Linux Linux

    3.7

References 5

git.kernel.org