CVE Database›Document archive›CVE-2025-38024

CVE-2025-38024

kernel: Linux kernel: RDMA/rxe use-after-free vulnerability leading to potential arbitrary code execution

Loading…

Severity

Moderate

Red Hat Product Security

7.3

CVSS 3.1

Review impact separately from score.

Published · June 18, 2025

Updated · July 30, 2026

Description

A flaw was found in the Linux kernel's Remote Direct Memory Access (RDMA) subsystem, specifically within the rxe component. This use-after-free vulnerability occurs in the rxe_create_cq function. When the rxe_cq_from_init function fails, the subsequent call to rxe_cleanup attempts to free memory resources that have already been released, leading to memory corruption. A local attacker with high privileges could exploit this flaw to cause a denial of service or potentially achieve arbitrary code execution.

Statement

Moderate: A use-after-free leading to a kernel information leak issue was seen in the Linux kernel's RDMA rxe component, which allows a local attacker with special group privilege to cause a denial of service. This flaw affects Red Hat Enterprise Linux 7, 8, and 9.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To mitigate this issue, prevent the rxe kernel module from loading. This can be achieved by creating a blacklist rule.

  1. Create a file /etc/modprobe.d/blacklist-rxe.conf with the following content:
blacklist rxe
install rxe /bin/true
  1. Rebuild the initial ramdisk:
dracut -f -v
  1. Reboot the system for the changes to take effect.

Warning: Blacklisting the rxe module may impact functionality that relies on Soft RoCE.

CVSS / CWE

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

CWE-825 · Expired Pointer Dereference