From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795099781; b=QWt5SrSRnjThAZ3R+w7OAXREx8lxSkXWPsPsGkhWTly8gZTiRN49NB6IMM5BgkHVlQp9 y27plDhzyyri32TWY5jeW+yHgimeTScw55c7uYr8VQJBT/nO88swYNYBX6QWJ+4ZWElkn S0PP7XY/JwtBKMQ9dwnkgYfrDWG8Vh7Vf2Mm3pMUSuhIgrrlzDhrj/GE8MCGLXrDV4M3g Y5MysuBWn/9cvpkGYNWRLUkgbccv8Qhqog8QAU9XFKIMX/rgBvAjeJNI3AWd+1dAxh+8j 1GoDH1Ri8VaYT9B52nGHi+V74R/yqk99GGVQU7z3dDUjHfC1DFpYDDKm+VfKLVTZdCg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099781; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=ODSgNGrZxdtk+Vqw522leqT4URPz1X9S+D6TZd8/ugM=; b=ArN7PMH+MYC2TVt8IJkGSDMMx01Y+qDwI6wgHlfkrK45cB7fOu30OqnaOF2lUONqHQID RGWJXcMBxVHaN4njNWE4Q9USm8u2hw50hlx2NUjjVpYc/QIn/NoBcYrhhEDx+55ckaK5z GEOd/91M1ck8Z1sJvlx/eFlhxoMW8ooxVBnTL6bYfkE/Rbch/NSI8mGuZAadyUZ1Nx5uO 2ws7u0UfEN57PcnMI3oiXh13mpZ6JGOAP+Qhp7np1od33tXN0bPhovtIe1b/sXI/DM38s RywWOSJpSGRtEayReGXuri880tbfe30GlS+wY/pAD/DsJKsEZgw/dwdG3FAQojlK3aA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="cYVZ/HYH"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEE51606A33D for ; Thu, 19 Nov 2026 14:49:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=cYVZ/HYH Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE6121F000C4; Thu, 19 Nov 2026 14:49:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099781; bh=ODSgNGrZxdtk+Vqw522leqT4URPz1X9S+D6TZd8/ugM=; h=From:To:Cc:Subject:Date:Reply-To; b=cYVZ/HYHkJK1T4BsggWmnlMn0ixbLE1wCrBGcrrD/fqphbNcoxJZ+pOk+D+WJMr+I cOL9CZN+DqBx9so9FNbiBO1fjc+rV11PlSULdutyLXTGAEc8HN0eDo6D5cRsJTeFSZ yZVsov+W6XVuxiTspIzQwZkIT+OXlZhBNguvof8A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99446: phy: core: Fix race-condition between _of_phy_get() and try_module_get() Date: Thu, 19 Nov 2026 15:25:44 +0100 Message-ID: <2026111906-CVE-2026-99446-ed88@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3053; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jSKrOLVsjjoB4FBJCn6EwMCRfsXkOdUqhgBxwU/f+Fc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2driFd8fC3b57yZ20+pjfvusXntxj6qA47Osp+yYw d3m+e1GRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwk9R3DggXFayqe7Fgzt7Tp 8NQ3Jv8l7U2sSxnmJ7yafbTzyuOlGlO9jv/sWPzRiOHOXAA= 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: phy: core: Fix race-condition between _of_phy_get() and try_module_get() Sashiko asked during a patch review if the existing usage pattern had a race condition; specifically in of_phy_get() if it was possible between returning from _of_phy_get() and running try_module_get() that a module might be unbound leading to use-after-free. Looking at the code this appears to be so, there is no linkage between the phy and module under a synchronisation primitive. Using the phy_provider_mutex in phy_get() will ensure there is a link between the returned phy pointer and the module_get() bumping the module reference count. Amend phy_get(), of_phy_get() and devm_of_phy_get_by_index() to fix the same usage pattern. phy_provider_unregister() must take the phy_provider_mutex so amending phy_get()/of_phy_get() to take that same mutex guarantees there is no use-after-free. The Linux kernel CVE team has assigned CVE-2026-99446 to this issue. Affected and fixed versions =========================== Issue introduced in 3.13 with commit ff764963479a1b18721ab96e531404c50fefe8b1 and fixed in 6.12.117 with commit 2156c5aefd2c97a60766520bd04f4790f3b38f64 Issue introduced in 3.13 with commit ff764963479a1b18721ab96e531404c50fefe8b1 and fixed in 6.18.61 with commit 2ea5385758a7cc863d9e2f6b642c8e7820437980 Issue introduced in 3.13 with commit ff764963479a1b18721ab96e531404c50fefe8b1 and fixed in 7.3.2 with commit 8a9f16b5237eb5690cc109d37a545f034afa81de Issue introduced in 3.13 with commit ff764963479a1b18721ab96e531404c50fefe8b1 and fixed in 7.4-rc1 with commit 090055ee629523092688da42428558ba56d4272f 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-99446 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/phy/phy-core.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/2156c5aefd2c97a60766520bd04f4790f3b38f64 https://git.kernel.org/stable/c/2ea5385758a7cc863d9e2f6b642c8e7820437980 https://git.kernel.org/stable/c/8a9f16b5237eb5690cc109d37a545f034afa81de https://git.kernel.org/stable/c/090055ee629523092688da42428558ba56d4272f