CVE-2022-50649
JSON

Not scored

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

Severity
Not scored
Exploit likelihood
0.29% (higher than 14% of CVEs)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom fe8e81b7e899968690e5e87c25727178921b5b9a before 24a0be36e9a21f63de2e6088607e689e59ec15f4, from fe8e81b7e899968690e5e87c25727178921b5b9a before 3376a0cf138dfc90b449fde541ca228a33e1c143, from fe8e81b7e899968690e5e87c25727178921b5b9a before 89f305a71418591cdda18180f712f91c9820f03b, from fe8e81b7e899968690e5e87c25727178921b5b9a before 7c8bc374659de19d846f7cab3eda9ebdb005c4cc, from fe8e81b7e899968690e5e87c25727178921b5b9a before 038e4aa71281d0cbc8aeb56ba05ff7fc5653a106, from fe8e81b7e899968690e5e87c25727178921b5b9a before dc52b73d3acd676ccbb440fcec617c547b903af2, from fe8e81b7e899968690e5e87c25727178921b5b9a before 9d47e01b9d807808224347935562f7043a358054, 4.19
Not affected: before 4.19, from 4.19.262 up to 4.19.*, from 5.4.220 up to 5.4.*, from 5.10.150 up to 5.10.*, from 5.15.75 up to 5.15.*, from 5.19.17 up to 5.19.*
CVE List

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: power: supply: adp5061: corregir lectura fuera de límites en adp5061_get_chg_type() ADP5061_CHG_STATUS_1_CHG_STATUS se enmascara con 0x07, lo que significa una longitud de 8, pero el tamaño del array adp5061_chg_type es 4, puede terminar leyendo 4 elementos más allá del final del array adp5061_chg_type[].

References

Sources

SourceRecordLicence
CVE ListCVE-2022-50649 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-50649 changed 2026-11-10Public domain