{"id":"CVE-2026-53187","revision":"5c0602258e834052ab0dc7afad2ba04e","records":[{"revision":"5c0602258e834052ab0dc7afad2ba04e","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-53187","aliases":[],"title":"RDMA/core: Validate cpu_id against nr_cpu_ids in DMAH alloc","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/core: Validate cpu_id against nr_cpu_ids in DMAH alloc\n\nThe cpu_id attribute supplied by user space through\nUVERBS_ATTR_ALLOC_DMAH_CPU_ID is passed directly to cpumask_test_cpu()\nwithout first verifying that the value is within the valid CPU range.\n\nPassing such untrusted data to cpumask_test_cpu() may lead to an\nout-of-bounds read of the underlying cpumask bitmap: the helper expands\nto a test_bit() that indexes the bitmap by cpu_id / BITS_PER_LONG with\nno bound check.\n\nIn addition, on kernels built with CONFIG_DEBUG_PER_CPU_MAPS it trips\nthe WARN_ON_ONCE() in cpumask_check(); combined with panic_on_warn this\nturns a bad user input into a machine reboot.\n\nReject any cpu_id that is not smaller than nr_cpu_ids with -EINVAL\nbefore it is used.\n\nReported by Smatch.","state":0,"publishedAt":"2026-06-25T08:39:00.175+00:00","modifiedAt":"2026-10-19T19:57:27.163+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/infiniband/core/uverbs_std_types_dmah.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"d83edab562a496a42720902a1d2effccd05c37c5\",\n                            \"lessThan\": \"bd5e818be7964c1689fba2dad9e6bd3a827fee74\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d83edab562a496a42720902a1d2effccd05c37c5\",\n                            \"lessThan\": \"0efbb6b54ff56300867027d8e0800d0e32226a20\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d83edab562a496a42720902a1d2effccd05c37c5\",\n                            \"lessThan\": \"323c98a4ff06aa28114f2bf658fb43eb3b536bbc\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/infiniband/core/uverbs_std_types_dmah.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.17\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.17\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.36\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.0.13\",\n                            \"lessThanOrEqual\": \"7.0.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.1\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/bd5e818be7964c1689fba2dad9e6bd3a827fee74","https://git.kernel.org/stable/c/0efbb6b54ff56300867027d8e0800d0e32226a20","https://git.kernel.org/stable/c/323c98a4ff06aa28114f2bf658fb43eb3b536bbc"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-53187","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-53187","identifiers":["CVE-2026-53187"]},"retained":false,"historicalAffected":[]}],"coverage":[]}