{"api_version":"1","generated_at":"2026-12-03T05:54:43+00:00","cve":"CVE-2026-142813","urls":{"html":"https://cve.report/CVE-2026-142813","api":"https://cve.report/api/cve/CVE-2026-142813.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142813","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142813"},"summary":{"title":"ksmbd: use the existing xattr name for a named stream","description":"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->stream.name case-insensitively,\nso it behaves the same with either spelling.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:15","updated_at":"2026-12-03 04:18:15"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/211280b953194f3f7378de13597f9fce5e0cefc1","name":"https://git.kernel.org/stable/c/211280b953194f3f7378de13597f9fce5e0cefc1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a7d1d52748e0fe4d06fdb871fc9899904fbba93f","name":"https://git.kernel.org/stable/c/a7d1d52748e0fe4d06fdb871fc9899904fbba93f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/52a8eb87416e775c6af5018dc5fc04733abedafc","name":"https://git.kernel.org/stable/c/52a8eb87416e775c6af5018dc5fc04733abedafc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/60269faa92542140fc318783beddf27d6edfceda","name":"https://git.kernel.org/stable/c/60269faa92542140fc318783beddf27d6edfceda","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ff7debe48426132a6851378c3e3b015b117a34a4","name":"https://git.kernel.org/stable/c/ff7debe48426132a6851378c3e3b015b117a34a4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5c0ebca054046093684bdb48ffcbe2eb2757fd0b","name":"https://git.kernel.org/stable/c/5c0ebca054046093684bdb48ffcbe2eb2757fd0b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142813","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142813","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 5c0ebca054046093684bdb48ffcbe2eb2757fd0b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 211280b953194f3f7378de13597f9fce5e0cefc1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 60269faa92542140fc318783beddf27d6edfceda git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 52a8eb87416e775c6af5018dc5fc04733abedafc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 ff7debe48426132a6851378c3e3b015b117a34a4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 a7d1d52748e0fe4d06fdb871fc9899904fbba93f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.61 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.2 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/smb/server/smb2pdu.c","fs/smb/server/vfs.c","fs/smb/server/vfs.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"5c0ebca054046093684bdb48ffcbe2eb2757fd0b","status":"affected","version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","versionType":"git"},{"lessThan":"211280b953194f3f7378de13597f9fce5e0cefc1","status":"affected","version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","versionType":"git"},{"lessThan":"60269faa92542140fc318783beddf27d6edfceda","status":"affected","version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","versionType":"git"},{"lessThan":"52a8eb87416e775c6af5018dc5fc04733abedafc","status":"affected","version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","versionType":"git"},{"lessThan":"ff7debe48426132a6851378c3e3b015b117a34a4","status":"affected","version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","versionType":"git"},{"lessThan":"a7d1d52748e0fe4d06fdb871fc9899904fbba93f","status":"affected","version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/smb/server/smb2pdu.c","fs/smb/server/vfs.c","fs/smb/server/vfs.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.15"},{"lessThan":"5.15","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.61","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.2","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.61","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.2","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.15","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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->stream.name case-insensitively,\nso it behaves the same with either spelling."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:17:44.070Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/5c0ebca054046093684bdb48ffcbe2eb2757fd0b"},{"url":"https://git.kernel.org/stable/c/211280b953194f3f7378de13597f9fce5e0cefc1"},{"url":"https://git.kernel.org/stable/c/60269faa92542140fc318783beddf27d6edfceda"},{"url":"https://git.kernel.org/stable/c/52a8eb87416e775c6af5018dc5fc04733abedafc"},{"url":"https://git.kernel.org/stable/c/ff7debe48426132a6851378c3e3b015b117a34a4"},{"url":"https://git.kernel.org/stable/c/a7d1d52748e0fe4d06fdb871fc9899904fbba93f"}],"title":"ksmbd: use the existing xattr name for a named stream","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142813","datePublished":"2026-12-03T03:17:44.070Z","dateReserved":"2026-12-03T03:10:28.330Z","dateUpdated":"2026-12-03T03:17:44.070Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:15","lastModifiedDate":"2026-12-03 04:18:15","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142813","Ordinal":"1","Title":"ksmbd: use the existing xattr name for a named stream","CVE":"CVE-2026-142813","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142813","Ordinal":"1","NoteData":"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->stream.name case-insensitively,\nso it behaves the same with either spelling.","Type":"Description","Title":"ksmbd: use the existing xattr name for a named stream"}]}}}