scsi: mpi3mr: Fix potential deadlock in mpi3mr_fault_uevent_emit
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: mpi3mr: Fix potential deadlock in mpi3mr_fault_uevent_emit
mpi3mr_fault_uevent_emit() runs from the fault watchdog and reset paths where host I/O may already be blocked. GFP_KERNEL allocations here, both the local kzalloc_obj() and the ones inside kobject_uevent_env() itself, can trigger reclaim that waits on that blocked I/O and deadlock.
Use memalloc_noio_save()/restore() to cover the whole call instead of just the local allocation.
From the CVE record · Linux
The Linux kernel’s mpi3mr fault uevent emission can deadlock when it runs from a fault watchdog or reset path while host I/O is blocked. Memory allocations can trigger reclaim that waits on that blocked I/O. The input does not specify an attacker action, authentication requirement, or user interaction.
Engineers running Linux kernels with the mpi3mr driver should check their kernel; affected versions are not specified.