EnvMap GitHub

CVE-2026-142813

ksmbd: use the existing xattr name for a named stream

Not scored yetEPSS 0.30%Received

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.

In the words of the organisation that published it (Linux).

Affected

  • Linux: from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 5c0ebca054046093684bdb48ffc; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 211280b953194f3f7378de13597; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 60269faa92542140fc318783bed; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 52a8eb87416e775c6af5018dc5f; 5.15

as the publisher (Linux) lists them.

Likelihood of exploitation

FIRST's EPSS gives a 0.30% chance of exploitation in the next 30 days, higher than 25% of all CVEs (as of 4 December 2026).

References

Record

Published04:18 UTC, 3 December 2026
Last changed04:18 UTC, 3 December 2026
NVD statusReceived
Published byLinux

CVE-2026-142813 on NVD · on CVE.org · Security Briefing

Follow it

Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.

Add to Feedly Add to Inoreader

Any other reader: paste https://envmap.tech/security/feed.xml

Where this comes from

Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.

How to read it

EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.