CVE-2026-52944

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

MEDIUM
5.5
CVSS Score
Published: June 24, 2026 at 09:59 AM UTC
Updated: September 14, 2026 at 12:34 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.1%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15 ≤ v < 5.15.2215.15 ≤ v < 6.1.1885.15 ≤ v < 6.12.1105.15 ≤ v < 6.18.355.15 ≤ v < 6.6.1435.15 ≤ v < 7.0.125.15 ≤ v < 7.16.19 ≤ v < 7.0.126.7 ≤ v < 6.18.357.1 rc17.1 rc27.1 rc37.1 rc47.1 rc5e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9
Vendor states this is fixed in 3127a884525dc8ca4def73254bfcd3ccef0bf812 (fixed)
Vendor states this is fixed in 3a9a0a1c38ef90788f5d7c4b29903c8b220f744a (fixed)
Vendor states this is fixed in aef151bcfa494bfe983669de2726734b534adb73 (fixed)
Vendor states this is fixed in c5ab11263e3c89aa7989afc5374ef7743e092fd0 (fixed)
Vendor states this is fixed in cc57232cae23c0df91b4a59d0f519141ce9b5b02 (fixed)
Vendor states this is fixed in de9eb0b44fa9123170e6245b49638e0e453c10f8 (fixed)
Vendor states this is fixed in ef664475c1bf1a27d45dae6848ca9c9c4d86853f (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.15.221 (unaffected)
Vendor states this is fixed in 6.1.188 (unaffected)
Vendor states this is fixed in 6.12.110 (unaffected)
Vendor states this is fixed in 6.18.35 (unaffected)
Vendor states this is fixed in 6.6.143 (unaffected)
Vendor states this is fixed in 7.0.12 (unaffected)
Vendor states this is fixed in 7.1 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card