HID: mcp2221: always initialize and cancel init_work

State
Published
Severity
Not Scored
Published
Nov 19, 2026
Updated
Nov 19, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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

HID: mcp2221: always initialize and cancel init_work

The writable gpio_mode_enforce parameter can change between probe and remove.

If it changes from false to true after probe, remove skips cancellation of init_work. Pending or running work can then access devm-managed driver state after teardown. Changing it from true to false can make remove cancel an uninitialized delayed work item.

Initialize init_work whenever IIO is reachable and cancel it unconditionally on remove. Keep the parameter check only for scheduling the initialization.

The false-to-true cancellation gap was previously reported by Sashiko. We also encountered this issue during our static-analysis research.

ProductVersions
Linux Linux200e6c6e94fa786e36e4fe33eebf16b822181b99 to before 19711bd64d60378137353ac3e6b774bd3a660f89 Affected200e6c6e94fa786e36e4fe33eebf16b822181b99 to before 6a006ff898b459e0bd10375d7fbe0ea7f7a132b9 Affected
Linux Linux7.1 Affectedbefore 7.1 Not Affected7.3.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.