# CVE-2026-52944: ksmbd: fix FSCTL permission bypass by adding a permission check for FSCTL\_SET\_SPARSE

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-24 · Modified: 2026-09-14
- Aliases: UBUNTU-CVE-2026-52944, DEBIAN-CVE-2026-52944, CGA-67qg-c3w7-c9mc, CGA-82mr-qh4v-qr2x, CGA-9gcv-6fq7-q462, CGA-hpgf-rgr4-89gm, CGA-pxqc-pvq3-c8wh
- Record: https://cvemate.com/vulnerability/CVE-2026-52944 · JSON: https://cvemate.com/vulnerability/CVE-2026-52944/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix FSCTL permission bypass by adding a permission check for FSCTL_SET_SPARSE

FSCTL_SET_SPARSE in fsctl_set_sparse() modifies the file's sparse
attribute and saves it through xattr without any permission checks.

This exposes two issues:

1) A client on a read-only share can change the sparse attribute
   on files it opened, even though the share is read-only.
   Other FSCTL write operations already check
   test_tree_conn_flag(work->tcon, KSMBD_TREE_CONN_FLAG_WRITABLE),
   but FSCTL_SET_SPARSE does not.

2) Even on writable shares, clients without FILE_WRITE_DATA or
   FILE_WRITE_ATTRIBUTES access should not modify the sparse
   attribute. Similar handle-level checks exist in other functions
   but are missing here.

Add both share-level writable check and per-handle access check.
Use goto out on error to avoid leaking file references.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.122%, percentile 2.12%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 165)

- chainguard linux-aws-6.12 (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.12 (Chainguard): All versions (No fix recorded)
- chainguard linux-gcp-6.12 (Chainguard): All versions (No fix recorded)
- chainguard linux-qemu-6.12 (Chainguard): All versions (No fix recorded)
- chainguard linux-vmware-6.12 (Chainguard): All versions (No fix recorded)
- debian linux (Debian): All versions (No fix recorded) \| \< 6.1.190-1 \| \< 6.12.111-1 \| \< 7.0.12-1
- debian linux-6.12 (Debian): \< 6.12.111-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-202.212 \| \< 6.8.0-146.146 \| \< 7.0.0-28.28
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1119.126 \| \< 6.8.0-1066.69 \| \< 7.0.0-1009.9
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1119.126~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 35)

- <https://git.kernel.org/stable/c/ef664475c1bf1a27d45dae6848ca9c9c4d86853f>
- <https://git.kernel.org/stable/c/3a9a0a1c38ef90788f5d7c4b29903c8b220f744a>
- <https://git.kernel.org/stable/c/3127a884525dc8ca4def73254bfcd3ccef0bf812>
- <https://git.kernel.org/stable/c/c5ab11263e3c89aa7989afc5374ef7743e092fd0>
- <https://git.kernel.org/stable/c/de9eb0b44fa9123170e6245b49638e0e453c10f8>
- <https://git.kernel.org/stable/c/aef151bcfa494bfe983669de2726734b534adb73>
- <https://git.kernel.org/stable/c/cc57232cae23c0df91b4a59d0f519141ce9b5b02>
- <https://ubuntu.com/security/CVE-2026-52944>
- <https://www.cve.org/CVERecord?id=CVE-2026-52944>
- <https://git.kernel.org/linus/cc57232cae23c0df91b4a59d0f519141ce9b5b02>
- <https://ubuntu.com/security/notices/USN-8566-1>
- <https://ubuntu.com/security/notices/USN-8568-1>
- <https://ubuntu.com/security/notices/USN-8569-1>
- <https://ubuntu.com/security/notices/USN-8593-1>
- <https://ubuntu.com/security/notices/USN-8603-1>
- <https://ubuntu.com/security/notices/USN-8618-1>
- <https://ubuntu.com/security/notices/USN-8663-1>
- <https://ubuntu.com/security/notices/USN-8664-1>
- <https://ubuntu.com/security/notices/USN-8728-1>
- <https://ubuntu.com/security/notices/USN-8728-2>

---

Data as of 2026-12-05T04:44:31.982Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
