# CVE-2026-142813: ksmbd: use the existing xattr name for a named stream

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:17:44.070Z
- **Modified:** 2026-12-03T04:18:15.737Z

## Who should check

- Anyone running Linux \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 5c0ebca054046093684bdb48ffcbe2eb2757fd0b; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 211280b953194f3f7378de13597f9fce5e0cefc1; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 60269faa92542140fc318783beddf27d6edfceda; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 52a8eb87416e775c6af5018dc5fc04733abedafc; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< ff7debe48426132a6851378c3e3b015b117a34a4; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< a7d1d52748e0fe4d06fdb871fc9899904fbba93f
- Anyone running Linux 5.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: use the existing xattr name for a named stream

SMB stream names are case-insensitive, but ksmbd stores each named
stream in an xattr whose name is case-sensitive. Opening an existing
stream finds its xattr with a case-insensitive match, yet the handle
keeps the name as the client spelled it, and every later operation that
needs an exact name uses that spelling:

 - a WRITE or an end-of-file change creates a second xattr, so a stream
   created as "Foo" and written through "foo" ends up stored twice, and
   which value a later lookup returns depends on xattr list order;
 - delete-on-close and delete-pending removal can fail with -ENODATA,
   or remove only a case-variant copy and leave the original;
 - the share mode check compares stream names with strcmp(), so two
   opens of the same stream that differ only in case do not conflict.

Have ksmbd\_vfs\_casexattr\_len() copy the matching xattr's name into the
handle when the stream is opened, so later operations use the name
already on disk. The match must have the same length as the name it
replaces; the stream lookup passes a length that includes the
terminating NUL, which already guarantees that, and the check makes the
copy safe for any caller. A stream that does not exist yet keeps the
client's spelling, as before.

smb2\_rename() compares and looks up fp-\>stream.name case-insensitively,
so it behaves the same with either spelling.

## Affected and fixed versions

- Linux: \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 5c0ebca054046093684bdb48ffcbe2eb2757fd0b; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 211280b953194f3f7378de13597f9fce5e0cefc1; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 60269faa92542140fc318783beddf27d6edfceda; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 52a8eb87416e775c6af5018dc5fc04733abedafc; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< ff7debe48426132a6851378c3e3b015b117a34a4; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< a7d1d52748e0fe4d06fdb871fc9899904fbba93f (cvelist)
- Linux: 5.15 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142813. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142813.md
Affected: Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 5c0ebca054046093684bdb48ffcbe2eb2757fd0b; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 211280b953194f3f7378de13597f9fce5e0cefc1; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 60269faa92542140fc318783beddf27d6edfceda; >= e2f34481b24db2fd634b5ed…
Fixed in: Linux 5c0ebca054046093684bdb48ffcbe2eb2757fd0b, Linux 211280b953194f3f7378de13597f9fce5e0cefc1, Linux 60269faa92542140fc318783beddf27d6edfceda, Linux 52a8eb87416e775c6af5018dc5fc04733abedafc

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142813 being exploited?

There is no confirmed exploitation: CVE-2026-142813 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142813?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142813?

Linux \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 5c0ebca054046093684bdb48ffcbe2eb2757fd0b; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 211280b953194f3f7378de13597f9fce5e0cefc1; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 60269faa92542140fc318783beddf27d6edfceda; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 52a8eb87416e775c6af5018dc5fc04733abedafc; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< ff7debe48426132a6851378c3e3b015b117a34a4; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< a7d1d52748e0fe4d06fdb871fc9899904fbba93f; Linux 5.15.

### Is there a fix for CVE-2026-142813?

Yes. Fixed in Linux 5c0ebca054046093684bdb48ffcbe2eb2757fd0b, Linux 211280b953194f3f7378de13597f9fce5e0cefc1, Linux 60269faa92542140fc318783beddf27d6edfceda, Linux 52a8eb87416e775c6af5018dc5fc04733abedafc. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-142813?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/5c0ebca054046093684bdb48ffcbe2eb2757fd0b>
- other: <https://git.kernel.org/stable/c/211280b953194f3f7378de13597f9fce5e0cefc1>
- other: <https://git.kernel.org/stable/c/60269faa92542140fc318783beddf27d6edfceda>
- other: <https://git.kernel.org/stable/c/52a8eb87416e775c6af5018dc5fc04733abedafc>
- other: <https://git.kernel.org/stable/c/ff7debe48426132a6851378c3e3b015b117a34a4>
- other: <https://git.kernel.org/stable/c/a7d1d52748e0fe4d06fdb871fc9899904fbba93f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142813>

HTML: <https://flawdb.com/CVE-2026-142813> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142813>
