CVE-2026-53187 (GCVE-0-2026-53187)
Vulnerability from cvelistv5
Published
2026-06-25 08:39
Modified
2026-10-19 19:57
Summary
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.
Impacted products
Vendor Product Version
Linux Linux Version: d83edab562a496a42720902a1d2effccd05c37c5
Version: d83edab562a496a42720902a1d2effccd05c37c5
Version: d83edab562a496a42720902a1d2effccd05c37c5
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-53187",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-10-16T15:26:25.299167Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-125",
                "description": "CWE-125 Out-of-bounds Read",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-10-19T19:57:27.163Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/infiniband/core/uverbs_std_types_dmah.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "bd5e818be7964c1689fba2dad9e6bd3a827fee74",
              "status": "affected",
              "version": "d83edab562a496a42720902a1d2effccd05c37c5",
              "versionType": "git"
            },
            {
              "lessThan": "0efbb6b54ff56300867027d8e0800d0e32226a20",
              "status": "affected",
              "version": "d83edab562a496a42720902a1d2effccd05c37c5",
              "versionType": "git"
            },
            {
              "lessThan": "323c98a4ff06aa28114f2bf658fb43eb3b536bbc",
              "status": "affected",
              "version": "d83edab562a496a42720902a1d2effccd05c37c5",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/infiniband/core/uverbs_std_types_dmah.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.17"
            },
            {
              "lessThan": "6.17",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.36",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.13",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.36",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.13",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.1,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The vulnerable path is reached by a local RDMA uverbs ioctl on /dev/infiniband/uverbsN, specifically RDMA_VERBS_IOCTL selecting UVERBS_METHOD_DMAH_ALLOC. It is not exposed by incoming network packets or remote RDMA traffic.\nAC:L - An attacker can supply an out-of-range UVERBS_ATTR_ALLOC_DMAH_CPU_ID directly in one ioctl, with no race or victim-controlled timing requirement. The only deployment prerequisite is an affected RDMA device exposing the DMAH uverbs method.\nPR:L - The uverbs ioctl path has no CAP_* check for DMAH allocation, and RDMA uverbs devices are designed to be usable by non-root users when the device node is accessible. This requires local low-privileged access rather than real administrator privileges.\nUI:N - No victim action is needed after the attacker has local access to the uverbs device. The attacker triggers the bug directly through the ioctl.\nS:U - The bug affects kernel RDMA/core processing within the same host kernel security authority. It does not cross a VM, IOMMU, or separate authorization boundary.\nC:H - The unchecked cpu_id is passed to cpumask_test_cpu(), which expands to test_bit() on current-\u003ecpus_ptr without a bounds check, creating an out-of-bounds kernel memory read. The result influences the returned error/path, making a kernel memory bit oracle defensible.\nI:N - The identified primitive is an out-of-bounds read of a cpumask bitmap and no kernel out-of-bounds write or control-flow corruption was found on the traced path. Passing the value onward only affects TPH steering-tag allocation if the read happens to pass.\nA:H - Large invalid cpu_id values can trigger CONFIG_DEBUG_PER_CPU_MAPS WARN_ON_ONCE(), and with panic_on_warn this reboots the machine. The same unchecked test_bit() can also fault from an out-of-bounds kernel read, making kernel oops/panic availability impact defensible."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T12:33:54.299Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/bd5e818be7964c1689fba2dad9e6bd3a827fee74"
        },
        {
          "url": "https://git.kernel.org/stable/c/0efbb6b54ff56300867027d8e0800d0e32226a20"
        },
        {
          "url": "https://git.kernel.org/stable/c/323c98a4ff06aa28114f2bf658fb43eb3b536bbc"
        }
      ],
      "title": "RDMA/core: Validate cpu_id against nr_cpu_ids in DMAH alloc",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-53187",
    "datePublished": "2026-06-25T08:39:00.175Z",
    "dateReserved": "2026-06-09T07:44:35.390Z",
    "dateUpdated": "2026-10-19T19:57:27.163Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2026-53187\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-10-16T15:26:25.299167Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-125\", \"description\": \"CWE-125 Out-of-bounds Read\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-10-16T15:26:25.819Z\"}}], \"cna\": {\"title\": \"RDMA/core: Validate cpu_id against nr_cpu_ids in DMAH alloc\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 7.1, \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:L - The vulnerable path is reached by a local RDMA uverbs ioctl on /dev/infiniband/uverbsN, specifically RDMA_VERBS_IOCTL selecting UVERBS_METHOD_DMAH_ALLOC. It is not exposed by incoming network packets or remote RDMA traffic.\\nAC:L - An attacker can supply an out-of-range UVERBS_ATTR_ALLOC_DMAH_CPU_ID directly in one ioctl, with no race or victim-controlled timing requirement. The only deployment prerequisite is an affected RDMA device exposing the DMAH uverbs method.\\nPR:L - The uverbs ioctl path has no CAP_* check for DMAH allocation, and RDMA uverbs devices are designed to be usable by non-root users when the device node is accessible. This requires local low-privileged access rather than real administrator privileges.\\nUI:N - No victim action is needed after the attacker has local access to the uverbs device. The attacker triggers the bug directly through the ioctl.\\nS:U - The bug affects kernel RDMA/core processing within the same host kernel security authority. It does not cross a VM, IOMMU, or separate authorization boundary.\\nC:H - The unchecked cpu_id is passed to cpumask_test_cpu(), which expands to test_bit() on current-\u003ecpus_ptr without a bounds check, creating an out-of-bounds kernel memory read. The result influences the returned error/path, making a kernel memory bit oracle defensible.\\nI:N - The identified primitive is an out-of-bounds read of a cpumask bitmap and no kernel out-of-bounds write or control-flow corruption was found on the traced path. Passing the value onward only affects TPH steering-tag allocation if the read happens to pass.\\nA:H - Large invalid cpu_id values can trigger CONFIG_DEBUG_PER_CPU_MAPS WARN_ON_ONCE(), and with panic_on_warn this reboots the machine. The same unchecked test_bit() can also fault from an out-of-bounds kernel read, making kernel oops/panic availability impact defensible.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"d83edab562a496a42720902a1d2effccd05c37c5\", \"lessThan\": \"bd5e818be7964c1689fba2dad9e6bd3a827fee74\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"d83edab562a496a42720902a1d2effccd05c37c5\", \"lessThan\": \"0efbb6b54ff56300867027d8e0800d0e32226a20\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"d83edab562a496a42720902a1d2effccd05c37c5\", \"lessThan\": \"323c98a4ff06aa28114f2bf658fb43eb3b536bbc\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/infiniband/core/uverbs_std_types_dmah.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.17\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.17\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.18.36\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.18.*\"}, {\"status\": \"unaffected\", \"version\": \"7.0.13\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"7.0.*\"}, {\"status\": \"unaffected\", \"version\": \"7.1\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/infiniband/core/uverbs_std_types_dmah.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/bd5e818be7964c1689fba2dad9e6bd3a827fee74\"}, {\"url\": \"https://git.kernel.org/stable/c/0efbb6b54ff56300867027d8e0800d0e32226a20\"}, {\"url\": \"https://git.kernel.org/stable/c/323c98a4ff06aa28114f2bf658fb43eb3b536bbc\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"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.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.18.36\", \"versionStartIncluding\": \"6.17\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"7.0.13\", \"versionStartIncluding\": \"6.17\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"7.1\", \"versionStartIncluding\": \"6.17\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T12:33:54.299Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2026-53187\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-10-19T19:57:27.163Z\", \"dateReserved\": \"2026-06-09T07:44:35.390Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2026-06-25T08:39:00.175Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…