{"id":"CVE-2026-99446","state":"PUBLISHED","title":"phy: core: Fix race-condition between _of_phy_get() and try_module_get()","description":"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.","publishedAt":"2026-11-19T14:41:35.219Z","updatedAt":"2026-11-19T14:41:35.219Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ff764963479a1b18721ab96e531404c50fefe8b1","status":"affected","lessThan":"2156c5aefd2c97a60766520bd04f4790f3b38f64","versionType":"git"},{"version":"ff764963479a1b18721ab96e531404c50fefe8b1","status":"affected","lessThan":"2ea5385758a7cc863d9e2f6b642c8e7820437980","versionType":"git"},{"version":"ff764963479a1b18721ab96e531404c50fefe8b1","status":"affected","lessThan":"8a9f16b5237eb5690cc109d37a545f034afa81de","versionType":"git"},{"version":"ff764963479a1b18721ab96e531404c50fefe8b1","status":"affected","lessThan":"090055ee629523092688da42428558ba56d4272f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/phy/phy-core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.13","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/phy/phy-core.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-11-19T14:48:06.147Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99446.json","commit":"783f6d4140a34eaf92c5bfee971cfe497fa6394e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99446","state":"PUBLISHED","datePublished":"2026-11-19T14:41:35.219Z","dateUpdated":"2026-11-19T14:41:35.219Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.415Z"},"containers":{"cna":{"title":"phy: core: Fix race-condition between _of_phy_get() and try_module_get()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ff764963479a1b18721ab96e531404c50fefe8b1","status":"affected","lessThan":"2156c5aefd2c97a60766520bd04f4790f3b38f64","versionType":"git"},{"version":"ff764963479a1b18721ab96e531404c50fefe8b1","status":"affected","lessThan":"2ea5385758a7cc863d9e2f6b642c8e7820437980","versionType":"git"},{"version":"ff764963479a1b18721ab96e531404c50fefe8b1","status":"affected","lessThan":"8a9f16b5237eb5690cc109d37a545f034afa81de","versionType":"git"},{"version":"ff764963479a1b18721ab96e531404c50fefe8b1","status":"affected","lessThan":"090055ee629523092688da42428558ba56d4272f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/phy/phy-core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.13","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/phy/phy-core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/2156c5aefd2c97a60766520bd04f4790f3b38f64"},{"url":"https://git.kernel.org/stable/c/2ea5385758a7cc863d9e2f6b642c8e7820437980"},{"url":"https://git.kernel.org/stable/c/8a9f16b5237eb5690cc109d37a545f034afa81de"},{"url":"https://git.kernel.org/stable/c/090055ee629523092688da42428558ba56d4272f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T14:41:35.219Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}