# CVE-2025-68310: s390/pci: Avoid deadlock between PCI error recovery and mlx5 crdump

> 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.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-16T15:39:41.652Z
- **Modified:** 2026-06-17T09:58:54.797Z

## Who should check

- Anyone running Linux \>= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, \< d0df2503bc3c2be385ca2fd96585daad1870c7c5; \>= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, \< b63c061be622b17b495cbf78a6d5f2d4c3147f8e; \>= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, \< 3591d56ea9bfd3e7fbbe70f749bdeed689d415f9; \>= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, \< 54f938d9f5693af8ed586a08db4af5d9da1f0f2d; \>= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, \< 0fd20f65df6aa430454a0deed8f43efa91c54835
- Anyone running Linux 5.16

## Description

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

s390/pci: Avoid deadlock between PCI error recovery and mlx5 crdump

Do not block PCI config accesses through pci\_cfg\_access\_lock() when
executing the s390 variant of PCI error recovery: Acquire just
device\_lock() instead of pci\_dev\_lock() as powerpc's EEH and
generig PCI AER processing do.

During error recovery testing a pair of tasks was reported to be hung:

mlx5\_core 0000:00:00.1: mlx5\_health\_try\_recover:338:(pid 5553): health recovery flow aborted, PCI reads still not working
INFO: task kmcheck:72 blocked for more than 122 seconds.
      Not tainted 5.14.0-570.12.1.bringup7.el9.s390x \#1
"echo 0 \> /proc/sys/kernel/hung\_task\_timeout\_secs" disables this message.
task:kmcheck         state:D stack:0     pid:72    tgid:72    ppid:2      flags:0x00000000
Call Trace:
 \[\<000000065256f030\>\] \_\_schedule+0x2a0/0x590
 \[\<000000065256f356\>\] schedule+0x36/0xe0
 \[\<000000065256f572\>\] schedule\_preempt\_disabled+0x22/0x30
 \[\<0000000652570a94\>\] \_\_mutex\_lock.constprop.0+0x484/0x8a8
 \[\<000003ff800673a4\>\] mlx5\_unload\_one+0x34/0x58 \[mlx5\_core\]
 \[\<000003ff8006745c\>\] mlx5\_pci\_err\_detected+0x94/0x140 \[mlx5\_core\]
 \[\<0000000652556c5a\>\] zpci\_event\_attempt\_error\_recovery+0xf2/0x398
 \[\<0000000651b9184a\>\] \_\_zpci\_event\_error+0x23a/0x2c0
INFO: task kworker/u1664:6:1514 blocked for more than 122 seconds.
      Not tainted 5.14.0-570.12.1.bringup7.el9.s390x \#1
"echo 0 \> /proc/sys/kernel/hung\_task\_timeout\_secs" disables this message.
task:kworker/u1664:6 state:D stack:0     pid:1514  tgid:1514  ppid:2      flags:0x00000000
Workqueue: mlx5\_health0000:00:00.0 mlx5\_fw\_fatal\_reporter\_err\_work \[mlx5\_core\]
Call Trace:
 \[\<000000065256f030\>\] \_\_schedule+0x2a0/0x590
 \[\<000000065256f356\>\] schedule+0x36/0xe0
 \[\<0000000652172e28\>\] pci\_wait\_cfg+0x80/0xe8
 \[\<0000000652172f94\>\] pci\_cfg\_access\_lock+0x74/0x88
 \[\<000003ff800916b6\>\] mlx5\_vsc\_gw\_lock+0x36/0x178 \[mlx5\_core\]
 \[\<000003ff80098824\>\] mlx5\_crdump\_collect+0x34/0x1c8 \[mlx5\_core\]
 \[\<000003ff80074b62\>\] mlx5\_fw\_fatal\_reporter\_dump+0x6a/0xe8 \[mlx5\_core\]
 \[\<0000000652512242\>\] devlink\_health\_do\_dump.part.0+0x82/0x168
 \[\<0000000652513212\>\] devlink\_health\_report+0x19a/0x230
 \[\<000003ff80075a12\>\] mlx5\_fw\_fatal\_reporter\_err\_work+0xba/0x1b0 \[mlx5\_core\]

No kernel log of the exact same error with an upstream kernel is
available - but the very same deadlock situation can be constructed there,
too:

- task: kmcheck
  mlx5\_unload\_one() tries to acquire devlink lock while the PCI error
  recovery code has set pdev-\>block\_cfg\_access by way of
  pci\_cfg\_access\_lock()
- task: kworker
  mlx5\_crdump\_collect() tries to set block\_cfg\_access through
  pci\_cfg\_access\_lock() while devlink\_health\_report() had acquired
  the devlink lock.

A similar deadlock situation can be reproduced by requesting a
crdump with
  \> devlink health dump show pci/\<BDF\> reporter fw\_fatal

while PCI error recovery is executed on the same \<BDF\> physical function
by mlx5\_core's pci\_error\_handlers. On s390 this can be injected with
  \> zpcictl --reset-fw \<BDF\>

Tests with this patch failed to reproduce that second deadlock situation,
the devlink command is rejected with "kernel answers: Permission denied" -
and we get a kernel log message of:

mlx5\_core 1ed0:00:00.1: mlx5\_crdump\_collect:50:(pid 254382): crdump: failed to lock vsc gw err -5

because the config read of VSC\_SEMAPHORE is rejected by the underlying
hardware.

Two prior attempts to address this issue have been discussed and
ultimately rejected \[see link\], with the primary argument that s390's
implementation of PCI error recovery is imposing restrictions that
neither powerpc's EEH nor PCI AER handling need. Tests show that PCI
error recovery on s390 is running to completion even without blocking
access to PCI config space.

## Affected and fixed versions

- Linux: \>= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, \< d0df2503bc3c2be385ca2fd96585daad1870c7c5; \>= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, \< b63c061be622b17b495cbf78a6d5f2d4c3147f8e; \>= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, \< 3591d56ea9bfd3e7fbbe70f749bdeed689d415f9; \>= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, \< 54f938d9f5693af8ed586a08db4af5d9da1f0f2d; \>= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, \< 0fd20f65df6aa430454a0deed8f43efa91c54835 (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-68310.md
Affected: Linux >= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, < d0df2503bc3c2be385ca2fd96585daad1870c7c5; >= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, < b63c061be622b17b495cbf78a6d5f2d4c3147f8e; >= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, < 3591d56ea9bfd3e7fbbe70f749bdeed689d415f9; >= 4cdf2f4e24ff0d345fc36ef…
Fixed in: Linux 3591d56ea9bfd3e7fbbe70f749bdeed689d415f9, Linux 54f938d9f5693af8ed586a08db4af5d9da1f0f2d, Linux 0fd20f65df6aa430454a0deed8f43efa91c54835

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, \< d0df2503bc3c2be385ca2fd96585daad1870c7c5; \>= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, \< b63c061be622b17b495cbf78a6d5f2d4c3147f8e; \>= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, \< 3591d56ea9bfd3e7fbbe70f749bdeed689d415f9; \>= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, \< 54f938d9f5693af8ed586a08db4af5d9da1f0f2d; \>= 4cdf2f4e24ff0d345fc36ef6d6aec059333a261e, \< 0fd20f65df6aa430454a0deed8f43efa91c54835; Linux 5.16.

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

Yes. Fixed in Linux 3591d56ea9bfd3e7fbbe70f749bdeed689d415f9, Linux 54f938d9f5693af8ed586a08db4af5d9da1f0f2d, Linux 0fd20f65df6aa430454a0deed8f43efa91c54835. Upgrade Linux to 0fd20f65df6aa430454a0deed8f43efa91c54835 or later.

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

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/d0df2503bc3c2be385ca2fd96585daad1870c7c5>
- other: <https://git.kernel.org/stable/c/b63c061be622b17b495cbf78a6d5f2d4c3147f8e>
- other: <https://git.kernel.org/stable/c/3591d56ea9bfd3e7fbbe70f749bdeed689d415f9>
- other: <https://git.kernel.org/stable/c/54f938d9f5693af8ed586a08db4af5d9da1f0f2d>
- other: <https://git.kernel.org/stable/c/0fd20f65df6aa430454a0deed8f43efa91c54835>

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

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