android_kernel_xiaomi_sm7250/drivers/power
Wei Yongjun 24a0be36e9 power: supply: adp5061: fix out-of-bounds read in adp5061_get_chg_type()
[ Upstream commit 9d47e01b9d807808224347935562f7043a358054 ]

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.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 13:19:40 +02:00
..
avs
reset power/reset: arm-versatile: Fix refcount leak in versatile_reboot_probe 2022-07-29 17:10:31 +02:00
supply power: supply: adp5061: fix out-of-bounds read in adp5061_get_chg_type() 2022-10-26 13:19:40 +02:00
Kconfig
Makefile