CVE-2026-99749: In the Linux kernel, the following vulnerability has been resolved: ksmbd: enforce the read-only share flag when creating a stream When a share is read-only, s…
- Source:
- NVD CVE API 2.0
- Published:
- Fetched:
- Updated:
- Affects:
- linux
https://nvd.nist.gov/vuln/detail/CVE-2026-99749 ↗
In the Linux kernel, the following vulnerability has been resolved: ksmbd: enforce the read-only share flag when creating a stream When a share is read-only, smb2_open() rejects opens that would create or truncate a file. Creating a named stream on an existing file with streams_xattr sets neither O_CREAT nor O_TRUNC, so it passes this check, and smb2_set_stream_name_xattr() then creates the stream. On a Time Machine share, opening a missing AFP_AfpInfo stream also writes one. A user who can write a file at the filesystem level can therefore add streams to it through a read-only share. Do not create a stream or synthesize AFP_AfpInfo when the share is not writable. Existing streams still open normally, and a missing stream opened with FILE_OPEN still returns STATUS_OBJECT_NAME_NOT_FOUND. References: https://git.kernel.org/stable/c/09139429fab3a5114c18d7c15fb161511d4d66c9 https://git.kernel.org/stable/c/ece35b45ec17a462cc5947ad4fbc3450657aa55b