{
  "id": "CVE-2026-31708",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31708",
  "published_at": "2026-05-01T13:56:05.88Z",
  "title": "smb: client: fix OOB read in smb2_ioctl_query_info QUERY_INFO path",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 8.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix OOB read in smb2_ioctl_query_info QUERY_INFO path\n\nsmb2_ioctl_query_info() has two response-copy branches: PASSTHRU_FSCTL\nand the default QUERY_INFO path.  The QUERY_INFO branch clamps\nqi.input_buffer_length to the server-reported OutputBufferLength and then\ncopies qi.input_buffer_length bytes from qi_rsp-\u003eBuffer to userspace, but\nit never verifies that the flexible-array payload actually fits within\nrsp_iov[1].iov_len.\n\nA malicious server can return OutputBufferLength larger than the actual\nQUERY_INFO response, causing copy_to_user() to walk past the response\nbuffer and expose adjacent kernel heap to userspace.\n\nGuard the QUERY_INFO copy with a bounds check on the actual Buffer\npayload.  Use struct_size(qi_rsp, Buffer, qi.input_buffer_length)\nrather than an open-coded addition so the guard cannot overflow on\n32-bit builds.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= f5778c398713692a16150ae96e5c8270bab8399f, \u003c e66bdc0704977ecee667a81d38255b579c2353d0",
          "\u003e= f5778c398713692a16150ae96e5c8270bab8399f, \u003c 9e203dbb5402897c43130fb171a2617008a91f45",
          "\u003e= f5778c398713692a16150ae96e5c8270bab8399f, \u003c 1dd757379997b71a328a4b591ffaf481acd0ead1",
          "\u003e= f5778c398713692a16150ae96e5c8270bab8399f, \u003c a34d456934fe42e4da5d2cc07787bf418bee99c6",
          "\u003e= f5778c398713692a16150ae96e5c8270bab8399f, \u003c ac2f14e4705d020f04e806efa0d49ab8dc2b145f",
          "\u003e= f5778c398713692a16150ae96e5c8270bab8399f, \u003c 078fae8f50adebb903ccf2252b44391324571e78",
          "\u003e= f5778c398713692a16150ae96e5c8270bab8399f, \u003c 85fd46ee26a11841c670449508025965f61ce131",
          "\u003e= f5778c398713692a16150ae96e5c8270bab8399f, \u003c a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e"
        ],
        "fixed_in": [
          "e66bdc0704977ecee667a81d38255b579c2353d0",
          "9e203dbb5402897c43130fb171a2617008a91f45",
          "1dd757379997b71a328a4b591ffaf481acd0ead1",
          "a34d456934fe42e4da5d2cc07787bf418bee99c6",
          "ac2f14e4705d020f04e806efa0d49ab8dc2b145f",
          "078fae8f50adebb903ccf2252b44391324571e78",
          "85fd46ee26a11841c670449508025965f61ce131",
          "a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.1"
        ],
        "fixed_in": [
          "0",
          "5.10.259",
          "5.15.210",
          "6.1.175",
          "6.6.136",
          "6.12.84",
          "6.18.25",
          "7.0.2",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to e66bdc0704977ecee667a81d38255b579c2353d0 or 9e203dbb5402897c43130fb171a2617008a91f45 or 1dd757379997b71a328a4b591ffaf481acd0ead1 or a34d456934fe42e4da5d2cc07787bf418bee99c6 or ac2f14e4705d020f04e806efa0d49ab8dc2b145f or 078fae8f50adebb903ccf2252b44391324571e78 or 85fd46ee26a11841c670449508025965f61ce131 or a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e or later.",
      "Upgrade Linux to 0 or 5.10.259 or 5.15.210 or 6.1.175 or 6.6.136 or 6.12.84 or 6.18.25 or 7.0.2 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
