A vulnerability in the Linux kernel's ksmbd component allowed creation of named streams on files through read-only SMB shares, bypassing intended write restrictions. This occurred because the check for read-only shares did not prevent creating streams without O_CREAT or O_TRUNC flags. The flaw could enable users with filesystem write access to add streams via a read-only share. The issue has been resolved by enforcing the read-only share flag when creating streams, preventing stream creation or AFP_AfpInfo synthesis on non-writable shares while still allowing normal opening of existing streams.