What’s Vulnerable › Vulnerabilities

CVE-2022-50649: power: supply: adp5061: fix out-of-bounds read in adp5061_get_chg_type()

Description

In the Linux kernel, the following vulnerability has been resolved: power: supply: adp5061: fix out-of-bounds read in adp5061_get_chg_type() ADP5061_CHG_STATUS_1_CHG_STATUS is masked with 0x07, which means a length of 8, but adp5061_chg_type array size is 4, may end up reading 4 elements beyond the end of the adp5061_chg_type[] array.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-50649 or the next vulnerability affects your stack