Menu

Star on GitHub · 3.2k

CVE-2025-21732

4.7 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Fix a race for an ODP MR which leads to CQE with error This patch addresses a race condition for an ODP MR that can…

Published Feb 27, 2025CWE-362EPSS 0.14%

Overview

CVE-2025-21732 is a medium-severity vulnerability. It was published on February 27, 2025 and has a CVSS 3.1 base score of 4.7 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 4.7, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

RDMA/mlx5: Fix a race for an ODP MR which leads to CQE with error

This patch addresses a race condition for an ODP MR that can result in a

CQE with an error on the UMR QP.

During the __mlx5_ib_dereg_mr() flow, the following sequence of calls

occurs:

mlx5_revoke_mr()

mlx5r_umr_revoke_mr()

mlx5r_umr_post_send_wait()

At this point, the lkey is freed from the hardware's perspective.

However, concurrently, mlx5_ib_invalidate_range() might be triggered by

another task attempting to invalidate a range for the same freed lkey.

This task will:

- Acquire the umem_odp->umem_mutex lock.

- Call mlx5r_umr_update_xlt() on the UMR QP.

- Since the lkey has already been freed, this can lead to a CQE error,

causing the UMR QP to enter an error state [1].

To resolve this race condition, the umem_odp->umem_mutex lock is now also

acquired as part of the mlx5_revoke_mr() scope. Upon successful revoke,

we set umem_odp->privat

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-21732?

CVE-2025-21732 is a medium-severity vulnerability. It was published on February 27, 2025 and has a CVSS 3.1 base score of 4.7 (MEDIUM).

How severe is CVE-2025-21732?

This vulnerability has a CVSS 3.1 base score of 4.7, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-21732?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-21732?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-21732 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2025

View all