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.
https://git.kernel.org/stable/c/c7aa4c3708cc0d8487336f8281665eaea87130f6
https://git.kernel.org/stable/c/659cc3d8d5ef246263873fce72c8cadeeed073cc
https://git.kernel.org/stable/c/2943a0edd4865ed744702ada647921c3981207f6
https://git.kernel.org/stable/c/13fb0477da9b400071b9d518b24d6434c4965263