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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **Published:** 2026-06-24T09:59:09.149Z
- **Modified:** 2026-09-14T12:17:42.540Z

## Who should check

- Anyone running Linux \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< ef664475c1bf1a27d45dae6848ca9c9c4d86853f; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 3a9a0a1c38ef90788f5d7c4b29903c8b220f744a; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 3127a884525dc8ca4def73254bfcd3ccef0bf812; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< c5ab11263e3c89aa7989afc5374ef7743e092fd0; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< de9eb0b44fa9123170e6245b49638e0e453c10f8; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< aef151bcfa494bfe983669de2726734b534adb73; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< cc57232cae23c0df91b4a59d0f519141ce9b5b02
- Anyone running Linux 5.15

## Description

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.

## Affected and fixed versions

- Linux: \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< ef664475c1bf1a27d45dae6848ca9c9c4d86853f; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 3a9a0a1c38ef90788f5d7c4b29903c8b220f744a; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 3127a884525dc8ca4def73254bfcd3ccef0bf812; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< c5ab11263e3c89aa7989afc5374ef7743e092fd0; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< de9eb0b44fa9123170e6245b49638e0e453c10f8; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< aef151bcfa494bfe983669de2726734b534adb73; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< cc57232cae23c0df91b4a59d0f519141ce9b5b02 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-52944. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-52944.md
Affected: Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < ef664475c1bf1a27d45dae6848ca9c9c4d86853f; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 3a9a0a1c38ef90788f5d7c4b29903c8b220f744a; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 3127a884525dc8ca4def73254bfcd3ccef0bf812; >= e2f34481b24db2fd634b5ed…
Fixed in: Linux 3a9a0a1c38ef90788f5d7c4b29903c8b220f744a, Linux 3127a884525dc8ca4def73254bfcd3ccef0bf812

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-52944 being exploited?

There is no confirmed exploitation: CVE-2026-52944 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-52944?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-52944?

Linux \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< ef664475c1bf1a27d45dae6848ca9c9c4d86853f; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 3a9a0a1c38ef90788f5d7c4b29903c8b220f744a; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 3127a884525dc8ca4def73254bfcd3ccef0bf812; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< c5ab11263e3c89aa7989afc5374ef7743e092fd0; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< de9eb0b44fa9123170e6245b49638e0e453c10f8; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< aef151bcfa494bfe983669de2726734b534adb73; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< cc57232cae23c0df91b4a59d0f519141ce9b5b02; Linux 5.15.

### Is there a fix for CVE-2026-52944?

Yes. Fixed in Linux 3a9a0a1c38ef90788f5d7c4b29903c8b220f744a, Linux 3127a884525dc8ca4def73254bfcd3ccef0bf812. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-52944?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/3127a884525dc8ca4def73254bfcd3ccef0bf812>
- patch: <https://git.kernel.org/stable/c/de9eb0b44fa9123170e6245b49638e0e453c10f8>
- patch: <https://git.kernel.org/stable/c/aef151bcfa494bfe983669de2726734b534adb73>
- patch: <https://git.kernel.org/stable/c/cc57232cae23c0df91b4a59d0f519141ce9b5b02>
- other: <https://git.kernel.org/stable/c/ef664475c1bf1a27d45dae6848ca9c9c4d86853f>
- other: <https://git.kernel.org/stable/c/3a9a0a1c38ef90788f5d7c4b29903c8b220f744a>
- other: <https://git.kernel.org/stable/c/c5ab11263e3c89aa7989afc5374ef7743e092fd0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-52944>

HTML: <https://flawdb.com/CVE-2026-52944> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-52944>
