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 3E46B21254F for ; Fri, 22 Aug 2025 16:01:25 +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=1755878486; cv=none; b=k54+0YFVJuckG8s8ohCi9vwOY9NjBYwjz1bfuJQ7a0KEJ0ftPH4XhN3v6Ao6QoDUfbavf36ERZYwqKBIcQ2qNyCrhXe9o47nb6OP7LkR8PjVYHlXavuNu45J5XOF8yZhXVeNvB7rMymkMN/cQwHgSjX8PGPq06L9kass4hjEiiE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755878486; c=relaxed/simple; bh=8F2S8zHi329ANFe6d3xhUE3BVkChHUvvZRMlX4wAU/E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PstrEVIR9zZUsEk90+8XeoTwS9anFRuhmerou0r6o4Ksqzd0SeVrAFEvgoazTGebV8EmwczbaPyb+U4rk7LZzgu2m4mXfgioHDj3Ed9Xb3zHKkvYeWsCoJVpiUY6Rt6pzsaJBPOQFiSG7K5uljjs6rYbOpiousWabYRzb4sA/s8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BhQ8+6ov; 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="BhQ8+6ov" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 563F4C4CEED; Fri, 22 Aug 2025 16:01:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755878485; bh=8F2S8zHi329ANFe6d3xhUE3BVkChHUvvZRMlX4wAU/E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=BhQ8+6ovyrJ4Pgb9RMrPsbC4vkoBX9gm4dTWgNERTx2BKLGOWMkBv7z9wMRoAE3Q/ oQgOOggDHO+yMH9ceVn5zNrOyWiEcAoaYUQg452T4NsIl2j4hxFvuZg3JubcUPYoUq PJvD+gPLce4QeJonjGFDWBPJUhcM4EqOttWWFExQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38634: power: supply: cpcap-charger: Fix null check for power_supply_get_by_name Date: Fri, 22 Aug 2025 18:00:43 +0200 Message-ID: <2025082233-CVE-2025-38634-d884@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2905; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=es095tAGTzECMPZwIveAov6hqnqNckSHXEdvsSWqmiI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkrpiieX+q0UMSq0KPcR3aba/zns1//Lc7ysvoyn/OfC /N7lzrmjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIZDOGBUtjpBL3PFyRFSDi bFKQnTr93f4frQzz8xZ0mQoWaVUv9ejILyr3Wuj4YX4aAA== 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: cpcap-charger: Fix null check for power_supply_get_by_name In the cpcap_usb_detect() function, the power_supply_get_by_name() function may return `NULL` instead of an error pointer. To prevent potential null pointer dereferences, Added a null check. The Linux kernel CVE team has assigned CVE-2025-38634 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit eab4e6d953c1059a30ac0f15826abc7dd2374d3c and fixed in 6.1.148 with commit a2436263144980cc99a9860c7b43335847afbe53 Issue introduced in 5.14 with commit eab4e6d953c1059a30ac0f15826abc7dd2374d3c and fixed in 6.6.102 with commit 8e9bdb563916287ba1b4258812434e0585ac6d00 Issue introduced in 5.14 with commit eab4e6d953c1059a30ac0f15826abc7dd2374d3c and fixed in 6.12.42 with commit f642500aa7ed93d2606e4f929244cce9c7467b3a Issue introduced in 5.14 with commit eab4e6d953c1059a30ac0f15826abc7dd2374d3c and fixed in 6.15.10 with commit 9784d832d7c103539cd9afb376534eaa35815d3d Issue introduced in 5.14 with commit eab4e6d953c1059a30ac0f15826abc7dd2374d3c and fixed in 6.16.1 with commit 27001e4f146624c4b3389b029bdc0f8049819560 Issue introduced in 5.14 with commit eab4e6d953c1059a30ac0f15826abc7dd2374d3c and fixed in 6.17-rc1 with commit d9fa3aae08f99493e67fb79413c0e95d30fca5e9 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-2025-38634 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/cpcap-charger.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/a2436263144980cc99a9860c7b43335847afbe53 https://git.kernel.org/stable/c/8e9bdb563916287ba1b4258812434e0585ac6d00 https://git.kernel.org/stable/c/f642500aa7ed93d2606e4f929244cce9c7467b3a https://git.kernel.org/stable/c/9784d832d7c103539cd9afb376534eaa35815d3d https://git.kernel.org/stable/c/27001e4f146624c4b3389b029bdc0f8049819560 https://git.kernel.org/stable/c/d9fa3aae08f99493e67fb79413c0e95d30fca5e9