Skip to main content
Network Thinking Solutions Logo

CVE-2025-21951

In the Linux kernel, the following vulnerability has been resolved: bus: mhi: host: pci_generic: Use pci_try_reset_function() to avoid deadlock There are multiple places from where the recovery work gets scheduled asynchronously.

All CVEs
CVE-2025-21951Published 4/1/2025

In the Linux kernel, the following vulnerability has been resolved: bus: mhi: host: pci_generic: Use pci_try_reset_function() to avoid deadlock There are multiple places from where the recovery work gets scheduled asynchronously.

Vendor advisory
CVSS5.5Medium

Overview

In the Linux kernel, the following vulnerability has been resolved: bus: mhi: host: pci_generic: Use pci_try_reset_function() to avoid deadlock There are multiple places from where the recovery work gets scheduled asynchronously. Also, there are multiple places where the caller waits synchronously for the recovery to be completed. One such place is during the PM shutdown() callback. If the device is not alive during recovery_work, it will try to reset the device using pci_reset_function(). This function internally will take the device_lock() first before resetting the device. By this time, if the lock has already been acquired, then recovery_work will get stalled while waiting for the lock. And if the lock was already acquired by the caller which waits for the recovery_work to be completed, it will lead to deadlock. This is what happened on the X1E80100 CRD device when the device died before shutdown() callback. Driver core calls the driver's shutdown() callback while holding the device_lock() leading to deadlock. And this deadlock scenario can occur on other paths as well, like during the PM suspend() callback, where the driver core would hold the device_lock() before calling driver's suspend() callback. And if the recovery_work was already started, it could lead to deadlock. This is also observed on the X1E80100 CRD. So to fix both issues, use pci_try_reset_function() in recovery_work. This function first checks for the availability of the device_lock() before trying to reset the device. If the lock is available, it will acquire it and reset the device. Otherwise, it will return -EAGAIN. If that happens, recovery_work will fail with the error message "Recovery failed" as not much could be done.

Published
4/1/2025
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.12, < 5.15.179

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 6.1.131

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.83

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.12.19

Verify advisory

Source
linux kernel
linux
≥ 6.13, < 6.13.7

Verify advisory

Source
linux kernel
linux
6.14

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ 7389337f0a78ea099c47f0af08f64f20c52ab4ba, < 7746f3bb8917fccb4571a576f3837d80fc513054

Verify advisory

Source
Linux
Linux
≥ 7389337f0a78ea099c47f0af08f64f20c52ab4ba, < 7a5ffadd54fe2662f5c99cdccf30144d060376f7

Verify advisory

Source
Linux
Linux
≥ 7389337f0a78ea099c47f0af08f64f20c52ab4ba, < 1f9eb7078bc6b5fb5cbfbcb37c4bc01685332b95

Verify advisory

Source
Linux
Linux
≥ 7389337f0a78ea099c47f0af08f64f20c52ab4ba, < 985d3cf56d8745ca637deee273929e01df449f85

Verify advisory

Source
Linux
Linux
≥ 7389337f0a78ea099c47f0af08f64f20c52ab4ba, < 62505657475c245c9cd46e42ac01026d1e61f027

Verify advisory

Source
Linux
Linux
≥ 7389337f0a78ea099c47f0af08f64f20c52ab4ba, < a321d163de3d8aa38a6449ab2becf4b1581aed96

Verify advisory

Source
Linux
Linux
5.12

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.