{
  "id": "CVE-2026-31433",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31433",
  "published_at": "2026-04-22T08:15:11.719Z",
  "title": "ksmbd: fix potencial OOB in get_file_all_info() for compound requests",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/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\nksmbd: fix potencial OOB in get_file_all_info() for compound requests\n\nWhen a compound request consists of QUERY_DIRECTORY + QUERY_INFO\n(FILE_ALL_INFORMATION) and the first command consumes nearly the entire\nmax_trans_size, get_file_all_info() would blindly call smbConvertToUTF16()\nwith PATH_MAX, causing out-of-bounds write beyond the response buffer.\nIn get_file_all_info(), there was a missing validation check for\nthe client-provided OutputBufferLength before copying the filename into\nFileName field of the smb2_file_all_info structure.\nIf the filename length exceeds the available buffer space, it could lead to\npotential buffer overflows or memory corruption during smbConvertToUTF16\nconversion. This calculating the actual free buffer size using\nsmb2_calc_max_out_buf_len() and returning -EINVAL if the buffer is\ninsufficient and updating smbConvertToUTF16 to use the actual filename\nlength (clamped by PATH_MAX) to ensure a safe copy operation.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= f2283680a80571ca82d710bc6ecd8f8beac67d63, \u003c 3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7",
          "\u003e= 9f297df20d93411c0b4ddad7f88ba04a7cd36e77, \u003c 4cca3eff2099b18672934a39cee70aed835d652c",
          "\u003e= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, \u003c 358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe",
          "\u003e= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, \u003c 7aec5a769d2356cbf344d85bcfd36de592ac96a5",
          "\u003e= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, \u003c b0cd9725fe2bcc9f37d096b132318a9060373f5d",
          "\u003e= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, \u003c 9d7032851d6f5adbe2739601ca456c0ad3b422f0",
          "\u003e= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, \u003c beef2634f81f1c086208191f7228bce1d366493d",
          "\u003e= 5.15.145, \u003c 5.15.203",
          "\u003e= 6.1.71, \u003c 6.1.168"
        ],
        "fixed_in": [
          "3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7",
          "4cca3eff2099b18672934a39cee70aed835d652c",
          "358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe",
          "7aec5a769d2356cbf344d85bcfd36de592ac96a5",
          "b0cd9725fe2bcc9f37d096b132318a9060373f5d",
          "9d7032851d6f5adbe2739601ca456c0ad3b422f0",
          "beef2634f81f1c086208191f7228bce1d366493d",
          "5.15.203",
          "6.1.168"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.6"
        ],
        "fixed_in": [
          "0",
          "5.15.203",
          "6.1.168",
          "6.6.131",
          "6.12.80",
          "6.18.21",
          "6.19.11",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7 or 4cca3eff2099b18672934a39cee70aed835d652c or 358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe or 7aec5a769d2356cbf344d85bcfd36de592ac96a5 or b0cd9725fe2bcc9f37d096b132318a9060373f5d or 9d7032851d6f5adbe2739601ca456c0ad3b422f0 or beef2634f81f1c086208191f7228bce1d366493d or 5.15.203 or 6.1.168 or later.",
      "Upgrade Linux to 0 or 5.15.203 or 6.1.168 or 6.6.131 or 6.12.80 or 6.18.21 or 6.19.11 or 7.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
