power: supply: sc2731_charger: cancel work on remove
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8ac1091ed18b4a6cb0dc2cd5653f080736f89392 · < d5266b4c5c77152e386a3a2d9d5244b3b6cbd57a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
power: supply: sc2731_charger: cancel work on remove
The USB notifier and initial charger detection can schedule info->work. The remove path unregisters the notifier, but does not cancel queued or running work before the devm-allocated driver data is released.
Set the platform drvdata used by remove, then cancel the work after unregistering the notifier.
This issue was found by a static analysis tool.
From the CVE record · Linux
The sc2731_charger driver can leave charger-detection work queued or running when the driver is removed, after its driver data is released. The input does not describe an attacker path or specify network access, authentication, or user interaction requirements.
Engineers running Linux kernels with the sc2731_charger driver should check whether their kernel includes the fix; affected versions are not specified.