usb: typec: qcom-pmic: cancel reset_work on stop
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: typec: qcom-pmic: cancel reset_work on stop
pdphy_stop() disables IRQs but leaves reset_work pending. If the IRQ handler schedules it just before disable_irq(), the work runs after remove() frees the struct via devm.
Call cancel_work_sync() after disabling IRQs to close the window.
This issue was found by an in-house static analysis tool.
From the CVE record · Linux
The Linux kernel’s USB Type-C qcom-pmic driver can leave reset_work pending when pdphy_stop() disables IRQs. If an IRQ schedules the work just before IRQs are disabled, it can run after remove() frees its associated structure, causing a use-after-free. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running Linux kernels with the USB Type-C qcom-pmic driver should check their versions; affected versions are not specified.