title: RDMA/srp: Do not call scsi_done() from srp_abort()
description: 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.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: d8536670916a, lessThan: 26788a5b48d9, status: affected, versionType: git
version: d8536670916a, lessThan: b9bdffb3f9aa, status: affected, versionType: git
version: d8536670916a, lessThan: 2b298f918158, status: affected, versionType: git
version: d8536670916a, lessThan: 05a10b316ada, status: affected, versionType: git
version: d8536670916a, lessThan: e193b7955dfa, status: affected, versionType: git
}
{
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 3.7, status: affected
version: 0, lessThan: 3.7, status: unaffected, versionType: custom
version: 5.10.199, lessThanOrEqual: 5.10.*, status: unaffected, versionType: custom
version: 5.15.136, lessThanOrEqual: 5.15.*, status: unaffected, versionType: custom
version: 6.1.57, lessThanOrEqual: 6.1.*, status: unaffected, versionType: custom
version: 6.5.7, lessThanOrEqual: 6.5.*, status: unaffected, versionType: custom
version: 6.6, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
