CVE-2025-68371: scsi: smartpqi: Fix device resources accessed after device removal

Published Dec 24, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

scsi: smartpqi: Fix device resources accessed after device removal

Correct possible race conditions during device removal.

Previously, a scheduled work item to reset a LUN could still execute after the device was removed, leading to use-after-free and other resource access issues.

This race condition occurs because the abort handler may schedule a LUN reset concurrently with device removal via sdevdestroy(), leading to use-after-free and improper access to freed resources.

- Check in the device reset handler if the device is still present in the controller's SCSI device list before running; if not, the reset is skipped.

- Cancel any pending TMF work that has not started in sdevdestroy().

- Ensure device freeing in sdevdestroy() is done while holding the LUN reset mutex to avoid races with ongoing resets.

Affected Software

2 affected components
linux_kernel
Microsoft azl3 kernel 6.6.117.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Resolve the race by (1) canceling any pending TMF work that has not started in sdev_destroy(), (2) in the device reset handler, check whether the device is still present in the controller's SCSI device list before running the reset, and (3) ensure device freeing in sdev_destroy() is performed while holding the LUN reset mutex.

    Linux kernel (scsi) Fix device resources accessed after device removal (race conditions) = Apply the LUN reset mutex / device-reset handler presence check / hold required lock in sdev_destroy()

Event History

Dec 24, 2025
CVE Published
via MITRE·10:33 AM
Data Sourced
via MITRE·10:33 AM
Description
Data Sourced
via NVD·11:16 AM
Description
Dec 25, 2025
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-68371?

CVE-2025-68371 is classified as a major vulnerability that can lead to critical unintended consequences if exploited.

2

How do I fix CVE-2025-68371?

To fix CVE-2025-68371, update to the latest version of the Linux kernel that includes the applied patch.

3

What systems are affected by CVE-2025-68371?

CVE-2025-68371 affects systems running specific versions of the Linux kernel that utilize the SCSI smartpqi driver.

4

What are the risks associated with CVE-2025-68371?

The risks associated with CVE-2025-68371 include potential data loss and system instability due to race conditions during device removal.

5

What should I do if I cannot patch CVE-2025-68371 immediately?

If a patch for CVE-2025-68371 cannot be applied immediately, minimize the use of affected devices and consider temporarily disabling them until a fix is implemented.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203