Lucene search

K
cvelistLinuxCVELIST:CVE-2023-52515
HistoryMar 02, 2024 - 9:52 p.m.

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

2024-03-0221:52:25
Linux
www.cve.org
rdma
srp
linux kernel
vulnerability
scsi_done
use-after-free

7.6 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.7%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/infiniband/ulp/srp/ib_srp.c"
    ],
    "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",
    "programFiles": [
      "drivers/infiniband/ulp/srp/ib_srp.c"
    ],
    "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"
      }
    ]
  }
]

7.6 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.7%