power: supply: adp5061: fix out-of-bounds read in adp5061_get_chg_type()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fe8e81b7e899968690e5e87c25727178921b5b9a · < dc52b73d3acd676ccbb440fcec617c547b903af2| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's adp5061_get_chg_type() can read beyond the end of the adp5061_chg_type array because a masked status value can exceed the array's bounds. The input does not specify how an attacker could trigger this read or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the adp5061 charger driver should check their exposure; affected versions are not specified.