CVE-2025-38373 Vulnerability Analysis & Exploit Details

CVE-2025-38373
Vulnerability Scoring

5.5
/10
Significant Risk

Security assessments indicate that CVE-2025-38373 presents a notable risk, potentially requiring prompt mitigation.

Attack Complexity Details

  • Attack Complexity: Low
    Exploits can be performed without significant complexity or special conditions.
  • Attack Vector: Local
    Vulnerability requires local system access.
  • Privileges Required: Low
    Some privileges are necessary to exploit the vulnerability.
  • Scope: Unchanged
    Exploit remains within the originally vulnerable component.
  • User Interaction: None
    No user interaction is necessary for exploitation.

CVE-2025-38373 Details

Status: Analyzed

Last updated: 🕢 19 Nov 2025, 19:34 UTC
Originally published on: 🕐 25 Jul 2025, 13:15 UTC

Time between publication and last update: 117 days

CVSS Release: version 3

CVSS3 Source

nvd@nist.gov

CVSS3 Type

Primary

CVSS3 Vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVE-2025-38373 Vulnerability Summary

CVE-2025-38373: In the Linux kernel, the following vulnerability has been resolved: IB/mlx5: Fix potential deadlock in MR deregistration The issue arises when kzalloc() is invoked while holding umem_mutex or any other lock acquired under umem_mutex. This is problematic because kzalloc() can trigger fs_reclaim_aqcuire(), which may, in turn, invoke mmu_notifier_invalidate_range_start(). This function can lead to mlx5_ib_invalidate_range(), which attempts to acquire umem_mutex again, resulting in a deadlock. The problematic flow: CPU0 | CPU1 ---------------------------------------|------------------------------------------------ mlx5_ib_dereg_mr() | → revoke_mr() | → mutex_lock(&umem_odp->umem_mutex) | | mlx5_mkey_cache_init() | → mutex_lock(&dev->cache.rb_lock) | → mlx5r_cache_create_ent_locked() | → kzalloc(GFP_KERNEL) | → fs_reclaim() | → mmu_notifier_invalidate_range_start() | → mlx5_ib_invalidate_range() | → mutex_lock(&umem_odp->umem_mutex) → cache_ent_find_and_store() | → mutex_lock(&dev->cache.rb_lock) | Additionally, when kzalloc() is called from within cache_ent_find_and_store(), we encounter the same deadlock due to re-acquisition of umem_mutex. Solve by releasing umem_mutex in dereg_mr() after umr_revoke_mr() and before acquiring rb_lock. This ensures that we don't hold umem_mutex while performing memory allocations that could trigger the reclaim path. This change prevents the deadlock by ensuring proper lock ordering and avoiding holding locks during memory allocation operations that could trigger the reclaim path. The following lockdep warning demonstrates the deadlock: python3/20557 is trying to acquire lock: ffff888387542128 (&umem_odp->umem_mutex){+.+.}-{4:4}, at: mlx5_ib_invalidate_range+0x5b/0x550 [mlx5_ib] but task is already holding lock: ffffffff82f6b840 (mmu_notifier_invalidate_range_start){+.+.}-{0:0}, at: unmap_vmas+0x7b/0x1a0 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #3 (mmu_notifier_invalidate_range_start){+.+.}-{0:0}: fs_reclaim_acquire+0x60/0xd0 mem_cgroup_css_alloc+0x6f/0x9b0 cgroup_init_subsys+0xa4/0x240 cgroup_init+0x1c8/0x510 start_kernel+0x747/0x760 x86_64_start_reservations+0x25/0x30 x86_64_start_kernel+0x73/0x80 common_startup_64+0x129/0x138 -> #2 (fs_reclaim){+.+.}-{0:0}: fs_reclaim_acquire+0x91/0xd0 __kmalloc_cache_noprof+0x4d/0x4c0 mlx5r_cache_create_ent_locked+0x75/0x620 [mlx5_ib] mlx5_mkey_cache_init+0x186/0x360 [mlx5_ib] mlx5_ib_stage_post_ib_reg_umr_init+0x3c/0x60 [mlx5_ib] __mlx5_ib_add+0x4b/0x190 [mlx5_ib] mlx5r_probe+0xd9/0x320 [mlx5_ib] auxiliary_bus_probe+0x42/0x70 really_probe+0xdb/0x360 __driver_probe_device+0x8f/0x130 driver_probe_device+0x1f/0xb0 __driver_attach+0xd4/0x1f0 bus_for_each_dev+0x79/0xd0 bus_add_driver+0xf0/0x200 driver_register+0x6e/0xc0 __auxiliary_driver_register+0x6a/0xc0 do_one_initcall+0x5e/0x390 do_init_module+0x88/0x240 init_module_from_file+0x85/0xc0 idempotent_init_module+0x104/0x300 __x64_sys_finit_module+0x68/0xc0 do_syscall_64+0x6d/0x140 entry_SYSCALL_64_after_hwframe+0x4b/0x53 -> #1 (&dev->cache.rb_lock){+.+.}-{4:4}: __mutex_lock+0x98/0xf10 __mlx5_ib_dereg_mr+0x6f2/0x890 [mlx5_ib] mlx5_ib_dereg_mr+0x21/0x110 [mlx5_ib] ib_dereg_mr_user+0x85/0x1f0 [ib_core] ---truncated---

Assessing the Risk of CVE-2025-38373

Access Complexity Graph

The exploitability of CVE-2025-38373 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2025-38373

CVE-2025-38373 presents an accessible attack vector with minimal effort required. Restricting access controls and implementing security updates are critical to reducing exploitation risks.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2025-38373, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2025-38373, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: None
    CVE-2025-38373 has no significant impact on data confidentiality.
  • Integrity: None
    CVE-2025-38373 poses no threat to data integrity.
  • Availability: High
    CVE-2025-38373 can disrupt system operations, potentially causing complete denial of service (DoS).

CVE-2025-38373 References

External References

CWE Common Weakness Enumeration

CWE-667

CAPEC Common Attack Pattern Enumeration and Classification

  • Forced Deadlock CAPEC-25 The adversary triggers and exploits a deadlock condition in the target software to cause a denial of service. A deadlock can occur when two or more competing actions are waiting for each other to finish, and thus neither ever does. Deadlock conditions can be difficult to detect.
  • Leveraging Race Conditions CAPEC-26 The adversary targets a race condition occurring when multiple processes access and manipulate the same resource concurrently, and the outcome of the execution depends on the particular order in which the access takes place. The adversary can leverage a race condition by "running the race", modifying the resource and modifying the normal execution flow. For instance, a race condition can occur while accessing a file: the adversary can trick the system by replacing the original file with their version and cause the system to read the malicious file.
  • Leveraging Race Conditions via Symbolic Links CAPEC-27 This attack leverages the use of symbolic links (Symlinks) in order to write to sensitive files. An attacker can create a Symlink link to a target file not otherwise accessible to them. When the privileged program tries to create a temporary file with the same name as the Symlink link, it will actually write to the target file pointed to by the attackers' Symlink link. If the attacker can insert malicious content in the temporary file they will be writing to the sensitive file by using the Symlink. The race occurs because the system checks if the temporary file exists, then creates the file. The attacker would typically create the Symlink during the interval between the check and the creation of the temporary file.

Vulnerable Configurations

  • cpe:2.3:o:linux:linux_kernel:6.12.14:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.14:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.15:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.15:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.16:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.16:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.17:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.17:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.18:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.18:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.19:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.19:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.20:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.20:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.21:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.21:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.22:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.22:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.23:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.23:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.24:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.24:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.25:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.25:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.26:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.26:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.27:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.27:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.28:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.28:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.29:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.29:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.30:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.30:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.31:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.31:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.32:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.32:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.33:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.33:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.34:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.34:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.35:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.35:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.12.36:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.12.36:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13.11:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13.11:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13.12:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13.12:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.13:rc7:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.13:rc7:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14.11:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14.11:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14:rc5:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:rc5:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14:rc6:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:rc6:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.14:rc7:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.14:rc7:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.15:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.15:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.15.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.15.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.15.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.15.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.15.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.15.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.15.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.15.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.15.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.15.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2025-38373: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2025-13735 – Out-of-bounds Read vulnerability in ASR1903、ASR3901 in ASR Lapwing_Linux on Linux (nr_fw modules). This vulnerability is associated with program fi...
  • CVE-2025-9558 – There is a potential OOB Write vulnerability in the gen_prov_start function in pb_adv.c. The full length of the received data is copied into the li...
  • CVE-2025-9557 – ‭An out-of-bound write can lead to an arbitrary code execution. Even on devices with some form of memory protection, this can still lead to‬ ‭a cra...
  • CVE-2025-59820 – In KDE Krita before 5.2.13, loading a manipulated TGA file could result in a heap-based buffer overflow in plugins/impex/tga/kis_tga_import.cpp (ak...
  • CVE-2025-55174 – In KDE Skanpage before 25.08.0, an attempt at file overwrite can result in the contents of the new file at the beginning followed by the partial co...