bus: mhi: ep: Fix device refcount leak in the error path of MHI device creation
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.1.188, 6.6.157, 6.12.110, 6.18.52, 7.2.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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().
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 297c77a0f27312b9a04696018c4cbd47926ca92b · fixed in 8acc3813ab5015af73eeb74c9032443162f122d1; From 297c77a0f27312b9a04696018c4cbd47926ca92b · fixed in 51ddb831a36102fd0ea25f354935e49abce9f0a1; From 297c77a0f27312b9a04696018c4cbd47926ca92b · fixed in 4fae8fd4adc7f4765463ddeb1a5fad23936432f6; From 297c77a0f27312b9a04696018c4cbd47926ca92b · fixed in 5587e7871ce994bb079f97fe7e430d99627e5292; From 297c77a0f27312b9a04696018c4cbd47926ca92b · fixed in 8f3f64faee335eb678fd7dca7b95dfe3d0b271fd; From 297c77a0f27312b9a04696018c4cbd47926ca92b · fixed in 6f12862600bb70e599a614d706a095ea5f8f9858
- Linux Linux
5.19
- KernelLinux
From 5.19.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6