Skip to main content

Linux ksmbd EUVDEUVD-2026-48938

| CVE-2026-64394 HIGH
2026-07-25 Linux GHSA-hj5q-pp4q-jpfg
8.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain valid SMB credentials (any privilege)
  2. Delivery
    Connect to ksmbd server over TCP/445
  3. Exploit
    Open file handle with FILE_WRITE_ATTRIBUTES only
  4. Install
    Send SMB2 SET_INFO InfoType=SMB2_O_INFO_SECURITY with crafted DACL
  5. C2
    ksmbd invokes set_info_sec() without fp->daccess check
  6. Execute
    DACL/owner rewritten granting attacker GENERIC_ALL
  7. Impact
    Re-open file with full access

Vulnerability Assessment

Exploitation Conditions

Requires an active ksmbd in-kernel SMB server (Linux 5.15+, module loaded, share configured and accessible); ksmbd is not enabled by default in most distributions and must be explicitly started. The attacker must hold valid SMB credentials at any privilege level (PR:L - even a guest or restricted account suffices if it can open file handles on the share). The target file must reside within a ksmbd-served share the attacker's session can access. On shares with KSMBD_SHARE_FLAG_ACL_XATTR set, the Windows security descriptor xattr is also rewritable, expanding impact. Exploitation is limited to the ksmbd code path - standard Samba (smbd) and Windows Server SMB implementations are entirely unaffected. The missing gate (fp->daccess check for WRITE_DAC/WRITE_OWNER) is the sole control; there is no VFS-layer backstop because set_info_sec() operates on metadata, not file data.

Impact

The provided CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (8.8) is mostly sound but the A:H component is overstated. The vulnerability enables privilege escalation through DACL rewrite - a client grants itself broader file access - but the description contains no mechanism for availability impact. The corrected assessment removes A (yielding 8.1). PR:L is accurate: any valid SMB credential (low-privilege) suffices, and AC:L is correct since no special conditions beyond authenticated server access are required. EPSS at 0.22% (13th percentile) signals low automated exploitation probability, consistent with the requirement for prior authentication and targeted share access. No KEV listing and no public exploit code exist at time of analysis. Despite the low EPSS, the capability to silently escalate permissions on arbitrary files within a ksmbd share - bypassing the entire handle-level access model - makes this a meaningful post-authentication privilege escalation for any attacker already holding valid SMB credentials. Systems with KSMBD_SHARE_FLAG_ACL_XATTR enabled face a broader impact as the full Windows security descriptor is also rewritable.

Exploit ScenarioDerived

An attacker with any valid SMB account on a ksmbd server opens a handle to a target file requesting only FILE_WRITE_ATTRIBUTES rights - a permission commonly granted to non-administrative users - then issues an SMB2 SET_INFO packet with InfoType SMB2_O_INFO_SECURITY carrying a crafted DACL that grants the attacker's SID GENERIC_ALL. Because smb2_set_info_sec() performs no fp->daccess check, set_info_sec() rewrites the file's ACL and owner unconditionally. The attacker then re-opens the file with GENERIC_ALL, gaining full read/write access to a file they were previously restricted from. No public exploit code exists, but the attack requires only basic SMB protocol knowledge and is straightforward to implement.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 16, 2026

Authorization bypass in the Linux kernel's ksmbd in-kernel SMB server allows an authenticated network client to rewrite any accessible file's security descriptor - including DACL and owner - without holding WRITE_DAC or WRITE_OWNER rights on the file handle. A client opening a handle with only FILE_WRITE_ATTRIBUTES can issue SMB2 SET_INFO with InfoType SMB2_O_INFO_SECURITY to invoke set_info_sec(), which rewrites POSIX ACLs, ownership via notify_change(), and (on KSMBD_SHARE_FLAG_ACL_XATTR shares) the Windows SD xattr, all without any fp->daccess gate. No public exploit has been identified; EPSS is 0.22%, and patches are confirmed in kernel stable series 6.1.178, 6.6.145, 6.12.96, 6.18.39, 7.1.4, and 7.2-rc1.

RemediationAI

Upgrade to a patched Linux kernel: stable series 6.1.178, 6.6.145, 6.12.96, 6.18.39, 7.1.4, or later. Upstream fixes are available at git.kernel.org stable commits 0848b1d8b403, e6aa731f1b4b, 9ab2ffd3ed3d, f56535db508e, aae600cdaffc, and 44df157a1183. Ubuntu users should apply updates per USN-8726-1 and USN-8727-1. Where immediate patching is not feasible, three compensating controls are available with trade-offs: (1) Firewall TCP/445 to restrict ksmbd access to trusted hosts or VLANs - disrupts all SMB access from untrusted segments; (2) Unload the ksmbd module via 'rmmod ksmbd' if the SMB server is not required - fully eliminates the attack surface but stops all ksmbd-based file sharing; (3) Remove KSMBD_SHARE_FLAG_ACL_XATTR from share configurations to eliminate the Windows SD xattr rewrite path - mitigates the xattr vector but does not prevent POSIX ACL and ownership rewrite, and reduces SMB ACL fidelity for Windows clients.

Affected VersionsENISA

Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <0848b1d8b403f530878195dcbe241a2fddb9d0e1
Linux 0 <6.6.145
Linux 0 <6.1.178
Linux 0 <7.1.4
Linux patch: 6.18.39
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <9ab2ffd3ed3d4ca1667c52de27026ddabc11e537
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <f56535db508ead8dec1c481ad93d7d8acd8f8f1e
Linux patch: 6.1.178
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <aae600cdaffc6d9ce97645f129799a103a97d06d
Linux patch: 6.6.145
Linux 0 <6.12.96
Linux patch: 6.12.96
Linux patch: 7.1.4
Linux patch: 7.2-rc1
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <e6aa731f1b4b3e08caebf66a99f04b22bdab2e99
Linux 0 <6.18.39
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <44df157a1183a7f746caa970c169255da5ac61f8

Affected Packages

euvd linux fix: 6.1.178, 6.6.145, 6.12.96, 6.18.39, 7.1.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ksmbd is the in-kernel SMB2/SMB3 server merged into Linux 5.15 (originally developed by Samsung), distinct from userspace Samba. The vulnerable function smb2_set_info_sec() in fs/smb/server/smb2pdu.c dispatches the SMB2 SET_INFO InfoType=SMB2_O_INFO_SECURITY path to set_info_sec() in fs/smb/server/smbacl.c. That function performs three persistent mutations: it calls notify_change() to rewrite owner/group/mode, set_posix_acl() to rewrite the POSIX ACL, and ksmbd_vfs_set_sd_xattr() to overwrite the Windows security descriptor xattr. Every other mutation arm in the sibling smb2_set_info_file() handler (FILE_WRITE_DATA, FILE_DELETE, FILE_WRITE_EA, FILE_WRITE_ATTRIBUTES) gates on fp->daccess first; the SECURITY arm - uniquely the most privilege-sensitive - has no such check. There is no FMODE_WRITE VFS backstop because this is a metadata/xattr operation. The root cause is a missing authorization check equivalent to CWE-862 (Missing Authorization); NVD lists CWE as N/A, which understates the issue. CPE cpe:2.3:a:linux:linux applies to all affected kernel series.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Linux) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.1 HIGH

Authenticated network SMB access (PR:L/AV:N/AC:L); privilege escalation via DACL rewrite gives C:H/I:H but no availability impact is described.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE HIGH

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
CVSS changed
Jul 27, 2026 - 05:22 NVD
8.8 (HIGH)
Patch available
Jul 25, 2026 - 11:18 EUVD
CVE Published
Jul 25, 2026 - 08:50 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 25, 2026 - 08:50 cve.org
HIGH 8.8

DescriptionCVE.org

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

ksmbd: add a WRITE_DAC/WRITE_OWNER check to SMB2 SET_INFO SECURITY

commit cc57232cae23 ("ksmbd: fix FSCTL permission bypass by adding a permission check for FSCTL_SET_SPARSE") added a fp->daccess gate to fsctl_set_sparse and noted that "similar handle-level checks exist in other functions but are missing here." The SMB2 SET_INFO SECURITY arm is one of the missing ones, and the most security-relevant: smb2_set_info_sec() calls set_info_sec() with no per-handle access check.

set_info_sec() (fs/smb/server/smbacl.c) re-permissions the file: it rewrites owner/group/mode via notify_change(), rewrites the POSIX ACL via set_posix_acl(), and on KSMBD_SHARE_FLAG_ACL_XATTR shares removes and rewrites the Windows security descriptor via ksmbd_vfs_set_sd_xattr(). Every other persistent-mutation arm of the sibling handler smb2_set_info_file() checks fp->daccess first (FILE_WRITE_DATA / FILE_DELETE / FILE_WRITE_EA / FILE_WRITE_ATTRIBUTES); the SECURITY arm - which mutates the access control itself - is the only one with no gate.

A client can therefore open a handle with FILE_WRITE_ATTRIBUTES only (no FILE_WRITE_DAC / FILE_WRITE_OWNER) and use SMB2_SET_INFO with InfoType SMB2_O_INFO_SECURITY to rewrite the file's DACL and owner, granting itself access the handle's daccess never carried. Unlike the FSCTL data arms this is a metadata/xattr operation, so there is no FMODE_WRITE VFS backstop - the missing fp->daccess check is the entire gate.

Setting a security descriptor is the WRITE_DAC / WRITE_OWNER operation, so require at least one of those on the handle before re-permissioning the file. -EACCES is mapped to STATUS_ACCESS_DENIED by smb2_set_info().

Executive ViewAI

Why It Matters

Linux systems running ksmbd (the Linux kernel's in-kernel SMB server) are vulnerable to unauthorized modification of file ownership and access permissions by authenticated network clients. This privilege escalation vulnerability allows attackers to bypass intended access controls on shared files, creating risk of data compromise and unauthorized access without requiring administrative rights.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Low
niche in-kernel SMB server; Samba dominates enterprise Linux SMB
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 16.0 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy