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 757C33D6691 for ; Wed, 3 Jun 2026 15:52:17 +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=1780501938; cv=none; b=Angbc3eSldRSTog2w4DabsvC7CcjSaGVeFRypMGXTLlsz+lS/NexvCIXd5JmOd7aBtQTgI64pvy5fRSr32hHY2FUJ8ap5tM2iG6/LCEJxcNemGGg72T6DHrfHcMo6xw/4UIQJU1I22ipkZf9x5l0cdRyQmpZdPKB80ix4+dJnUA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780501938; c=relaxed/simple; bh=uh3rRGKsY+qakl4fLV9EVymaI0llcyHYJzrBoK2B9aY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oz40JlifJUXNkskX/28ESD5HOecbGTK5I9xymlI3rekcx5GbtBllyW/dbf5iwOkh1KNv5bsmi9qU4AlMzSPDBoZJWEQJAe9yQMOJoZW+RLhmY9uwt5Q2U9XqV0Rm++4AO6rpNfY3JwVHJzB+jXF9p7pazSOvwtdSrT86UFCKpxA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1FIRAJa3; 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="1FIRAJa3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96BED1F00893; Wed, 3 Jun 2026 15:52:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780501937; bh=9UWcVb7ILek5E8lWT+7FIGC6a8e4/oDOH3d7fYovP7A=; h=From:To:Cc:Subject:Date:Reply-To; b=1FIRAJa3lLsjOn1XS05qpJDC9sp3VCflaNn0B0bd8UsRDaEpXfHuIva5JRMdNk9dY rtenRY1mbvNoBx7m6Cp6YiqWBWYnXfDO4SxmVrpS68fgmvurCTzyKb6LVzgSWX7fZ/ OMNvtqKrKuFvFpeuFnaxflgxX4VnWaoCYd69gpt0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46246: power: supply: pm8916_lbc: Fix use-after-free for extcon in IRQ handler Date: Wed, 3 Jun 2026 17:49:35 +0200 Message-ID: <2026060333-CVE-2026-46246-f24c@gregkh> X-Mailer: git-send-email 2.54.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=3046; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wgk1mpyVtx8g3UOoP2C11yQV1FgN6g4+9wyTrOu3KL4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkKvryBWsWV7tFVnItmMQeZsouli8Y/DT6RsN5nKqOLS pBM8ruOWBYGQSYGWTFFli/beI7urzik6GVoexpmDisTyBAGLk4BmIhkKsOCruPHe5YdzJI9xL9k 2wXOv5nH2s5nMSyYekd0zUO1rVNEPcQWVP1vTlmnc7gOAA== 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: pm8916_lbc: Fix use-after-free for extcon in IRQ handler Using the `devm_` variant for requesting IRQ _before_ the `devm_` variant for allocating/registering the `extcon` handle, means that the `extcon` handle will be deallocated/unregistered _before_ the interrupt handler (since `devm_` naturally deallocates in reverse allocation order). This means that during removal, there is a race condition where an interrupt can fire just _after_ the `extcon` handle has been freed, *but* just _before_ the corresponding unregistration of the IRQ handler has run. This will lead to the IRQ handler calling `extcon_set_state_sync()` with a freed `extcon` handle. Which usually crashes the system or otherwise silently corrupts the memory... Fix this racy use-after-free by making sure the IRQ is requested _after_ the registration of the `extcon` handle. The Linux kernel CVE team has assigned CVE-2026-46246 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit f8d7a3d21160a0cab4d15b81231f2a76b0fcee13 and fixed in 6.12.75 with commit 9fab0120907e6965168e55b1e17cb9dfaf262b86 Issue introduced in 6.7 with commit f8d7a3d21160a0cab4d15b81231f2a76b0fcee13 and fixed in 6.18.14 with commit 47abfc207ab02cf1297257e282e8048da63f0d08 Issue introduced in 6.7 with commit f8d7a3d21160a0cab4d15b81231f2a76b0fcee13 and fixed in 6.19.4 with commit 48e0f68b50c344bb2d78d65dd98f93e41276ee00 Issue introduced in 6.7 with commit f8d7a3d21160a0cab4d15b81231f2a76b0fcee13 and fixed in 7.0 with commit 23067259919663580c6f81801847cfc7bd54fd1f 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-46246 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/pm8916_lbc.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/9fab0120907e6965168e55b1e17cb9dfaf262b86 https://git.kernel.org/stable/c/47abfc207ab02cf1297257e282e8048da63f0d08 https://git.kernel.org/stable/c/48e0f68b50c344bb2d78d65dd98f93e41276ee00 https://git.kernel.org/stable/c/23067259919663580c6f81801847cfc7bd54fd1f