CVE-2025-38373
BaseFortify
Publication date: 2025-07-25
Last updated on: 2025-11-19
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | 6.16 |
| linux | linux_kernel | 6.16 |
| linux | linux_kernel | 6.16 |
| linux | linux_kernel | 6.16 |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-667 | The product does not properly acquire or release a lock on a resource, leading to unexpected resource state changes and behaviors. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a potential deadlock in the Linux kernel's IB/mlx5 driver related to memory region (MR) deregistration. It occurs because the function kzalloc() is called while holding the umem_mutex lock or another lock acquired under umem_mutex. kzalloc() can trigger a memory reclaim path that tries to acquire umem_mutex again, causing a deadlock. The deadlock happens due to improper lock ordering and holding locks during memory allocation that can trigger reclaim operations. The fix involves releasing umem_mutex before performing memory allocations that could trigger the reclaim path, preventing the deadlock.
How can this vulnerability impact me? :
This vulnerability can cause a deadlock in the Linux kernel when deregistering memory regions in the mlx5 driver. A deadlock can halt or severely delay kernel operations related to memory management and device communication, potentially leading to system hangs or degraded performance. This can impact system stability and availability, especially in environments relying on InfiniBand or mlx5 devices.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, update the Linux kernel to a version where the fix for the deadlock in MR deregistration in the mlx5_ib driver has been applied. The fix involves releasing the umem_mutex lock before performing memory allocations that could trigger the reclaim path, preventing the deadlock. Until the update is applied, avoid workloads or operations that trigger mlx5_ib_dereg_mr() concurrently with memory allocations that may cause reclaim paths.