VDB

CVE-2025-37828

CVE-2025-37828 PUBLISHED

scsi: ufs: mcq: Add NULL check in ufshcd_mcq_abort()

Reported by linux · Published May 8, 2025

In the Linux kernel, the following vulnerability has been resolved: scsi: ufs: mcq: Add NULL check in ufshcd_mcq_abort() A race can occur between the MCQ completion path and the abort handler: once a request completes, __blk_mq_free_request() sets rq->mq_hctx to NULL, meaning the subsequent ufshcd_mcq_req_to_hwq() call in ufshcd_mcq_abort() can return a NULL pointer. If this NULL pointer is dereferenced, the kernel will crash. Add a NULL check for the returned hwq pointer. If hwq is NULL, log an error and return FAILED, preventing a potential NULL-pointer dereference. As suggested by Bart, the ufshcd_cmd_inflight() check is removed. This is similar to the fix in commit 74736103fb41 ("scsi: ufs: core: Fix ufshcd_abort_one racing issue"). This is found by our static analysis tool KNighter.

EPSS 0.19% · 8.4th percentile

Risk scores

EPSS Score
0.19%
8.4th percentile

Affected products

VendorProductVersions
LinuxLinuxf1304d4420777f82a1d844c606db3d9eca841765, f1304d4420777f82a1d844c606db3d9eca841765, f1304d4420777f82a1d844c606db3d9eca841765
LinuxLinux6.5, 0, 6.6.89
linuxlinux_kernel6.5, 6.5, 6.5
LinuxLinux6.5, 0, 6.6.89

Timeline

  • May 7, 2025 CVE Published
  • May 8, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 24, 2025 PoC Published (2 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (123 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (127 in total, the first dated here)
  • Jun 9, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-37828
vulnetix vdb fixes CVE-2025-37828

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-37828/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›