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

RDMA/ucma: Serialize join and leave on copy_to_user failure

rdma_join_multicast() queues RoCE work that later reads the ucma_multicast
through event->param.ud.private_data, then list_add()s the CMA multicast
at the head of id_priv->mc_list. rdma_leave_multicast() matches only by
sockaddr and destroys the first hit.

ucma_process_join() used to drop ctx->mutex after a successful join and
retake it only if copy_to_user() failed. Two concurrent JOIN_MCAST calls
with the same address can therefore insert a second CMA entry before the
first thread's leave. leave then cancels the newer work and the older
worker still dereferences the ucma_multicast that the first thread frees.

Keep ctx->mutex held from rdma_join_multicast() through copy_to_user() and,
on -EFAULT, through rdma_leave_multicast() so leave cannot miss this join.
Do not leave if join itself failed: that path never published this address
on mc_list, and a leave-by-addr would destroy an earlier successful join.
Published: 2026-10-06
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Use-after-free memory corruption potentially leading to kernel crashes or privilege escalation
Action: Immediate Patch
AI Analysis

Impact

The Linux kernel RDMA/ucma subsystem contains a race condition that allows an attacker to trigger a use-after-free on a ucma_multicast object. When two JOIN_MCAST operations target the same address concurrently, a copy_to_user failure can cause the second thread to free the object before the first thread’s leave removes it. The remaining worker thread then dereferences freed memory, leading to kernel memory corruption. This flaw can cause a kernel panic or be exploited to gain elevated privileges if an attacker can supply arbitrary RDMA traffic to the target system.

Affected Systems

All Linux kernel installations that load the RDMA/ucma module and have not applied the latest patch are affected. The vulnerability is present in the generic kernel source, so any kernel version that includes the unpatched RDMA/ucma code is potentially vulnerable; no specific version range is indicated. This applies to distributions that ship the unmodified kernel or that build their kernel from the upstream source with the legacy RDMA module enabled.

Risk and Exploitability

The flaw is a classic use-after-free combined with a race condition, providing a high severity kernel memory corruption. The EPSS score is below 1% and the vulnerability is not listed in the CISA KEV catalog, which suggests that no public exploits are known yet. However, because a local attacker who can issue RDMA commands can trigger the race, the potential for privilege escalation exists. The likely attack vector is local through RDMA traffic; a remote attacker would need to influence RDMA communication to the victim host.

Generated by OpenCVE AI on October 9, 2026 at 16:01 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the RDMA/ucma fix or patch the source to serialize join and leave operations across copy_to_user failures.
  • If an immediate kernel upgrade is not possible, unload or blacklist the RDMA/ucma module (e.g., using modprobe -r rdma_ucma or adding rdma_ucma.blacklist=1) to remove the vulnerability surface while monitoring system stability.
  • Monitor kernel logs for OOPS, BUG, or panic messages that may indicate RDMA/ucma related crashes, and apply future patches promptly.

Generated by OpenCVE AI on October 9, 2026 at 16:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4841-1 linux security update
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6568-1 linux security update
Ubuntu USN Ubuntu USN USN-8961-1 Linux kernel vulnerabilities
History

Fri, 09 Oct 2026 14:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416

Fri, 09 Oct 2026 12:15:00 +0000


Wed, 07 Oct 2026 11:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416

Wed, 07 Oct 2026 09:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 07 Oct 2026 07:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Tue, 06 Oct 2026 14:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Tue, 06 Oct 2026 09:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: RDMA/ucma: Serialize join and leave on copy_to_user failure rdma_join_multicast() queues RoCE work that later reads the ucma_multicast through event->param.ud.private_data, then list_add()s the CMA multicast at the head of id_priv->mc_list. rdma_leave_multicast() matches only by sockaddr and destroys the first hit. ucma_process_join() used to drop ctx->mutex after a successful join and retake it only if copy_to_user() failed. Two concurrent JOIN_MCAST calls with the same address can therefore insert a second CMA entry before the first thread's leave. leave then cancels the newer work and the older worker still dereferences the ucma_multicast that the first thread frees. Keep ctx->mutex held from rdma_join_multicast() through copy_to_user() and, on -EFAULT, through rdma_leave_multicast() so leave cannot miss this join. Do not leave if join itself failed: that path never published this address on mc_list, and a leave-by-addr would destroy an earlier successful join.
Title RDMA/ucma: Serialize join and leave on copy_to_user failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:16:24.567Z

Reserved: 2026-09-25T10:25:14.331Z

Link: CVE-2026-98253

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-06T09:18:13.887

Modified: 2026-10-19T10:18:26.240

Link: CVE-2026-98253

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-06T00:00:00Z

Links: CVE-2026-98253 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-09T16:15:08Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference