PT-2026-161466
Published
2026-11-19
·
Updated
2026-11-19
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾