{"id":"CVE-2026-99446","summary":"phy: core: Fix race-condition between _of_phy_get() and try_module_get()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nphy: core: Fix race-condition between _of_phy_get() and try_module_get()\n\nSashiko asked during a patch review if the existing usage pattern had a\nrace condition; specifically in of_phy_get() if it was possible between\nreturning from _of_phy_get() and running try_module_get() that a module\nmight be unbound leading to use-after-free.\n\nLooking at the code this appears to be so, there is no linkage between the\nphy and module under a synchronisation primitive.\n\nUsing the phy_provider_mutex in phy_get() will ensure there is a link between\nthe returned phy pointer and the module_get() bumping the module reference\ncount.\n\nAmend phy_get(), of_phy_get() and devm_of_phy_get_by_index() to fix the\nsame usage pattern.\n\nphy_provider_unregister() must take the phy_provider_mutex so amending\nphy_get()/of_phy_get() to take that same mutex guarantees there is no\nuse-after-free.","modified":"2026-11-19T17:01:17.312477866Z","published":"2026-11-19T14:41:35.219Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99446.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/090055ee629523092688da42428558ba56d4272f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2156c5aefd2c97a60766520bd04f4790f3b38f64"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2ea5385758a7cc863d9e2f6b642c8e7820437980"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8a9f16b5237eb5690cc109d37a545f034afa81de"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99446.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99446"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ff764963479a1b18721ab96e531404c50fefe8b1"},{"fixed":"2156c5aefd2c97a60766520bd04f4790f3b38f64"},{"fixed":"2ea5385758a7cc863d9e2f6b642c8e7820437980"},{"fixed":"8a9f16b5237eb5690cc109d37a545f034afa81de"},{"fixed":"090055ee629523092688da42428558ba56d4272f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99446.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.13.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.61"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99446.json"}}],"schema_version":"1.9.2"}