Skip to contentSkip to conversation

CVE-2026-93136: bus: mhi: ep: Fix device refcount leak in the error path of MHI device creation

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

bus: mhi: ep: Fix device refcount leak in the error path of MHI device creation

mhi_ep_create_device() takes one device reference for the UL channel and another for the DL channel after allocating the transfer device. These references are normally released by mhi_ep_destroy_device() before the device itself is removed.

If dev_set_name() or device_add() fails, the error path currently drops only one reference. The remaining channel references keep the device from being released and leave the channels associated with a device that was never registered.

Route both failures through a common unwind path that drops the DL channel reference, the UL channel reference, and the initial reference from device_initialize().

The Linux kernel CVE team has assigned CVE-2026-93136 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.19 with commit 297c77a0f27312b9a04696018c4cbd47926ca92b and fixed in 6.1.188 with commit 8acc3813ab5015af73eeb74c9032443162f122d1
	Issue introduced in 5.19 with commit 297c77a0f27312b9a04696018c4cbd47926ca92b and fixed in 6.6.157 with commit 51ddb831a36102fd0ea25f354935e49abce9f0a1
	Issue introduced in 5.19 with commit 297c77a0f27312b9a04696018c4cbd47926ca92b and fixed in 6.12.110 with commit 4fae8fd4adc7f4765463ddeb1a5fad23936432f6
	Issue introduced in 5.19 with commit 297c77a0f27312b9a04696018c4cbd47926ca92b and fixed in 6.18.52 with commit 5587e7871ce994bb079f97fe7e430d99627e5292
	Issue introduced in 5.19 with commit 297c77a0f27312b9a04696018c4cbd47926ca92b and fixed in 7.2.6 with commit 8f3f64faee335eb678fd7dca7b95dfe3d0b271fd
	Issue introduced in 5.19 with commit 297c77a0f27312b9a04696018c4cbd47926ca92b and fixed in 7.3-rc1 with commit 6f12862600bb70e599a614d706a095ea5f8f9858

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-93136

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/bus/mhi/ep/main.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/8acc3813ab5015af73eeb74c9032443162f122d1
	https://git.kernel.org/stable/c/51ddb831a36102fd0ea25f354935e49abce9f0a1
	https://git.kernel.org/stable/c/4fae8fd4adc7f4765463ddeb1a5fad23936432f6
	https://git.kernel.org/stable/c/5587e7871ce994bb079f97fe7e430d99627e5292
	https://git.kernel.org/stable/c/8f3f64faee335eb678fd7dca7b95dfe3d0b271fd
	https://git.kernel.org/stable/c/6f12862600bb70e599a614d706a095ea5f8f9858