Description
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 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
d4b50ac06ea6e47bdd2b04e97d1090c673c80645 to < 85d963499f1feeea287c0a37c3eac3fc1898eca9affected73ce9f1f2741a38f5d27393e627702ae2c46e6f2 to < 0ae90a19e6b5a8557d25d95facb7e01c9c07af38affected73ce9f1f2741a38f5d27393e627702ae2c46e6f2 to < c99ba6c234d4d537c317336376b78c088174034aaffected73ce9f1f2741a38f5d27393e627702ae2c46e6f2 to < 2eda1513f573945c1e3a0090341f3d28740463b1affected73ce9f1f2741a38f5d27393e627702ae2c46e6f2 to < dca151633c0fde90935311c60e7cfc064aa56134affected6.6.8 to < 6.6.157affected
Linux Linux
Default version status: affected
6.7affected0 to < 6.7unaffected6.6.157 to ≤ 6.6.*unaffected6.12.109 to ≤ 6.12.*unaffected6.18.50 to ≤ 6.18.*unaffected7.2.4 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/85d963499f1feeea287c0a37c3eac3fc1898eca9 ↗
- https://git.kernel.org/stable/c/0ae90a19e6b5a8557d25d95facb7e01c9c07af38 ↗
- https://git.kernel.org/stable/c/c99ba6c234d4d537c317336376b78c088174034a ↗
- https://git.kernel.org/stable/c/2eda1513f573945c1e3a0090341f3d28740463b1 ↗
- https://git.kernel.org/stable/c/dca151633c0fde90935311c60e7cfc064aa56134 ↗