Advisory Published
Updated

CVE-2025-37828: scsi: ufs: mcq: Add NULL check in ufshcd_mcq_abort()

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 SoftwareAffected VersionHow to fix
Linux kernel

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-37828?

    CVE-2025-37828 has a medium severity rating due to a potential race condition in the Linux kernel.

  • How can I fix CVE-2025-37828?

    To fix CVE-2025-37828, update the Linux kernel to the latest version that addresses this vulnerability.

  • What systems are affected by CVE-2025-37828?

    CVE-2025-37828 affects systems running vulnerable versions of the Linux kernel.

  • What type of vulnerability is CVE-2025-37828?

    CVE-2025-37828 is a race condition vulnerability in the SCSI subsystem of the Linux kernel.

  • Is CVE-2025-37828 easily exploitable?

    CVE-2025-37828 may be exploited under specific conditions, making it moderately difficult to trigger.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203