# CVE-2026-45907: net/mlx5e: Fix deadlocks between devlink and netdev instance locks

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.12% (percentile 1, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2026-05-27T12:17:20.424Z
- **Modified:** 2026-06-24T16:27:56.443Z

## Who should check

- Anyone running Linux \>= 8f7b00307bf14676b7e7f0210110a36aa0ff3e93, \< 4329514c61abefe4961541b128c549b017bab5ad; \>= 8f7b00307bf14676b7e7f0210110a36aa0ff3e93, \< 63f9d5fb4d8040077df801ca3270e2f02d55e0d9; \>= 8f7b00307bf14676b7e7f0210110a36aa0ff3e93, \< 83ac0304a2d77519dae1e54c9713cbe1aedf19c9
- Anyone running Linux 6.16

## Description

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

net/mlx5e: Fix deadlocks between devlink and netdev instance locks

In the mentioned "Fixes" commit, various work tasks triggering devlink
health reporter recovery were switched to use netdev\_trylock to protect
against concurrent tear down of the channels being recovered. But this
had the side effect of introducing potential deadlocks because of
incorrect lock ordering.

The correct lock order is described by the init flow:
probe\_one -\> mlx5\_init\_one (acquires devlink lock)
-\> mlx5\_init\_one\_devl\_locked -\> mlx5\_register\_device
-\> mlx5\_rescan\_drivers\_locked -...-\> mlx5e\_probe -\> \_mlx5e\_probe
-\> register\_netdev (acquires rtnl lock)
-\> register\_netdevice (acquires netdev lock)
=\> devlink lock -\> rtnl lock -\> netdev lock.

But in the current recovery flow, the order is wrong:
mlx5e\_tx\_err\_cqe\_work (acquires netdev lock)
-\> mlx5e\_reporter\_tx\_err\_cqe -\> mlx5e\_health\_report
-\> devlink\_health\_report (acquires devlink lock =\> boom!)
-\> devlink\_health\_reporter\_recover
-\> mlx5e\_tx\_reporter\_recover -\> mlx5e\_tx\_reporter\_recover\_from\_ctx
-\> mlx5e\_tx\_reporter\_err\_cqe\_recover

The same pattern exists in:
mlx5e\_reporter\_rx\_timeout
mlx5e\_reporter\_tx\_ptpsq\_unhealthy
mlx5e\_reporter\_tx\_timeout

Fix these by moving the netdev\_trylock calls from the work handlers
lower in the call stack, in the respective recovery functions, where
they are actually necessary.

## Affected and fixed versions

- Linux: \>= 8f7b00307bf14676b7e7f0210110a36aa0ff3e93, \< 4329514c61abefe4961541b128c549b017bab5ad; \>= 8f7b00307bf14676b7e7f0210110a36aa0ff3e93, \< 63f9d5fb4d8040077df801ca3270e2f02d55e0d9; \>= 8f7b00307bf14676b7e7f0210110a36aa0ff3e93, \< 83ac0304a2d77519dae1e54c9713cbe1aedf19c9 (cvelist)
- Linux: 6.16 (cvelist)

## Mitigation

- Upgrade Linux to 83ac0304a2d77519dae1e54c9713cbe1aedf19c9 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-45907.md
Affected: Linux >= 8f7b00307bf14676b7e7f0210110a36aa0ff3e93, < 4329514c61abefe4961541b128c549b017bab5ad; >= 8f7b00307bf14676b7e7f0210110a36aa0ff3e93, < 63f9d5fb4d8040077df801ca3270e2f02d55e0d9; >= 8f7b00307bf14676b7e7f0210110a36aa0ff3e93, < 83ac0304a2d77519dae1e54c9713cbe1aedf19c9; Linux 6.16
Fixed in: Linux 4329514c61abefe4961541b128c549b017bab5ad, Linux 63f9d5fb4d8040077df801ca3270e2f02d55e0d9, Linux 83ac0304a2d77519dae1e54c9713cbe1aedf19c9

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-2026-45907 being exploited?

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

### How serious is CVE-2026-45907?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-45907?

Linux \>= 8f7b00307bf14676b7e7f0210110a36aa0ff3e93, \< 4329514c61abefe4961541b128c549b017bab5ad; \>= 8f7b00307bf14676b7e7f0210110a36aa0ff3e93, \< 63f9d5fb4d8040077df801ca3270e2f02d55e0d9; \>= 8f7b00307bf14676b7e7f0210110a36aa0ff3e93, \< 83ac0304a2d77519dae1e54c9713cbe1aedf19c9; Linux 6.16.

### Is there a fix for CVE-2026-45907?

Yes. Fixed in Linux 4329514c61abefe4961541b128c549b017bab5ad, Linux 63f9d5fb4d8040077df801ca3270e2f02d55e0d9, Linux 83ac0304a2d77519dae1e54c9713cbe1aedf19c9. Upgrade Linux to 83ac0304a2d77519dae1e54c9713cbe1aedf19c9 or later.

### How do I check if I'm affected by CVE-2026-45907?

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/4329514c61abefe4961541b128c549b017bab5ad>
- patch: <https://git.kernel.org/stable/c/63f9d5fb4d8040077df801ca3270e2f02d55e0d9>
- patch: <https://git.kernel.org/stable/c/83ac0304a2d77519dae1e54c9713cbe1aedf19c9>

## 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-2026-45907>

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