# CVE-2026-53187: RDMA/core: Validate cpu\_id against nr\_cpu\_ids in DMAH alloc

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-25 · Modified: 2026-10-19
- Aliases: UBUNTU-CVE-2026-53187, DEBIAN-CVE-2026-53187, CGA-38j5-wj8c-v883, CGA-444q-jf4p-97h5, CGA-698x-q8r4-fvpg, CGA-7x8h-xxqm-7h5q, CGA-894x-2574-982j, CGA-c338-v42v-8qvx, CGA-hgc9-6xgx-5qjx, CGA-x8vp-q7mf-rppq
- Record: https://cvemate.com/vulnerability/CVE-2026-53187 · JSON: https://cvemate.com/vulnerability/CVE-2026-53187/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- EPSS: 0.124%, percentile 2.304%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 131)

- chainguard linux-aws-6.18 (Chainguard): \< 6.18.38-r0
- chainguard linux-azure-6.18 (Chainguard): \< 6.18.38-r0
- chainguard linux-gcp-6.18 (Chainguard): \< 6.18.38-r0
- chainguard linux-gcp-6.18-bootc-boot-installed (Chainguard): \< 6.18.38-r0
- chainguard linux-qemu-6.18 (Chainguard): \< 6.18.38-r0
- chainguard linux-qemu-6.18-bootc-boot-installed (Chainguard): \< 6.18.38-r0
- chainguard linux-qemu-melange (Chainguard): \< 6.18.38-r0
- chainguard linux-vmware-6.18 (Chainguard): \< 6.18.38-r0
- debian linux (Debian): \< 7.0.13-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 7.0.0-31.31
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 7.0.0-1012.12
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 21)

- <https://git.kernel.org/stable/c/bd5e818be7964c1689fba2dad9e6bd3a827fee74>
- <https://git.kernel.org/stable/c/0efbb6b54ff56300867027d8e0800d0e32226a20>
- <https://git.kernel.org/stable/c/323c98a4ff06aa28114f2bf658fb43eb3b536bbc>
- <https://ubuntu.com/security/CVE-2026-53187>
- <https://www.cve.org/CVERecord?id=CVE-2026-53187>
- <https://git.kernel.org/linus/323c98a4ff06aa28114f2bf658fb43eb3b536bbc>
- <https://ubuntu.com/security/notices/USN-8726-1>
- <https://ubuntu.com/security/notices/USN-8727-1>
- <https://ubuntu.com/security/notices/USN-8728-1>
- <https://ubuntu.com/security/notices/USN-8760-1>
- <https://ubuntu.com/security/notices/USN-8726-2>
- <https://ubuntu.com/security/notices/USN-8726-3>
- <https://ubuntu.com/security/notices/USN-8800-1>
- <https://ubuntu.com/security/notices/USN-8760-2>
- <https://ubuntu.com/security/notices/USN-8728-2>
- <https://ubuntu.com/security/notices/USN-8726-4>
- <https://ubuntu.com/security/notices/USN-8728-3>
- <https://security-tracker.debian.org/tracker/CVE-2026-53187>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53187.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-53187>

---

Data as of 2026-12-05T04:44:00.350Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
