CVE-2026-43192: dm mpath: Add missing dm_put_device when failing to get scsi dh name
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-43192 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit fd81bc5cca8fc6936a8988de6b5d4c5693b6587e and fixed in 6.19.6 with commit 4aa5c37b7d8019f7296111c1add00e7214baae60 Issue introduced in 6.19 with commit fd81bc5cca8fc6936a8988de6b5d4c5693b6587e and fixed in 7.0 with commit 787bd63ee661b0148ce8e1fde92b7afddd85c446
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-43192
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/md/dm-mpath.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/4aa5c37b7d8019f7296111c1add00e7214baae60 https://git.kernel.org/stable/c/787bd63ee661b0148ce8e1fde92b7afddd85c446