Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 299EB1D7E41 for ; Tue, 9 Dec 2025 00:02:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765238579; cv=none; b=dpwTwAN/556pY6C5C0JStIbu/iV2vpaGFH05K1ELbuphr91qFAPwV1UU+EY0DEkBifOe/598D4DP7U1WUU22X6Z/9g12aBl5v18Vv3xCde9//UWyER97B5rK8rir7z168h9szpgHbzBFyRkOdDuy8LWkuLwg2o5/Drlt8uOsPxw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765238579; c=relaxed/simple; bh=ZbILyyP7fG0MeqPGsBM/3M4Kmy8ixprByllPlAJ8gqM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=buoyIk5Tc/Rr4k0pxhmnrPxmZYVjCvs7mwIbWYXxMhxExf8AhUn3AJwvTRHMcvzBhDHa1nXNVvq2V17zqIrHqdc/adn5FzyF3o48XFSsZ4DVR0b633ojz7iN7nJES4ZywcGwzUnLVGjAVPzhzxrCkkw2nWUR/8w4fv0rhrbssKw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wiHDOAou; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="wiHDOAou" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A734C4CEF1; Tue, 9 Dec 2025 00:02:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765238579; bh=ZbILyyP7fG0MeqPGsBM/3M4Kmy8ixprByllPlAJ8gqM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=wiHDOAoueco2Q+/4I0Q5QNxO19OPKTMYw2mp1jGBbuJuZaDStscw9uR3CxvjQgp0s ITPRdvuK4WCopY+Ue1rOArktuoAau4Yhf0LhpZc+ME7qQm1z60ZJXqeQRhA5PkkWKb fioNSTpB8tBZMoz4kTRoDtDBZhOZ5AowA7WfsTdU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50649: power: supply: adp5061: fix out-of-bounds read in adp5061_get_chg_type() Date: Tue, 9 Dec 2025 09:01:50 +0900 Message-ID: <2025120937-CVE-2022-50649-6a84@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2554; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jURC8TIXEvWpVtw3bBDhNXImOcb4J3oiJdQG0EBwotU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnmaQ+5nlwRrajem7N8uzgXk/af3oVOBjc1vLr5tzQEz ZrF+r61I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbCv41hnubJ/qV5yaIfhT/Z 9Gu+jktdaKF6l2HBtpV7/ffeX57hLHVB6VeDypyGD5rXAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2022-50649 to this issue. Affected and fixed versions =========================== Fixed in 4.19.262 with commit 24a0be36e9a21f63de2e6088607e689e59ec15f4 Fixed in 5.4.220 with commit 3376a0cf138dfc90b449fde541ca228a33e1c143 Fixed in 5.10.150 with commit 89f305a71418591cdda18180f712f91c9820f03b Fixed in 5.15.75 with commit 7c8bc374659de19d846f7cab3eda9ebdb005c4cc Fixed in 5.19.17 with commit 038e4aa71281d0cbc8aeb56ba05ff7fc5653a106 Fixed in 6.0.3 with commit dc52b73d3acd676ccbb440fcec617c547b903af2 Fixed in 6.1 with commit 9d47e01b9d807808224347935562f7043a358054 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-50649 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/power/supply/adp5061.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/24a0be36e9a21f63de2e6088607e689e59ec15f4 https://git.kernel.org/stable/c/3376a0cf138dfc90b449fde541ca228a33e1c143 https://git.kernel.org/stable/c/89f305a71418591cdda18180f712f91c9820f03b https://git.kernel.org/stable/c/7c8bc374659de19d846f7cab3eda9ebdb005c4cc https://git.kernel.org/stable/c/038e4aa71281d0cbc8aeb56ba05ff7fc5653a106 https://git.kernel.org/stable/c/dc52b73d3acd676ccbb440fcec617c547b903af2 https://git.kernel.org/stable/c/9d47e01b9d807808224347935562f7043a358054