* CVE-2026-99446: phy: core: Fix race-condition between _of_phy_get() and try_module_get()
@ 2026-11-19 14:25 Greg Kroah-Hartman
0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-11-19 14:25 UTC (permalink / raw)
To: linux-cve-announce; +Cc: Greg Kroah-Hartman
From: Greg Kroah-Hartman <gregkh@kernel.org>
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-19 14:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 14:25 CVE-2026-99446: phy: core: Fix race-condition between _of_phy_get() and try_module_get() Greg Kroah-Hartman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.