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

RDMA/core: Validate cpu_id against nr_cpu_ids in DMAH alloc

The cpu_id attribute supplied by user space through
UVERBS_ATTR_ALLOC_DMAH_CPU_ID is passed directly to cpumask_test_cpu()
without first verifying that the value is within the valid CPU range.

Passing such untrusted data to cpumask_test_cpu() may lead to an
out-of-bounds read of the underlying cpumask bitmap: the helper expands
to a test_bit() that indexes the bitmap by cpu_id / BITS_PER_LONG with
no bound check.

In addition, on kernels built with CONFIG_DEBUG_PER_CPU_MAPS it trips
the WARN_ON_ONCE() in cpumask_check(); combined with panic_on_warn this
turns a bad user input into a machine reboot.

Reject any cpu_id that is not smaller than nr_cpu_ids with -EINVAL
before it is used.

Reported by Smatch.
Published: 2026-06-25
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This flaw resides in the Linux kernel’s RDMA subsystem. User space can pass a CPU identifier through UVERBS_ATTR_ALLOC_DMAH_CPU_ID without kernel validation. The value is directly supplied to cpumask_test_cpu(), which can read beyond the end of the CPU mask bitmap. When a kernel built with CONFIG_DEBUG_PER_CPU_MAPS is used, the missing check triggers WARN_ON_ONCE; if panic_on_warn is enabled, the untrusted input can reliably cause a system reboot. The only direct impact is a denial of service via an out‑of‑bounds read, with no known path for information disclosure or privilege escalation, as the code path is confined within the kernel’s RDMA handling.

Affected Systems

All Linux kernel releases containing the RDMA core and uverbs driver before the applied fix are affected. The vulnerability is not limited to a specific version string, so any kernel compiled with RDMA support that omitted the patch is vulnerable. Systems that load the RDMA core module or have it built into the kernel at boot are at risk.

Risk and Exploitability

The CVSS and EPSS scores are not available, and the flaw is not listed in CISA’s KEV catalog. Attack requires a local user or process with the ability to issue RDMA allocation requests, as the flaw is triggered through the UVERBS interface. Because the exploit path involves unvalidated user data, the difficulty of exploitation is moderate to high: the attacker must supply a kernel‑space allocation request with an out‑of‑range CPU ID. No public exploits exist, but the return to a system reboot renders the flaw severe for impacted environments, especially those compiled with panic_on_warn turned on.

Generated by OpenCVE AI on June 25, 2026 at 10:59 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that incorporates the fix for the RDMA core CPU‑ID validation
  • If upgrading is not immediately possible, disable RDMA support or unload the rdma-core module on affected systems
  • Configure the kernel to disable panic_on_warn or disable CONFIG_DEBUG_PER_CPU_MAPS when RDMA drivers are used, to prevent a reboot from the corrupted read

Generated by OpenCVE AI on June 25, 2026 at 10:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 25 Jun 2026 11:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125

Thu, 25 Jun 2026 09:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: RDMA/core: Validate cpu_id against nr_cpu_ids in DMAH alloc The cpu_id attribute supplied by user space through UVERBS_ATTR_ALLOC_DMAH_CPU_ID is passed directly to cpumask_test_cpu() without first verifying that the value is within the valid CPU range. Passing such untrusted data to cpumask_test_cpu() may lead to an out-of-bounds read of the underlying cpumask bitmap: the helper expands to a test_bit() that indexes the bitmap by cpu_id / BITS_PER_LONG with no bound check. In addition, on kernels built with CONFIG_DEBUG_PER_CPU_MAPS it trips the WARN_ON_ONCE() in cpumask_check(); combined with panic_on_warn this turns a bad user input into a machine reboot. Reject any cpu_id that is not smaller than nr_cpu_ids with -EINVAL before it is used. Reported by Smatch.
Title RDMA/core: Validate cpu_id against nr_cpu_ids in DMAH alloc
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-06-25T08:39:00.175Z

Reserved: 2026-06-09T07:44:35.390Z

Link: CVE-2026-53187

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-25T11:00:11Z

Weaknesses