Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected c6f4a42de60b981dd210de01cd3e575835e3158e before bcdcbef9c5e69a1e79c6b9f6a3434da2f68724ed; affected c6f4a42de60b981dd210de01cd3e575835e3158e before 2943a0edd4865ed744702ada647921c3981207f6; affected c6f4a42de60b981dd210de01cd3e575835e3158e before 13fb0477da9b400071b9d518b24d6434c4965263; affected c6f4a42de60b981dd210de01cd3e575835e3158e before c7aa4c3708cc0d8487336f8281665eaea87130f6; affected c6f4a42de60b981dd210de01cd3e575835e3158e before 659cc3d8d5ef246263873fce72c8cadeeed073cc |
| Linux / Linux | affected 2.6.31; unaffected 0 before 2.6.31; unaffected 6.6.160 through 6.6.*; unaffected 6.12.109 through 6.12.*; unaffected 6.18.50 through 6.18.*; unaffected 7.2.4 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
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