CVE-2025-37828 Details
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.
A vulnerability in the Linux kernel's SCSI UFS MCQ handling has been addressed. A race condition could lead to a NULL pointer dereference, causing a kernel crash. This issue arises when a request completes and the associated request structure is freed, leaving the abort handler with a NULL pointer. The vulnerability has been mitigated by adding a NULL check in the abort function, logging an error and returning a failure status if a NULL pointer is detected. This fix is similar to a previous correction for a related racing issue in UFS command handling.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/47eec518aef3814f64a5da43df81bdd74d8c0041 | kernel.org | Patch |
| https://git.kernel.org/stable/c/4c324085062919d4e21c69e5e78456dcec0052fe | kernel.org | Patch |
| https://git.kernel.org/stable/c/7d002f591486f5ef4bc02eb02025a53f931f0eb5 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d6979fabe812a168d5053e5a41d5a2e9b8afd7bf | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.5, < 6.6.89 >= 6.7, < 6.12.26 >= 6.13, < 6.14.5 6.15 rc1 6.15 rc2 6.15 rc3 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 14, 2025 | Initial Analysis | [email protected] |
| May 8, 2025 | New CVE Received | kernel.org |