# CVE-2026-99749: ksmbd: enforce the read-only share flag when creating a stream

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-11-20T05:51:19.794Z
- Modified: 2026-11-23T08:18:15.150Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 3c226cbf62b7bf2a36e6da4faa8cb6fbe5f8187a; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 996f257e4bf6d5a5574a3ec10cebe5cf63959e4c; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before bbeae2eb4df84a033a2db1b0d7647ed762bd24fa; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before f92cd402cc29889be2dbdcbe60ec014c231f2ec6; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before d86cea832d4bffabc51190039ee286a0ab9f3b61; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before ece35b45ec17a462cc5947ad4fbc3450657aa55b; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 09139429fab3a5114c18d7c15fb161511d4d66c9; 5.15 (not affected: before 5.15; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.5 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/3c226cbf62b7bf2a36e6da4faa8cb6fbe5f8187a>
- <https://git.kernel.org/stable/c/996f257e4bf6d5a5574a3ec10cebe5cf63959e4c>
- <https://git.kernel.org/stable/c/bbeae2eb4df84a033a2db1b0d7647ed762bd24fa>
- <https://git.kernel.org/stable/c/f92cd402cc29889be2dbdcbe60ec014c231f2ec6>
- <https://git.kernel.org/stable/c/d86cea832d4bffabc51190039ee286a0ab9f3b61>
- <https://git.kernel.org/stable/c/ece35b45ec17a462cc5947ad4fbc3450657aa55b>
- <https://git.kernel.org/stable/c/09139429fab3a5114c18d7c15fb161511d4d66c9>

## Sources

- CVE List: [CVE-2026-99749](https://www.cve.org/CVERecord?id=CVE-2026-99749), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-99749](https://nvd.nist.gov/vuln/detail/CVE-2026-99749), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-99749 · Whole record: https://cve.day/CVE-2026-99749.json · Rebuilt by cve.day 2026-11-25T22:59:52.330Z
