{"id":"CVE-2025-39905","published":"2025-10-01T07:44:28Z","modified":"2026-05-11T21:38:40Z","title":"net: phylink: add lock for serializing concurrent pl->phydev writes with resolver","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: phylink: add lock for serializing concurrent pl->phydev writes with resolver\n\nCurrently phylink_resolve() protects itself against concurrent\nphylink_bringup_phy() or phylink_disconnect_phy() calls which modify\npl->phydev by relying on pl->state_mutex.\n\nThe problem is that in phylink_resolve(), pl->state_mutex is in a lock\ninversion state with pl->phydev->lock. So pl->phydev->lock needs to be\nacquired prior to pl->state_mutex. But that requires dereferencing\npl->phydev in the first place, and without pl->state_mutex, that is\nracy.\n\nHence the reason for the extra lock. Currently it is redundant, but it\nwill serve a functional purpose once mutex_lock(&phy->lock) will be\nmoved outside of the mutex_lock(&pl->state_mutex) section.\n\nAnother alternative considered would have been to let phylink_resolve()\nacquire the rtnl_mutex, which is also held when phylink_bringup_phy()\nand phylink_disconnect_phy() are called. But since phylink_disconnect_phy()\nruns under rtnl_lock(), it would deadlock with phylink_resolve() when\ncalling flush_work(&pl->resolve). Additionally, it would have been\nundesirable because it would have unnecessarily blocked many other call\npaths as well in the entire kernel, so the smaller-scoped lock was\npreferred.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00146,"percentile":0.01934,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://git.kernel.org/stable/c/56fe63b05ec84ae6674269d78397cec43a7a295a","tags":[]},{"url":"https://git.kernel.org/stable/c/0ba5b2f2c381dbec9ed9e4ab3ae5d3e667de0dc3","tags":[]}],"priority":{"score":5.3,"factors":[{"name":"EPSS percentile","points":0.39},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 5fd0f1a02e750e2db4038dee60edea669ce5aab1, < 56fe63b05ec84ae6674269d78397cec43a7a295a",">= 5fd0f1a02e750e2db4038dee60edea669ce5aab1, < 0ba5b2f2c381dbec9ed9e4ab3ae5d3e667de0dc3"]},{"vendor":"Linux","product":"Linux","versions":["6.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-01-14T19:30:27.795933Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-32887","exploited":false,"provenance":"source"}}