CVE-2026-142813

Not scored yetLast modified Dec 3, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142814In the Linux kernel, the following vulnerability has been resolved: ksmbd: retry break notifications on another connection An oplock or leCVE-2026-142815In the Linux kernel, the following vulnerability has been resolved: ksmbd: track delivery of queued TCP writes A nonblocking break send muCVE-2026-142816In the Linux kernel, the following vulnerability has been resolved: HID: hid-lenovo-go-s: Use devm_kzalloc for drvdata Changes drvdata froCVE-2026-142817In the Linux kernel, the following vulnerability has been resolved: fork: move the coredump and exec checks into create_io_thread() Only aCVE-2026-142818In the Linux kernel, the following vulnerability has been resolved: ns: don't add init_ipc_ns and init_net without namespace support When CVE-2026-142819In the Linux kernel, the following vulnerability has been resolved: kgdb: Fix buffer overflow in the qRcmd packet handler gdb_cmd_query() CVE-2026-142829.8The GoDAM – Organize WordPress Media Library & File Manager with Unlimited Folders for Images, Videos & more plugin for WordPress is vulneraCVE-2026-142820In the Linux kernel, the following vulnerability has been resolved: kgdb: Fix buffer overflow in the 'm' packet handler gdb_cmd_memread() CVE-2026-142821In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: validate SRAT subtables before parsing The KFD SRAT walkerCVE-2026-142822In the Linux kernel, the following vulnerability has been resolved: ipmr: drop packets with unknown ingress VIF A packet can race with VIFCVE-2026-142823In the Linux kernel, the following vulnerability has been resolved: bonding: fix out-of-bounds read of arp_ip_target arp_ip_target is a moCVE-2026-142824In the Linux kernel, the following vulnerability has been resolved: ASoC: qcom: qdsp6: q6afe: fix clk vote response type mismatch The resp
CVE-2026-142813: Unscored | Vulnix