CVE-2025-37828
scsi: ufs: mcq: Add NULL check in ufshcd_mcq_abort()
Check your servers for CVE-2025-37828
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-37828 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.23% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f1304d4420777f82a1d844c606db3d9eca841765, before d6979fabe812a168d5053e5a41d5a2e9b8afd7bf affected from f1304d4420777f82a1d844c606db3d9eca841765, before 7d002f591486f5ef4bc02eb02025a53f931f0eb5 affected from f1304d4420777f82a1d844c606db3d9eca841765, before 47eec518aef3814f64a5da43df81bdd74d8c0041 affected from f1304d4420777f82a1d844c606db3d9eca841765, before 4c324085062919d4e21c69e5e78456dcec0052fe
Other versions: unaffected
|
| Linux |
affected 6.5 unaffected before 6.5 unaffected from 6.6.89 up to and including 6.6.* unaffected from 6.12.26 up to and including 6.12.* unaffected from 6.14.5 up to and including 6.14.* unaffected 6.15 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-37828 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-37828
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-37828
trivy image --scanners vuln IMAGE | grep CVE-2025-37828
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/d6979fabe812a168d5053e5a41d5a2e9b8afd7bf git.kernel.org
- https://git.kernel.org/stable/c/7d002f591486f5ef4bc02eb02025a53f931f0eb5 git.kernel.org
- https://git.kernel.org/stable/c/47eec518aef3814f64a5da43df81bdd74d8c0041 git.kernel.org
- https://git.kernel.org/stable/c/4c324085062919d4e21c69e5e78456dcec0052fe git.kernel.org
Source: the record CVE-2025-37828 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse