First published: Thu May 08 2025(Updated: )
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.
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Linux kernel |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2025-37828 has a medium severity rating due to a potential race condition in the Linux kernel.
To fix CVE-2025-37828, update the Linux kernel to the latest version that addresses this vulnerability.
CVE-2025-37828 affects systems running vulnerable versions of the Linux kernel.
CVE-2025-37828 is a race condition vulnerability in the SCSI subsystem of the Linux kernel.
CVE-2025-37828 may be exploited under specific conditions, making it moderately difficult to trigger.