CVE-2026-142813
ksmbd: use the existing xattr name for a named stream
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 5c0ebca054046093684bdb48ffcbe2eb2757fd0b; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 211280b953194f3f7378de13597f9fce5e0cefc1; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 60269faa92542140fc318783beddf27d6edfceda; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 52a8eb87416e775c6af5018dc5fc04733abedafc; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < ff7debe48426132a6851378c3e3b015b117a34a4; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < a7d1d52748e0fe4d06fdb871fc9899904fbba93f
- Anyone running Linux 5.15
Vulnerability facts
- Affected
- Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 5c0ebca054046093684bdb48ffcbe2eb2757fd0b; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 211280b953194f3f7378de13597f9fce5e0cefc1; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 60269faa92542140fc318783beddf27d6edfceda; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 52a8eb87416e775c6af5018dc5fc04733abedafc; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < ff7debe48426132a6851378c3e3b015b117a34a4; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < a7d1d52748e0fe4d06fdb871fc9899904fbba93f; Linux 5.15
- Fixed in
- Linux 5c0ebca054046093684bdb48ffcbe2eb2757fd0b, Linux 211280b953194f3f7378de13597f9fce5e0cefc1, Linux 60269faa92542140fc318783beddf27d6edfceda, Linux 52a8eb87416e775c6af5018dc5fc04733abedafc
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 5c0ebca054046093684bdb48ffcbe2eb2757fd0b; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 211280b953194f3f7378de13597f9fce5e0cefc1; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 60269faa92542140fc318783beddf27d6edfceda; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 52a8eb87416e775c6af5018dc5fc04733abedafc; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < ff7debe48426132a6851378c3e3b015b117a34a4; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < a7d1d52748e0fe4d06fdb871fc9899904fbba93f | — | cvelist |
| Linux | 5.15 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
Technologies
References
Other
- https://git.kernel.org/stable/c/5c0ebca054046093684bdb48ffcbe2eb2757fd0b
- https://git.kernel.org/stable/c/211280b953194f3f7378de13597f9fce5e0cefc1
- https://git.kernel.org/stable/c/60269faa92542140fc318783beddf27d6edfceda
- https://git.kernel.org/stable/c/52a8eb87416e775c6af5018dc5fc04733abedafc
- https://git.kernel.org/stable/c/ff7debe48426132a6851378c3e3b015b117a34a4
- https://git.kernel.org/stable/c/a7d1d52748e0fe4d06fdb871fc9899904fbba93f
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.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| UNSCORED | CVE-2026-142948 i2c: designware: queue only one read command for block reads | Linux kernel | ||
| UNSCORED | CVE-2026-142947 cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails | Linux kernel | ||
| UNSCORED | CVE-2026-142946 ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142945 ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142944 ASoC: amd: acp-es8336: Use an owned codec device reference | Linux kernel |