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

Status: published. Published: 2026-11-20. Updated: 2026-11-23.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9; < 3c226cbf62b7bf2a36e6da4faa8cb6fbe5f8187a (affected, git); ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9; < 996f257e4bf6d5a5574a3ec10cebe5cf63959e4c (affected, git); ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9; < bbeae2eb4df84a033a2db1b0d7647ed762bd24fa (affected, git); ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9; < f92cd402cc29889be2dbdcbe60ec014c231f2ec6 (affected, git); ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9; < d86cea832d4bffabc51190039ee286a0ab9f3b61 (affected, git); ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9; < ece35b45ec17a462cc5947ad4fbc3450657aa55b (affected, git); ≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9; < 09139429fab3a5114c18d7c15fb161511d4d66c9 (affected, git). Source: CNA: Linux
- Linux / Linux: 5.15 (affected); ≥ 0; < 5.15 (unaffected, semver); ≥ 5.15.226; ≤ 5.15.* (unaffected, semver); ≥ 6.1.193; ≤ 6.1.* (unaffected, semver); ≥ 6.6.163; ≤ 6.6.* (unaffected, semver); ≥ 6.12.119; ≤ 6.12.* (unaffected, semver); ≥ 6.18.65; ≤ 6.18.* (unaffected, semver); ≥ 7.3.5; ≤ 7.3.* (unaffected, semver); ≥ 7.4-rc2; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.16% as of 2026-11-22; percentile 4.72%

- SSVC: Not available

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/3c226cbf62b7bf2a36e6da4faa8cb6fbe5f8187a (CNA: Linux)

- https://git.kernel.org/stable/c/996f257e4bf6d5a5574a3ec10cebe5cf63959e4c (CNA: Linux)

- https://git.kernel.org/stable/c/bbeae2eb4df84a033a2db1b0d7647ed762bd24fa (CNA: Linux)

- https://git.kernel.org/stable/c/f92cd402cc29889be2dbdcbe60ec014c231f2ec6 (CNA: Linux)

- https://git.kernel.org/stable/c/d86cea832d4bffabc51190039ee286a0ab9f3b61 (CNA: Linux)

- https://git.kernel.org/stable/c/ece35b45ec17a462cc5947ad4fbc3450657aa55b (CNA: Linux)

- https://git.kernel.org/stable/c/09139429fab3a5114c18d7c15fb161511d4d66c9 (CNA: Linux)

- https://git.kernel.org/stable/c/09139429fab3a5114c18d7c15fb161511d4d66c9 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/ece35b45ec17a462cc5947ad4fbc3450657aa55b (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2026-99749; retrieved 2026-11-23; source updated 2026-11-23

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-99749; retrieved 2026-11-20; source updated 2026-11-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-99749; retrieved 2026-11-23; source updated Not reported

Revision: c6b0df09cb08ab139ff620b19f5d14d8b5e5f88bd88d7f1bdf12fee4235ed345

Canonical: https://y2.dev/cve/CVE-2026-99749

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.