{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2026-31708",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-31708",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-05-01T13:56:05.880Z",
    "updatedAt": "2026-10-19T19:06:06.825Z",
    "importedAt": "2026-10-24T01:58:02.025Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "smb: client: fix OOB read in smb2_ioctl_query_info QUERY_INFO path",
      "summary": "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->Buffer 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.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "f5778c398713692a16150ae96e5c8270bab8399f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e66bdc0704977ecee667a81d38255b579c2353d0"
            },
            {
              "version": "f5778c398713692a16150ae96e5c8270bab8399f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "9e203dbb5402897c43130fb171a2617008a91f45"
            },
            {
              "version": "f5778c398713692a16150ae96e5c8270bab8399f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "1dd757379997b71a328a4b591ffaf481acd0ead1"
            },
            {
              "version": "f5778c398713692a16150ae96e5c8270bab8399f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a34d456934fe42e4da5d2cc07787bf418bee99c6"
            },
            {
              "version": "f5778c398713692a16150ae96e5c8270bab8399f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ac2f14e4705d020f04e806efa0d49ab8dc2b145f"
            },
            {
              "version": "f5778c398713692a16150ae96e5c8270bab8399f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "078fae8f50adebb903ccf2252b44391324571e78"
            },
            {
              "version": "f5778c398713692a16150ae96e5c8270bab8399f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "85fd46ee26a11841c670449508025965f61ce131"
            },
            {
              "version": "f5778c398713692a16150ae96e5c8270bab8399f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "5.1",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "5.1"
            },
            {
              "version": "5.10.259",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.210",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.175",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.136",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.84",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.18.25",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.18.*"
            },
            {
              "version": "7.0.2",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "7.0.*"
            },
            {
              "version": "7.1",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}