power: supply: max17040: synchronize work cancellation on suspend
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c6f4a42de60b981dd210de01cd3e575835e3158e · < aad7247bd35ad44af90a5e8974cdff614235b497| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
power: supply: max17040: synchronize work cancellation on suspend
max17040_work() requeues itself after every poll. cancel_delayed_work() only cancels a pending instance and does not wait for a callback that is already running.
If system suspend races with the polling callback, the callback can continue accessing the fuel gauge and requeue itself after the suspend callback returns.
Use cancel_delayed_work_sync() to ensure polling is quiesced before suspend completes.
From the CVE record · Linux
The Linux kernel’s max17040 fuel-gauge driver can keep polling during system suspend if suspend races with an active polling callback. The callback may continue accessing the fuel gauge and requeue itself after the suspend callback returns. The input does not describe an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the max17040 fuel-gauge driver should check whether their kernel includes the fix; affected versions are not specified.