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().
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
297c77a0f27312b9a04696018c4cbd47926ca92b to < 8acc3813ab5015af73eeb74c9032443162f122d1affected297c77a0f27312b9a04696018c4cbd47926ca92b to < 51ddb831a36102fd0ea25f354935e49abce9f0a1affected297c77a0f27312b9a04696018c4cbd47926ca92b to < 4fae8fd4adc7f4765463ddeb1a5fad23936432f6affected297c77a0f27312b9a04696018c4cbd47926ca92b to < 5587e7871ce994bb079f97fe7e430d99627e5292affected297c77a0f27312b9a04696018c4cbd47926ca92b to < 8f3f64faee335eb678fd7dca7b95dfe3d0b271fdaffected297c77a0f27312b9a04696018c4cbd47926ca92b to < 6f12862600bb70e599a614d706a095ea5f8f9858affected
Linux Linux
Default version status: affected
5.19affected0 to < 5.19unaffected6.1.188 to ≤ 6.1.*unaffected6.6.157 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- 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 ↗