{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "74d7970febf7e9005375aeda0df821d2edffc9f7"
            },
            {
              "fixed": "007eaa56b06fd05c55b86afabab3354ff7c24653"
            },
            {
              "fixed": "2756a41a82d618bf1d8b41d74108311815cb695c"
            },
            {
              "fixed": "1f8945d2eb20a135b4e22e6fe2348a0191be208a"
            },
            {
              "fixed": "9fd1fcbbf84986a7bcf601a2b90540899069d263"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "019aae488dbc67c97a33db03652e20e2c9e3afa7"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "6927ffe7479c72e7ebf885507227266a75f7c97d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "ef6cc1c465786b3e4e735d1ab8b616b3e94402df"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.15.145"
            },
            {
              "fixed": "5.16"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.1.71"
            },
            {
              "fixed": "6.2"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.3.10"
            },
            {
              "fixed": "6.4"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.4.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.61"
            }
          ],
          "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-99535.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: prevent share root removal through empty paths\n\nA FileLinkInformation request can supply \"/\" as the new link name.\nsmb2_get_name() strips the trailing slash and passes an empty string to\nksmbd_vfs_kern_path_start_removing().\n\nksmbd_vfs_path_lookup() resolves an empty pathname as the configured share\npath, without LOOKUP_BENEATH. With ReplaceIfExists set, smb2_create_link()\ncan therefore remove the share root from its parent before link creation\nfails. An authenticated client with a writable share and DELETE access to\na file can trigger this if the share root is empty and the mapped user\nhas write and search permission on its parent directory.\n\nReturn -EINVAL for empty pathnames when for_remove is set, before\nresolving the share path or acquiring removal resources. Ordinary lookups\ncontinue to accept empty pathnames for opening the share root.",
  "id": "CVE-2026-99535",
  "modified": "2026-11-19T16:45:48.616061482Z",
  "published": "2026-11-19T14:44:48.628Z",
  "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/007eaa56b06fd05c55b86afabab3354ff7c24653"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1f8945d2eb20a135b4e22e6fe2348a0191be208a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2756a41a82d618bf1d8b41d74108311815cb695c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9fd1fcbbf84986a7bcf601a2b90540899069d263"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99535.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99535"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ksmbd: prevent share root removal through empty paths"
}