# CVE-2025-39905: net: phylink: add lock for serializing concurrent pl-\>phydev writes with resolver

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.15% (percentile 2, 2026-11-28)
- **CWE:** CWE-362
- **Published:** 2025-10-01T07:44:28.758Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 5fd0f1a02e750e2db4038dee60edea669ce5aab1, \< 56fe63b05ec84ae6674269d78397cec43a7a295a; \>= 5fd0f1a02e750e2db4038dee60edea669ce5aab1, \< 0ba5b2f2c381dbec9ed9e4ab3ae5d3e667de0dc3
- Anyone running Linux 6.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: phylink: add lock for serializing concurrent pl-\>phydev writes with resolver

Currently phylink\_resolve() protects itself against concurrent
phylink\_bringup\_phy() or phylink\_disconnect\_phy() calls which modify
pl-\>phydev by relying on pl-\>state\_mutex.

The problem is that in phylink\_resolve(), pl-\>state\_mutex is in a lock
inversion state with pl-\>phydev-\>lock. So pl-\>phydev-\>lock needs to be
acquired prior to pl-\>state\_mutex. But that requires dereferencing
pl-\>phydev in the first place, and without pl-\>state\_mutex, that is
racy.

Hence the reason for the extra lock. Currently it is redundant, but it
will serve a functional purpose once mutex\_lock(&phy-\>lock) will be
moved outside of the mutex\_lock(&pl-\>state\_mutex) section.

Another alternative considered would have been to let phylink\_resolve()
acquire the rtnl\_mutex, which is also held when phylink\_bringup\_phy()
and phylink\_disconnect\_phy() are called. But since phylink\_disconnect\_phy()
runs under rtnl\_lock(), it would deadlock with phylink\_resolve() when
calling flush\_work(&pl-\>resolve). Additionally, it would have been
undesirable because it would have unnecessarily blocked many other call
paths as well in the entire kernel, so the smaller-scoped lock was
preferred.

## Affected and fixed versions

- Linux: \>= 5fd0f1a02e750e2db4038dee60edea669ce5aab1, \< 56fe63b05ec84ae6674269d78397cec43a7a295a; \>= 5fd0f1a02e750e2db4038dee60edea669ce5aab1, \< 0ba5b2f2c381dbec9ed9e4ab3ae5d3e667de0dc3 (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- Upgrade Linux to 0ba5b2f2c381dbec9ed9e4ab3ae5d3e667de0dc3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-39905. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39905.md
Affected: Linux >= 5fd0f1a02e750e2db4038dee60edea669ce5aab1, < 56fe63b05ec84ae6674269d78397cec43a7a295a; >= 5fd0f1a02e750e2db4038dee60edea669ce5aab1, < 0ba5b2f2c381dbec9ed9e4ab3ae5d3e667de0dc3; Linux 6.14
Fixed in: Linux 56fe63b05ec84ae6674269d78397cec43a7a295a, Linux 0ba5b2f2c381dbec9ed9e4ab3ae5d3e667de0dc3

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-39905 being exploited?

There is no confirmed exploitation: CVE-2025-39905 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.15% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-39905?

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-39905?

Linux \>= 5fd0f1a02e750e2db4038dee60edea669ce5aab1, \< 56fe63b05ec84ae6674269d78397cec43a7a295a; \>= 5fd0f1a02e750e2db4038dee60edea669ce5aab1, \< 0ba5b2f2c381dbec9ed9e4ab3ae5d3e667de0dc3; Linux 6.14.

### Is there a fix for CVE-2025-39905?

Yes. Fixed in Linux 56fe63b05ec84ae6674269d78397cec43a7a295a, Linux 0ba5b2f2c381dbec9ed9e4ab3ae5d3e667de0dc3. Upgrade Linux to 0ba5b2f2c381dbec9ed9e4ab3ae5d3e667de0dc3 or later.

### How do I check if I'm affected by CVE-2025-39905?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/56fe63b05ec84ae6674269d78397cec43a7a295a>
- patch: <https://git.kernel.org/stable/c/0ba5b2f2c381dbec9ed9e4ab3ae5d3e667de0dc3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-39905>

HTML: <https://flawdb.com/CVE-2025-39905> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-39905>
