Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
c6f4a42de60b981dd210de01cd3e575835e3158e to < bcdcbef9c5e69a1e79c6b9f6a3434da2f68724edaffectedc6f4a42de60b981dd210de01cd3e575835e3158e to < 2943a0edd4865ed744702ada647921c3981207f6affectedc6f4a42de60b981dd210de01cd3e575835e3158e to < 13fb0477da9b400071b9d518b24d6434c4965263affectedc6f4a42de60b981dd210de01cd3e575835e3158e to < c7aa4c3708cc0d8487336f8281665eaea87130f6affectedc6f4a42de60b981dd210de01cd3e575835e3158e to < 659cc3d8d5ef246263873fce72c8cadeeed073ccaffected
Linux Linux
Default version status: affected
2.6.31affected0 to < 2.6.31unaffected6.6.160 to ≤ 6.6.*unaffected6.12.109 to ≤ 6.12.*unaffected6.18.50 to ≤ 6.18.*unaffected7.2.4 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/bcdcbef9c5e69a1e79c6b9f6a3434da2f68724ed ↗
- https://git.kernel.org/stable/c/2943a0edd4865ed744702ada647921c3981207f6 ↗
- https://git.kernel.org/stable/c/13fb0477da9b400071b9d518b24d6434c4965263 ↗
- https://git.kernel.org/stable/c/c7aa4c3708cc0d8487336f8281665eaea87130f6 ↗
- https://git.kernel.org/stable/c/659cc3d8d5ef246263873fce72c8cadeeed073cc ↗