CVE-2026-142813
Last modified
CVE-2026-142813 is a vulnerability of currently unknown severity. 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.
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 Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 5c0ebca054046093684bdb48ffcbe2eb2757fd0b; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 211280b953194f3f7378de13597f9fce5e0cefc1; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 60269faa92542140fc318783beddf27d6edfceda; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 52a8eb87416e775c6af5018dc5fc04733abedafc; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < ff7debe48426132a6851378c3e3b015b117a34a4; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < a7d1d52748e0fe4d06fdb871fc9899904fbba93f |
| Linux | Linux | 5.15 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-142813?
How severe is CVE-2026-142813?
How do I fix CVE-2026-142813?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-142808In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142809In the Linux kernel, the following vulnerability has been re…
- CVE-2026-14281The Automation Web Platform – Notifications and OTP for WooC…9.8
- CVE-2026-142810In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142811In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142812In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142814In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142815In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142816In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142817In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-142818In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142819In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-142813?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
