{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"
            },
            {
              "fixed": "1374082f0897c95610190dfacce463904ec11ea2"
            },
            {
              "fixed": "531aa4239b0d80d7146b102b98f7aa7da989ccdd"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.12"
            },
            {
              "fixed": "7.3.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99381.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: reject short or out-of-range FIND response parameters\n\nCIFSFindFirst() and CIFSFindNext() read the SearchHandle, SearchCount,\nEndofSearch and LastNameOffset of a TRANS2_FIND_FIRST2 or\nTRANS2_FIND_NEXT2 response at ParameterOffset. validate_t2() bounds\nthe offset at 1024 and ParameterCount below 512, and nothing compares\nthem with the number of bytes SendReceive() copied into the buffer or\nwith the size of the response parameters. smb_init() places the\nrequest and the response in the same cifs_request allocation and\ncifs_buf_get() clears only the start of it, so a short response with a\nParameterOffset past its end has the search handle, the entry count,\nthe end-of-search flag and the last-entry offset read out of the\nrequest that was just sent, or out of whatever the allocation held\nbefore, and a ParameterCount smaller than the parameters has them read\npast the end of the parameter block. The reads stay inside the\nallocation, but what they return is not part of the response, and\nCIFSFindFirst() then hands back a search handle the server never sent.\nThat handle is sent back to the server in the next FIND_NEXT2 or\nFIND_CLOSE2, so two bytes of the buffer leak at an offset the server\npicks.\n\nSMB1 is not negotiated by default; reaching this code requires an\nexplicit vers=1.0 mount.\n\nReject a response whose parameter area is smaller than the response\nparameters or extends past the received length, returning smb_EIO2()\nwith a new smb_eio_traces value for each of the two responses, like\nthe other response checks this file gained since v6.19. Backports to\ntrees before v6.19 need smb_EIO2() replaced with -EINVAL and the\ntrace.h hunk dropped.\n\nA conforming server is not affected. The parameter block of a\ntransaction response is part of the SMB, so ParameterOffset +\nParameterCount cannot exceed the smbCalcSize() bytes that\nSendReceive() copies, and the response parameters are 10 bytes for\nFIND_FIRST2 and 8 bytes for FIND_NEXT2, which is what\nT2_FFIRST_RSP_PARMS and T2_FNEXT_RSP_PARMS hold.\n\nThis patch depends on \"smb: client: reject FIND data areas that run\npast the received response\", whose declarations it extends.",
  "id": "CVE-2026-99381",
  "modified": "2026-11-19T16:45:34.514416173Z",
  "published": "2026-11-19T14:23:21.659Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1374082f0897c95610190dfacce463904ec11ea2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/531aa4239b0d80d7146b102b98f7aa7da989ccdd"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99381.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99381"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "smb: client: reject short or out-of-range FIND response parameters"
}