{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9"
            },
            {
              "fixed": "5c0ebca054046093684bdb48ffcbe2eb2757fd0b"
            },
            {
              "fixed": "211280b953194f3f7378de13597f9fce5e0cefc1"
            },
            {
              "fixed": "60269faa92542140fc318783beddf27d6edfceda"
            },
            {
              "fixed": "52a8eb87416e775c6af5018dc5fc04733abedafc"
            },
            {
              "fixed": "ff7debe48426132a6851378c3e3b015b117a34a4"
            },
            {
              "fixed": "a7d1d52748e0fe4d06fdb871fc9899904fbba93f"
            }
          ],
          "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.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.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/142xxx/CVE-2026-142813.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: use the existing xattr name for a named stream\n\nSMB stream names are case-insensitive, but ksmbd stores each named\nstream in an xattr whose name is case-sensitive. Opening an existing\nstream finds its xattr with a case-insensitive match, yet the handle\nkeeps the name as the client spelled it, and every later operation that\nneeds an exact name uses that spelling:\n\n - a WRITE or an end-of-file change creates a second xattr, so a stream\n   created as \"Foo\" and written through \"foo\" ends up stored twice, and\n   which value a later lookup returns depends on xattr list order;\n - delete-on-close and delete-pending removal can fail with -ENODATA,\n   or remove only a case-variant copy and leave the original;\n - the share mode check compares stream names with strcmp(), so two\n   opens of the same stream that differ only in case do not conflict.\n\nHave ksmbd_vfs_casexattr_len() copy the matching xattr's name into the\nhandle when the stream is opened, so later operations use the name\nalready on disk. The match must have the same length as the name it\nreplaces; the stream lookup passes a length that includes the\nterminating NUL, which already guarantees that, and the check makes the\ncopy safe for any caller. A stream that does not exist yet keeps the\nclient's spelling, as before.\n\nsmb2_rename() compares and looks up fp-\u003estream.name case-insensitively,\nso it behaves the same with either spelling.",
  "id": "CVE-2026-142813",
  "modified": "2026-12-03T04:45:53.507329410Z",
  "published": "2026-12-03T03:17:44.070Z",
  "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/211280b953194f3f7378de13597f9fce5e0cefc1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/52a8eb87416e775c6af5018dc5fc04733abedafc"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5c0ebca054046093684bdb48ffcbe2eb2757fd0b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/60269faa92542140fc318783beddf27d6edfceda"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a7d1d52748e0fe4d06fdb871fc9899904fbba93f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ff7debe48426132a6851378c3e3b015b117a34a4"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142813.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142813"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ksmbd: use the existing xattr name for a named stream"
}