CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's USB Type-C implementation, specifically in the Qualcomm PMIC Type-C driver, where improper handling of delayed work can lead to use-after-free conditions. This could potentially allow an attacker to execute arbitrary code or cause system instability. Linux distributions utilizing this kernel feature should prioritize patching to mitigate any risks associated with this vulnerability.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: usb: typec: qcom-pmic-typec: disable cc_debounce_dwork on stop cc_debounce_dwork is queued from the set_cc() and start_toggling() callbacks, which run from TCPM's kthread worker. port_stop() returns before tcpm_unregister_port() destroys that worker. Flushing the worker during unregister may therefore run a callback which queues the delayed work after port_stop() has returned. The delayed work can then run after devres has freed pmic_typec_port. Use disable_delayed_work_sync() in port_stop() to cancel a pending instance and prevent the TCPM callbacks from queueing another one. This issue was found by an in-house static analysis tool.