{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0752f1522a9120f731232919f7ad904e9e22b8ce"
            },
            {
              "fixed": "0cc7589ab18a891eb9aa8621f76e1eb09a6d0704"
            },
            {
              "fixed": "556c3a72f58e0ce4356d57301712cbcd7b2e4c65"
            },
            {
              "fixed": "7141cde58f9dc15cf0869529ba2cb09fb0f082e5"
            },
            {
              "fixed": "f8171804a39ee89a11cd462f67862899de9c6b10"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "bc15485e6a3cd20829cfa58bc9111e0bfc9cf303"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "282333bd7f759cdd9362e793b85db08780516416"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "92fa67e9260a65f69d868c4fcc92c9cee428c6f9"
            }
          ],
          "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.25.19"
            },
            {
              "fixed": "2.6.26"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "2.6.26.7"
            },
            {
              "fixed": "2.6.27"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "2.6.27.2"
            },
            {
              "fixed": "2.6.28"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "2.6.28"
            },
            {
              "fixed": "6.12.118"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.64"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "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-99384.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix OOB read of the resume name sent in TRANS2_FIND_NEXT2\n\ncifs_fill_dirent() reads the fixed part of a directory entry and the\nname length it holds, or for SMB_FIND_FILE_UNIX scans the name for its\nterminating NUL, without knowing where the response ends.\ncifs_save_resume_key() calls it for the entry at the LastNameOffset the\nserver chose, after every FindNext and after the FindFirst of a search\nrewind, and records the name it returns as the resume name of the\nsearch without bounding it; the next CIFSFindNext() copies up to\nPATH_MAX - 1 bytes from that name into its request and sends them to\nthe server. cifs_filldir() bounds\nthe name against the end of the response since\ncommit f8cf09a53a0d (\"smb: client: bound dirent name against end of\nSMB response in cifs_filldir\"), but only after cifs_fill_dirent() has\nread the entry, and nxt_dir_entry() checks the entries it walks only\nagainst sizeof(FILE_DIRECTORY_INFO), for every level but\nSMB_FIND_FILE_INFO_STANDARD, and never sees the first entry of a\nresponse.\n\nBounding where last_entry starts, as the preceding patch does, does\nnot bound the read. A last entry that starts within the final bytes of\nthe response still has its fixed part read past the end of the\nreceived data, and the name length it declares, a __le32 for every\nlevel but SMB_FIND_FILE_INFO_STANDARD and SMB_FIND_FILE_UNIX, is\nrecorded without being checked against anything. CIFSFindNext()\nrejects only a length of PATH_MAX or more, then copies the name, up to\n4095 bytes, into its request and sends it, and as the report below\nshows that copy can run past the end of the cifs_request allocation\nthat holds the response. For SMB_FIND_FILE_UNIX the name is in\naddition scanned for its terminating NUL over up to PATH_MAX + 1\nUTF-16 units, or PATH_MAX bytes, before any check. The FindNext that\ncarries the name is only sent by the SMB1 dialect, which is not\nnegotiated by default; reaching it requires an explicit vers=1.0\nmount.\n\nWith KASAN enabled, a response whose last entry declares a name\nlonger than the bytes that follow it gives:\n\n ==================================================================\n BUG: KASAN: slab-out-of-bounds in CIFSFindNext+0x8ca/0x14c0\n Read of size 4080 at addr ffff88807c823f98 by task ls/83\n\n CPU: 0 UID: 0 PID: 83 Comm: ls Not tainted 7.3.0-rc4-00457-gf14572c203d5 #69 PREEMPT(lazy)\n Call Trace:\n  \u003cTASK\u003e\n  kasan_report+0xdf/0x1a0\n  kasan_check_range+0x10f/0x1e0\n  __asan_memcpy+0x23/0x60\n  CIFSFindNext+0x8ca/0x14c0\n  cifs_readdir+0xf51/0x29c0\n  iterate_dir+0x1c0/0x570\n  __x64_sys_getdents64+0x133/0x270\n  do_syscall_64+0x109/0x5d0\n  entry_SYSCALL_64_after_hwframe+0x77/0x7f\n  \u003c/TASK\u003e\n\n Allocated by task 83 on cpu 1 at 13.497119s:\n  cifs_buf_get+0x36/0x90\n  smb_init+0x4f/0x110\n  CIFSFindNext+0xf7/0x14c0\n  cifs_readdir+0xf51/0x29c0\n\n The buggy address belongs to the object at ffff88807c820000\n  which belongs to the cache cifs_request of size 16588\n The buggy address is located 16280 bytes inside of\n  allocated 16588-byte region [ffff88807c820000, ffff88807c8240cc)\n ==================================================================\n\nThe read is the memcpy() that copies the recorded name into the next\nrequest, so those bytes go to the server.\n\nPass the end of the response to cifs_fill_dirent() and have it reject\nan entry whose fixed part does not fit or whose name extends past the\nend, before either is used, so that both callers are covered;\ncifs_save_resume_key() computes the end the same way cifs_readdir()\ndoes. The name bound compares the bytes left between the name and the\nend with the name length rather than adding the length to the name\npointer, since the length is a 32-bit value taken from the entry and\nthe sum could wrap on 32-bit systems. cifs_fill_dirent() is also used\non the SMB2 readdir path; there smb2_parse_query_directory() has\nalready checked every entry against the end of the response, so a\nvali\n---truncated---",
  "id": "CVE-2026-99384",
  "modified": "2026-11-19T16:46:04.993939455Z",
  "published": "2026-11-19T14:23:24.215Z",
  "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/0cc7589ab18a891eb9aa8621f76e1eb09a6d0704"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/556c3a72f58e0ce4356d57301712cbcd7b2e4c65"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7141cde58f9dc15cf0869529ba2cb09fb0f082e5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f8171804a39ee89a11cd462f67862899de9c6b10"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99384.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99384"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "smb: client: fix OOB read of the resume name sent in TRANS2_FIND_NEXT2"
}