{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "563e1feb5f6ed579acb55850f1bbb831aecf645a"
            },
            {
              "fixed": "3f08351de5ca4f2f724b86ad252fbc21289467e1"
            },
            {
              "fixed": "cbd852f5700eb3f64392452faf693ac45cae8281"
            },
            {
              "fixed": "e37afcb56ae070477741fe2d6e61fc0c542cce2d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.18.0"
            },
            {
              "fixed": "6.18.21"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "6.19.11"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31491.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/irdma: Harden depth calculation functions\n\nAn issue was exposed where OS can pass in U32_MAX for SQ/RQ/SRQ size.\nThis can cause integer overflow and truncation of SQ/RQ/SRQ depth\nreturning a success when it should have failed.\n\nHarden the functions to do all depth calculations and boundary\nchecking in u64 sizes.",
  "id": "CVE-2026-31491",
  "modified": "2026-07-08T05:37:05.996581452Z",
  "published": "2026-04-22T13:54:14.905Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3f08351de5ca4f2f724b86ad252fbc21289467e1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cbd852f5700eb3f64392452faf693ac45cae8281"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e37afcb56ae070477741fe2d6e61fc0c542cce2d"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31491.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31491"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "RDMA/irdma: Harden depth calculation functions"
}