# CVE-2025-68790: net/mlx5: Fix double unregister of HCA\_PORTS component

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **Published:** 2026-01-13T15:29:02.907Z
- **Modified:** 2026-06-17T09:59:35.570Z

## Who should check

- Anyone running Linux \>= 5a977b5833b7a261bfa6094595ffa73c1071588c, \< d2495f529d60e8e8c43e6ad524089c38b8be7bc4; \>= 5a977b5833b7a261bfa6094595ffa73c1071588c, \< 6a107cfe9c99a079e578a4c5eb70038101a3599f
- Anyone running Linux 6.18

## Description

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

net/mlx5: Fix double unregister of HCA\_PORTS component

Clear hca\_devcom\_comp in device's private data after unregistering it in
LAG teardown. Otherwise a slightly lagging second pass through
mlx5\_unload\_one() might try to unregister it again and trip over
use-after-free.

On s390 almost all PCI level recovery events trigger two passes through
mxl5\_unload\_one() - one through the poll\_health() method and one through
mlx5\_pci\_err\_detected() as callback from generic PCI error recovery.
While testing PCI error recovery paths with more kernel debug features
enabled, this issue reproducibly led to kernel panics with the following
call chain:

 Unable to handle kernel pointer dereference in virtual kernel address space
 Failing address: 6b6b6b6b6b6b6000 TEID: 6b6b6b6b6b6b6803 ESOP-2 FSI
 Fault in home space mode while using kernel ASCE.
 AS:00000000705c4007 R3:0000000000000024
 Oops: 0038 ilc:3 \[\#1\]SMP

 CPU: 14 UID: 0 PID: 156 Comm: kmcheck Kdump: loaded Not tainted
      6.18.0-20251130.rc7.git0.16131a59cab1.300.fc43.s390x+debug \#1 PREEMPT

 Krnl PSW : 0404e00180000000 0000020fc86aa1dc (\_\_lock\_acquire+0x5c/0x15f0)
            R:0 T:1 IO:0 EX:0 Key:0 M:1 W:0 P:0 AS:3 CC:2 PM:0 RI:0 EA:3
 Krnl GPRS: 0000000000000000 0000020f00000001 6b6b6b6b6b6b6c33 0000000000000000
            0000000000000000 0000000000000000 0000000000000001 0000000000000000
            0000000000000000 0000020fca28b820 0000000000000000 0000010a1ced8100
            0000010a1ced8100 0000020fc9775068 0000018fce14f8b8 0000018fce14f7f8
 Krnl Code: 0000020fc86aa1cc: e3b003400004        lg      %r11,832
            0000020fc86aa1d2: a7840211           brc     8,0000020fc86aa5f4
           \*0000020fc86aa1d6: c09000df0b25       larl    %r9,0000020fca28b820
           \>0000020fc86aa1dc: d50790002000       clc     0(8,%r9),0(%r2)
            0000020fc86aa1e2: a7840209           brc     8,0000020fc86aa5f4
            0000020fc86aa1e6: c0e001100401       larl    %r14,0000020fca8aa9e8
            0000020fc86aa1ec: c01000e25a00       larl    %r1,0000020fca2f55ec
            0000020fc86aa1f2: a7eb00e8           aghi    %r14,232

 Call Trace:
  \_\_lock\_acquire+0x5c/0x15f0
  lock\_acquire.part.0+0xf8/0x270
  lock\_acquire+0xb0/0x1b0
  down\_write+0x5a/0x250
  mlx5\_detach\_device+0x42/0x110 \[mlx5\_core\]
  mlx5\_unload\_one\_devl\_locked+0x50/0xc0 \[mlx5\_core\]
  mlx5\_unload\_one+0x42/0x60 \[mlx5\_core\]
  mlx5\_pci\_err\_detected+0x94/0x150 \[mlx5\_core\]
  zpci\_event\_attempt\_error\_recovery+0xcc/0x388

## Affected and fixed versions

- Linux: \>= 5a977b5833b7a261bfa6094595ffa73c1071588c, \< d2495f529d60e8e8c43e6ad524089c38b8be7bc4; \>= 5a977b5833b7a261bfa6094595ffa73c1071588c, \< 6a107cfe9c99a079e578a4c5eb70038101a3599f (cvelist)
- Linux: 6.18 (cvelist)

## Mitigation

- Upgrade Linux to 6a107cfe9c99a079e578a4c5eb70038101a3599f 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-68790. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68790.md
Affected: Linux >= 5a977b5833b7a261bfa6094595ffa73c1071588c, < d2495f529d60e8e8c43e6ad524089c38b8be7bc4; >= 5a977b5833b7a261bfa6094595ffa73c1071588c, < 6a107cfe9c99a079e578a4c5eb70038101a3599f; Linux 6.18
Fixed in: Linux 6a107cfe9c99a079e578a4c5eb70038101a3599f

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-68790 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 5a977b5833b7a261bfa6094595ffa73c1071588c, \< d2495f529d60e8e8c43e6ad524089c38b8be7bc4; \>= 5a977b5833b7a261bfa6094595ffa73c1071588c, \< 6a107cfe9c99a079e578a4c5eb70038101a3599f; Linux 6.18.

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

Yes. Fixed in Linux 6a107cfe9c99a079e578a4c5eb70038101a3599f. Upgrade Linux to 6a107cfe9c99a079e578a4c5eb70038101a3599f or later.

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

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

- other: <https://git.kernel.org/stable/c/d2495f529d60e8e8c43e6ad524089c38b8be7bc4>
- other: <https://git.kernel.org/stable/c/6a107cfe9c99a079e578a4c5eb70038101a3599f>

## 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-68790>

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