dm mpath: Add missing dm_put_device when failing to get scsi dh name
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:
dm mpath: Add missing dm_put_device when failing to get scsi dh name
When commit fd81bc5cca8f ("scsi: device_handler: Return error pointer in scsi_dh_attached_handler_name()") added code to fail parsing the path if scsi_dh_attached_handler_name() failed with -ENOMEM, it didn't clean up the reference to the path device that had just been taken. Fix this, and steamline the error paths of parse_path() a little.
From the CVE record · Linux
The Linux kernel's dm mpath component fails to release a path-device reference when retrieving the SCSI device-handler name fails with -ENOMEM during path parsing. The input does not specify how an attacker could trigger this failure or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with dm mpath should check their versions against the vendor advisory; affected versions are not specified.