{"id":"CVE-2026-99749","aliases":["CVE-2026-99749"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: enforce the read-only share flag when creating a stream","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: enforce the read-only share flag when creating a stream\n\nWhen a share is read-only, smb2_open() rejects opens that would create\nor truncate a file. Creating a named stream on an existing file with\nstreams_xattr sets neither O_CREAT nor O_TRUNC, so it passes this check,\nand smb2_set_stream_name_xattr() then creates the stream. On a Time\nMachine share, opening a missing AFP_AfpInfo stream also writes one. A\nuser who can write a file at the filesystem level can therefore add\nstreams to it through a read-only share.\n\nDo not create a stream or synthesize AFP_AfpInfo when the share is not\nwritable. Existing streams still open normally, and a missing stream\nopened with FILE_OPEN still returns STATUS_OBJECT_NAME_NOT_FOUND.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: enforce the read-only share flag when creating a stream\n\nWhen a share is read-only, smb2_open() rejects opens that would create\nor truncate a file. Creating a named stream on an existing file with\nstreams_xattr sets neither O_CREAT nor O_TRUNC, so it passes this check,\nand smb2_set_stream_name_xattr() then creates the stream. On a Time\nMachine share, opening a missing AFP_AfpInfo stream also writes one. A\nuser who can write a file at the filesystem level can therefore add\nstreams to it through a read-only share.\n\nDo not create a stream or synthesize AFP_AfpInfo when the share is not\nwritable. Existing streams still open normally, and a missing stream\nopened with FILE_OPEN still returns STATUS_OBJECT_NAME_NOT_FOUND.","source":"cvelist"}],"published":"2026-11-20T05:51:19.794Z","modified":"2026-11-23T08:18:15.150Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","fixed":"3c226cbf62b7bf2a36e6da4faa8cb6fbe5f8187a","status":"affected"},{"type":"git","introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","fixed":"996f257e4bf6d5a5574a3ec10cebe5cf63959e4c","status":"affected"},{"type":"git","introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","fixed":"bbeae2eb4df84a033a2db1b0d7647ed762bd24fa","status":"affected"},{"type":"git","introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","fixed":"f92cd402cc29889be2dbdcbe60ec014c231f2ec6","status":"affected"},{"type":"git","introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","fixed":"d86cea832d4bffabc51190039ee286a0ab9f3b61","status":"affected"},{"type":"git","introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","fixed":"ece35b45ec17a462cc5947ad4fbc3450657aa55b","status":"affected"},{"type":"git","introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","fixed":"09139429fab3a5114c18d7c15fb161511d4d66c9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.5","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/3c226cbf62b7bf2a36e6da4faa8cb6fbe5f8187a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/996f257e4bf6d5a5574a3ec10cebe5cf63959e4c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bbeae2eb4df84a033a2db1b0d7647ed762bd24fa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f92cd402cc29889be2dbdcbe60ec014c231f2ec6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d86cea832d4bffabc51190039ee286a0ab9f3b61","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ece35b45ec17a462cc5947ad4fbc3450657aa55b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/09139429fab3a5114c18d7c15fb161511d4d66c9","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99749","url":"https://www.cve.org/CVERecord?id=CVE-2026-99749","licence":"CVE Terms of Use","modified":"2026-11-23T08:06:55.690Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99749","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99749","licence":"Public domain","modified":"2026-11-23T08:18:15.150Z"}],"updatedAt":"2026-11-25T22:59:52.330Z","epss":{"score":0.00173,"percentile":0.07043,"date":"2026-12-01T12:00:22.000Z"}}