{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9"
            },
            {
              "fixed": "e736ee3660eac5922729a9b3c55cecd74611663c"
            },
            {
              "fixed": "93d1fbe38f0c1f230fdd24410353b1fd9e5883d3"
            },
            {
              "fixed": "c8a4c381fd68895bbb077df9b5322c8987b31cf5"
            },
            {
              "fixed": "f1f37834eaba5904103af1f18afe3510c7e9dc71"
            }
          ],
          "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.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-99389.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: server: size directory name conversion buffer correctly\n\nA 2048-byte ASCII directory name needs 4098 bytes when converted to\nUTF-16, including the terminator. ksmbd_convert_dir_info_name() caps\nits allocation at PATH_MAX and writes past the end of that buffer.\n\nAllocate space for one UTF-16 code unit per input byte plus the\nterminator. Use kmalloc_array() to check the size calculation.",
  "id": "CVE-2026-99389",
  "modified": "2026-11-19T16:45:48.952016868Z",
  "published": "2026-11-19T14:23:28.576Z",
  "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/93d1fbe38f0c1f230fdd24410353b1fd9e5883d3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c8a4c381fd68895bbb077df9b5322c8987b31cf5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e736ee3660eac5922729a9b3c55cecd74611663c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f1f37834eaba5904103af1f18afe3510c7e9dc71"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99389.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99389"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "smb: server: size directory name conversion buffer correctly"
}