power: supply: max17040: propagate register read errors
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c6f4a42de60b981dd210de01cd3e575835e3158e · < 659cc3d8d5ef246263873fce72c8cadeeed073cc| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
power: supply: max17040: propagate register read errors
max17040_get_vcell() and max17040_get_soc() ignore errors returned by regmap_read(). When an I2C transfer fails, the uninitialized register value is converted and reported to userspace as a valid voltage or state of charge. The polling worker can also replace the cached state of charge with the bogus value and emit a spurious change event.
Propagate read errors through the power supply get_property callback and keep the last valid cached state of charge when polling fails.
From the CVE record · Linux
The max17040 power-supply driver can report an uninitialized value as a valid voltage or state of charge when an I2C register read fails. Its polling worker can also replace the cached charge level with that value and emit a spurious change event. The input describes no attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the max17040 power-supply driver should check whether their kernel includes the fix; affected versions are not specified.