CVE-2026-53187: RDMA/core: Validate cpu_id against nr_cpu_ids in DMAH alloc

Published Jun 25, 2026
·
Updated

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

RDMA/core: Validate cpuid against nrcpuids in DMAH alloc

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

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

In addition, on kernels built with CONFIGDEBUGPERCPUMAPS it trips the WARNONONCE() in cpumaskcheck(); combined with paniconwarn this turns a bad user input into a machine reboot.

Reject any cpuid that is not smaller than nrcpuids with -EINVAL before it is used.

Reported by Smatch.

Affected Software

10 affected components
Linux Linux kernel
Linux Linux kernel>=6.17<6.18.36
Linux Linux kernel>=6.19<7.0.13
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3
Linux Linux kernel=7.1-rc4
Linux Linux kernel=7.1-rc5
Linux Linux kernel=7.1-rc6
Linux Linux kernel=7.1-rc7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In RDMA/core, validate the user-supplied UVERBS_ATTR_ALLOC_DMAH_CPU_ID before calling cpumask_test_cpu(); reject any cpu_id that is not smaller than nr_cpu_ids and return -EINVAL.

    Linux kernel (RDMA/core) Validate cpu_id against nr_cpu_ids = Reject cpu_id >= nr_cpu_ids with -EINVAL

Event History

Jun 25, 2026
CVE Published
via MITRE·08:39 AM
Data Sourced
via MITRE·08:39 AM
DescriptionSeverity
Data Sourced
via NVD·09:16 AM
RemedyDescriptionSeverityWeaknessAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203