Junglewise Threat Intelligence

CVE-2025-68371: Linux Kernel smartpqi use-after-free in SCSI device removal

CVE-2025-68371 · Severity: info · CVSS 5.5 · Published 2025-12-24

Technologies: Linux Kernel, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP. Vendors: Linux, Siemens.

Executive brief

A vulnerability in the Linux kernel's smartpqi storage driver could allow a local user to cause a system crash or unpredictable behavior. The issue occurs when the system attempts to reset a storage device at the same time the device is being removed, leading to the use of memory that has already been freed. This primarily impacts system stability and availability in environments using specific Microchip storage controllers.

Technical details

A race condition exists in the smartpqi driver (drivers/scsi/smartpqi/smartpqi_init.c) between the LUN reset handler and device removal via sdev_destroy(). An abort handler may schedule a LUN reset work item that executes after the device has been removed and its resources freed, resulting in a use-after-free (UAF). The fix introduces a check in the reset handler to verify the device's presence in the SCSI device list, ensures pending Task Management Function (TMF) work is canceled during destruction, and synchronizes device freeing using the LUN reset mutex. This vulnerability requires local access and specific timing to exploit.

Affected products

  • Linux Linux Kernel 6.0 to 6.1.160, 6.6.x, 6.11.x, 6.12.x
  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.6

Timeline

  • 2024-12-24: advisory: Initial CVE publication
  • 2025-11-06: patched: Fix committed to Linux kernel source

References

Related threats