From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 6C0CA583AB5 for ; Fri, 11 Sep 2026 19:51:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156323; cv=none; b=X/6gv/dNCYKOxgSAYBHrzPFee3IxRyEaRDLTKaaNGkZMV8PwlekHkHiLTfPpS/M1MVSOtFV0XHT1NzjZtqXD5nnWLssx16YHha8ht1edl6+hcV7IK9+Mc/KFLkhSTGCC/PuhzFQYyvmlcSNq9uZ01HdkFKcGS55n46fhLBtw1Es= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156323; c=relaxed/simple; bh=lbfNBArnp+HYOZmLcZZKZ4t8vUaPsm/+a1Rf8q5kN28=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oYRo2e31XYx8CBoCU+2L2oMUxrNMjZLvGNg+dom4KZA9vj/8yy6hkD97E7VN12aTWFBL4v1apeREHORkYlr5NH/ELwtJmR3Dd5nwd9cntJCWKdy3WoSdrKIqRSpncRaHuY2u9X7ZMkgDCgPugb8SlqTuFMxlLO59LE5CloVQPaU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=egwmPpUL; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="egwmPpUL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A65551F00898; Fri, 11 Sep 2026 19:51:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789156313; bh=lpxnuKiglg9p9ZEJO3wASscMJgjbf7QY9qnEF4muU7E=; h=From:To:Cc:Subject:Date:Reply-To; b=egwmPpULVCDovSEu/vmT93LqP8RBo18UYf2jrb7XKS/d8k/EoMcwZnwLrQb+5P/GQ hdZIvedTKTuiyDf6lVUSLMx4WCXPSPUGRtvFQ/Hgcv8Nv5k5bL+Ulq2DDyyDoN/43c yjkbmdUIr1btR8AMUf2vzPR7k3ZcQAFULolvrwcc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89474: power: supply: bq256xx: drain usb_work before freeing the charger Date: Fri, 11 Sep 2026 21:42:43 +0200 Message-ID: <2026091104-CVE-2026-89474-4967@gregkh> X-Mailer: git-send-email 2.55.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=2860; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zgX2gLJTv9HEHp8PnWsrjBYz7hZ/Mddrm0WqTPKmSJU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIgP2yf2/fvvl/+bq1RGt7bxRPgF9zy5UsF6oM1vn2 yzqdWhuRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykgZlhnra8/fM7nmp7r05k WTJR0+bNLLNJUxgWzE+stusIjtk/KaXnZm3ak56q4PtPAA== 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: bq256xx: drain usb_work before freeing the charger The USB-PHY notifier queues usb_work, whose handler calls power_supply_changed(bq->charger). The reset devm action only unregisters the notifier and was registered before the power supplies, so devm frees bq->charger on unwind before the action runs; a usb_work still queued can then dereference it. Register the reset action after the power supplies, so it unregisters the notifiers and drains usb_work before the supplies are released. Initialize usb_work and obtain the PHY references before registering the notifiers, so the worker cannot run before the supplies exist. Found by static analysis. The Linux kernel CVE team has assigned CVE-2026-89474 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 32e4978bb920d047fe5de3ea42d176f267c01f63 and fixed in 6.12.109 with commit 9a467bd1e6811011026ad4c8de701b940d88a00c Issue introduced in 5.12 with commit 32e4978bb920d047fe5de3ea42d176f267c01f63 and fixed in 6.18.50 with commit 9e1aba34df9a87d53460888e05718717c0f69343 Issue introduced in 5.12 with commit 32e4978bb920d047fe5de3ea42d176f267c01f63 and fixed in 7.2.4 with commit c8addb842ae8dcf69c15fc976e33e3bd538a41d7 Issue introduced in 5.12 with commit 32e4978bb920d047fe5de3ea42d176f267c01f63 and fixed in 7.3-rc1 with commit 2dd6cd823777bea6d9a880a12a92a73ec76aee0b 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-2026-89474 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/bq256xx_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/9a467bd1e6811011026ad4c8de701b940d88a00c https://git.kernel.org/stable/c/9e1aba34df9a87d53460888e05718717c0f69343 https://git.kernel.org/stable/c/c8addb842ae8dcf69c15fc976e33e3bd538a41d7 https://git.kernel.org/stable/c/2dd6cd823777bea6d9a880a12a92a73ec76aee0b