HID: mcp2221: stop device IO before hid_hw_stop
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 85d963499f1feeea287c0a37c3eac3fc1898eca9, Kernel 0ae90a19e6b5a8557d25d95facb7e01c9c07af38, Kernel 2eda1513f573945c1e3a0090341f3d28740463b1 and 6 more.
In the Linux kernel, the following vulnerability has been resolved: HID: mcp2221: stop device IO before hid_hw_stop Quiesce device IO at the start of the devm cleanup callback mcp2221_hid_unregister() so that incoming HID reports cannot race with hardware teardown during probe failure or device removal, addressing a potential use-after-free. Guard the call to hid_device_io_stop() with io_started. On normal removal hid_device_remove() has already cleared io_started before the devres group is released, so an unconditional call would otherwise hit the !io_started path and emit a spurious "io already stopped" warning on every removal. The guard preserves the probe-failure balancing, where io_started is still set after hid_device_io_start(), while staying silent on the normal removal path.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=d4b50ac06ea6e47bdd2b04e97d1090c673c80645 <85d963499f1feeea287c0a37c3eac3fc1898eca9, >=73ce9f1f2741a38f5d27393e627702ae2c46e6f2 <0ae90a19e6b5a8557d25d95facb7e01c9c07af38, >=73ce9f1f2741a38f5d27393e627702ae2c46e6f2 <2eda1513f573945c1e3a0090341f3d28740463b1, >=73ce9f1f2741a38f5d27393e627702ae2c46e6f2 <c99ba6c234d4d537c317336376b78c088174034a, >=73ce9f1f2741a38f5d27393e627702ae2c46e6f2 <dca151633c0fde90935311c60e7cfc064aa56134, =6.7, >=6.6.8 <6.6.157 | 85d963499f1feeea287c0a37c3eac3fc1898eca9, 0ae90a19e6b5a8557d25d95facb7e01c9c07af38, 2eda1513f573945c1e3a0090341f3d28740463b1, c99ba6c234d4d537c317336376b78c088174034a, dca151633c0fde90935311c60e7cfc064aa56134, 6.6.157 |
| linux-kernel: Kernel | >=6.19.0 <7.2.4, >=6.6.8 <6.6.157, >=6.7.0 <6.12.109, >=6.13.0 <6.18.50 | 7.2.4, 6.6.157, 6.12.109, 6.18.50 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket