{"id":81005,"date":"2026-06-24T13:29:09","date_gmt":"2026-06-24T09:59:09","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-52944-ksmbd-fix-fsctl-permission-bypass-by-adding-a-permission-check-for-fsctl_set_sparse\/"},"modified":"2026-06-24T13:29:09","modified_gmt":"2026-06-24T09:59:09","slug":"cve-2026-52944-ksmbd-fix-fsctl-permission-bypass-by-adding-a-permission-check-for-fsctl_set_sparse","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-52944-ksmbd-fix-fsctl-permission-bypass-by-adding-a-permission-check-for-fsctl_set_sparse\/","title":{"rendered":"CVE-2026-52944 &#8211; ksmbd: fix FSCTL permission bypass by adding a permission check for FSCTL_SET_SPARSE"},"content":{"rendered":"<p>CVE ID :CVE-2026-52944<\/p>\n<p>  Published : June 24, 2026, 9:59 a.m. | 1\u00a0hour, 45\u00a0minutes ago<\/p>\n<p>  Description :In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>ksmbd: fix FSCTL permission bypass by adding a permission check for FSCTL_SET_SPARSE<\/p>\n<p>FSCTL_SET_SPARSE in fsctl_set_sparse() modifies the file&#8217;s sparse<br \/>\nattribute and saves it through xattr without any permission checks.<\/p>\n<p>This exposes two issues:<\/p>\n<p>1) A client on a read-only share can change the sparse attribute<br \/>\n   on files it opened, even though the share is read-only.<br \/>\n   Other FSCTL write operations already check<br \/>\n   test_tree_conn_flag(work-&gt;tcon, KSMBD_TREE_CONN_FLAG_WRITABLE),<br \/>\n   but FSCTL_SET_SPARSE does not.<\/p>\n<p>2) Even on writable shares, clients without FILE_WRITE_DATA or<br \/>\n   FILE_WRITE_ATTRIBUTES access should not modify the sparse<br \/>\n   attribute. Similar handle-level checks exist in other functions<br \/>\n   but are missing here.<\/p>\n<p>Add both share-level writable check and per-handle access check.<br \/>\nUse goto out on error to avoid leaking file references.<\/p>\n<p>  Severity: 0.0 | NA<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-52944 Published : June 24, 2026, 9:59 a.m. | 1\u00a0hour, 45\u00a0minutes ago 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&#8217;s sparse attribute and saves it through xattr without any permission checks. This &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-81005","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=81005"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81005\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=81005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=81005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=81005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}