Lucene search

K
cveLinuxCVE-2023-52515
HistoryMar 02, 2024 - 10:15 p.m.

CVE-2023-52515

2024-03-0222:15:47
Linux
web.nvd.nist.gov
53
cve-2023-52515
linux kernel
vulnerability
rdma
srp
scsi
use-after-free
nvd

AI Score

6.3

Confidence

Low

EPSS

0

Percentile

15.5%

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 configurations

Vulners
Node
linuxlinux_kernelRange3.75.10.199
OR
linuxlinux_kernelRange5.11.05.15.136
OR
linuxlinux_kernelRange5.16.06.1.57
OR
linuxlinux_kernelRange6.2.06.5.7
OR
linuxlinux_kernelRange6.6.0
VendorProductVersionCPE
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

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"
      }
    ]
  }
]

AI Score

6.3

Confidence

Low

EPSS

0

Percentile

15.5%