Skip to content
Heist/ feed
Back to feed
UnratedFix available

scsi: ufs: core: Fix racing issue between ufshcd_mcq_abort() and ISR

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: scsi: ufs: core: Fix racing issue between ufshcd_mcq_abort() and ISR If command timeout happens and cq complete IRQ is raised at the same time, ufshcd_mcq_abort clears lprb->cmd and a NULL pointer deref happens in the ISR. Error log: ufshcd_abort: Device abort task at tag 18 Unable to handle kernel NULL pointer dereference at virtual address 0000000000000108 pc : [0xffffffe27ef867ac] scsi_dma_unmap+0xc/0x44 lr : [0xffffffe27f1b898c] ufshcd_release_scsi_cmd+0x24/0x114

Products
Kernel
Affected versions
Not specified
Fixed versions
6.5.13, 6.6.3
CVEs
CVE-2023-52785
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 23:22 UTC · Revision 1

Source evidence

scsi: ufs: core: Fix racing issue between ufshcd_mcq_abort() and ISR

core-osv · Original source

Published 21 May 2024, 15:31 UTC

In the Linux kernel, the following vulnerability has been resolved: scsi: ufs: core: Fix racing issue between ufshcd_mcq_abort() and ISR If command timeout happens and cq complete IRQ is raised at the same time, ufshcd_mcq_abort clears lprb->cmd and a NULL pointer deref happens in the ISR. Error log: ufshcd_abort: Device abort task at tag 18 Unable to handle kernel NULL pointer dereference at virtual address 0000000000000108 pc : [0xffffffe27ef867ac] scsi_dma_unmap+0xc/0x44 lr : [0xffffffe27f1b898c] ufshcd_release_scsi_cmd+0x24/0x114

osv:CVE-2023-52785

Kernel

Fixed versions: 6.5.13, 6.6.3

Complete source record
{
  "id": "1b6e64209c816c6d68563b08774537f78f909ea8f975b46f909dcc239b3291f5",
  "url": "https://osv.dev/vulnerability/CVE-2023-52785",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "scsi: ufs: core: Fix racing issue between ufshcd_mcq_abort() and ISR",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: scsi: ufs: core: Fix racing issue between ufshcd_mcq_abort() and ISR If command timeout happens and cq complete IRQ is raised at the same time, ufshcd_mcq_abort clears lprb->cmd and a NULL pointer deref happens in the ISR. Error log: ufshcd_abort: Device abort task at tag 18 Unable to handle kernel NULL pointer dereference at virtual address 0000000000000108 pc : [0xffffffe27ef867ac] scsi_dma_unmap+0xc/0x44 lr : [0xffffffe27f1b898c] ufshcd_release_scsi_cmd+0x24/0x114",
    "evidence": "osv:CVE-2023-52785",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.5.13",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2023-52785",
      "aliases": [
        "CVE-2023-52785"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "f1304d4420777f82a1d844c606db3d9eca841765"
                },
                {
                  "fixed": "8f15a7e3c054d960bbd1521110700450bbf798a1"
                },
                {
                  "fixed": "f84d461f33a6b27304d468d9cfb56c0cefdb4ee7"
                },
                {
                  "fixed": "27900d7119c464b43cd9eac69c85884d17bae240"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52785.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.5.0"
                },
                {
                  "fixed": "6.5.13"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.6.0"
                },
                {
                  "fixed": "6.6.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52785.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.477387929Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/27900d7119c464b43cd9eac69c85884d17bae240",
        "https://git.kernel.org/stable/c/8f15a7e3c054d960bbd1521110700450bbf798a1",
        "https://git.kernel.org/stable/c/f84d461f33a6b27304d468d9cfb56c0cefdb4ee7",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52785.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-52785",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52785.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-52785",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 490848,
  "published_at": "2024-05-21T15:31:03.04+00:00"
}