Skip to main content

Linux Kernel ksmbd EUVDEUVD-2026-45512

| CVE-2026-53390 HIGH
Out-of-bounds Read (CWE-125)
2026-07-19 Linux GHSA-xg8q-rr62-82pp
8.1
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to ksmbd share with ACL xattrs
  2. Delivery
    Craft ACE size==16, num_subauth>=1, matching SID
  3. Exploit
    Store descriptor via SMB2_SET_INFO to security.NTACL
  4. Execution
    Issue SMB2_CREATE to trigger DACL check
  5. Persist
    compare_sids() reads past heap allocation
  6. Impact
    Kernel memory leak or oops

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated SMB client (CVSS PR:L) with the ability to write a security descriptor - i.e., SMB2_SET_INFO access to a file on a ksmbd share that is configured to use ACL xattrs (the security.NTACL xattr path). The specific trigger is a crafted ACE with size == 16 and num_subauth >= 1 positioned at the tail of the security descriptor, whose revision/authority bytes are set to match one of the kernel's local comparison SIDs (sid_everyone, sid_unix_NFS_mode, or the id_to_sid() result); the OOB read then fires on a subsequent SMB2_CREATE access check. Limiting factors: the server must run the ksmbd kernel module (not userspace Samba) AND have ACL-xattr shares enabled (a non-default configuration), and the attacker must already hold valid credentials with descriptor-write access - so this is not exploitable against default or non-ksmbd SMB deployments.

Impact

The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H, base 8.1) rates confidentiality and availability high, but multiple signals argue for a more measured priority. EPSS is only 0.17% (7th percentile), it is NOT on CISA KEV, and no POC is referenced - so no active exploitation or public exploit is indicated. The bug requires an authenticated client (PR:L) AND a server configured to use ACL xattrs, a non-default deployment condition the raw CVSS does not capture. The out-of-bounds data is consumed internally by compare_sids() for an access decision rather than returned to the client, so real confidentiality impact is arguably lower than C:H; the more reliable impact is availability (kernel oops/panic, especially under KASAN), matching A:H. Net: a genuine memory-safety defect worth patching promptly on any ksmbd deployment exposing ACL-backed shares, but not an emergency for the typical environment that runs Samba or does not enable ksmbd at all.

Exploit ScenarioDerived

An authenticated user with write access to a ksmbd share that uses ACL xattrs stores a crafted security descriptor via SMB2_SET_INFO containing a malformed ACE (size == 16 with num_subauth >= 1) placed at the tail of the descriptor, which ksmbd writes verbatim to the security.NTACL xattr without normalization. On a later SMB2_CREATE access check, smb_check_perm_dacl() walks the DACL and compare_sids() reads past the exactly-sized heap allocation, leaking adjacent kernel heap bytes into the comparison or crashing the server. No public POC is referenced, but the low complexity (AC:L) makes reliable triggering plausible once the malformed xattr is planted.

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 – Jul 20, 2026

Heap out-of-bounds read in the Linux kernel's in-kernel SMB server (ksmbd) lets an authenticated SMB client leak kernel heap memory or crash the server on shares that use ACL xattrs. The flaw lives in smb_check_perm_dacl(), which validates an ACE header and caps sub-authority count but never confirms the ACE is large enough to hold those sub-authorities before compare_sids() dereferences them. There is no public exploit identified at time of analysis, and EPSS is low (0.17%, 7th percentile), consistent with a memory-disclosure/DoS bug rather than a mass-exploited RCE.

RemediationAI

Vendor-released patch: upgrade to the fixed stable kernel for your series - 6.1.177, 6.6.144, 6.12.95, 6.18.38, 7.1.3, or 7.2-rc1 (or later), which add the missing num_subauth-versus-ace_size bounds check in smb_check_perm_dacl(). The stable commits are at https://git.kernel.org/stable/c/988c93d3bba066d8669143e6ec30bb2be9608d53 and its siblings listed in the advisory. If you cannot patch immediately, the most effective compensating control is to stop using ksmbd where feasible - unload/disable the ksmbd module and serve SMB via userspace Samba instead, which removes the vulnerable code path entirely (trade-off: operational change and possible performance difference). Where ksmbd must stay, avoid or disable ACL-xattr-backed shares so security.NTACL descriptors are not parsed on access checks (trade-off: loses Windows-style ACL semantics), and restrict share access to trusted authenticated users while blocking SMB ports (139/445) from untrusted networks to shrink the reachable population.

Affected VersionsENISA

Linux 6.12.84 <6.12.95
Linux 151b1799861fde38087c08f613abc2843ef597b0
Linux 6.6.140 <6.6.144
Linux patch: 6.1.177
Linux patch: 6.18.38
Linux 90089584b2e25c4510b7b987387b4405f0673ece <7627ff8c4f9919f14de562b0160ab4ec9d80b1f7
Linux d07b26f39246a82399661936dd0c853983cfade7 <e36e35660adb9b8ef1435ac359151dda5f094c55
Linux patch: 6.12.95
Linux patch: 7.1.3
Linux 95e5aa3c3261da8c95b27d7aecf8ee39b9f86a4c <d5c81a095c86fe507c032d08f3a8cfc518444927
Linux f20adc4ef7428bc485ee83fd1a592252fb87718b <988c93d3bba066d8669143e6ec30bb2be9608d53
Linux 325d4ac11f526cb8964cff14548ccf02d8c756d8 <36599894fa8536fefdf1e296c0af71b8b7226859
Linux d07b26f39246a82399661936dd0c853983cfade7 <1ef06004ed4bd6d3ed8c840d9d1a376b66d4935b
Linux 6.18.25 <6.18.38
Linux 282cbbb476b9f35793452bc461934af4c7eca169
Linux 7.0.2 <7.1
Linux 6.1.176 <6.1.177
Linux patch: 0
Linux 7.1
Linux 5.15.210 <5.16
Linux patch: 7.2-rc1
Linux patch: 6.6.144

Affected Packages

euvd linux fix: 5.16, 6.1.177, 6.6.144, 6.12.95, 6.18.38, 7.1

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 kernel-space CIFS/SMB3 server merged into mainline Linux, an alternative to userspace Samba. Windows-style security descriptors are stored per-file in the security.NTACL xattr and decoded by ndr_decode_v4_ntacl() into a buffer sized exactly to the on-disk data via kzalloc(sd_size). The DACL walk in smb_check_perm_dacl() checks the ACE header size and clamps sid.num_subauth to SID_MAX_SUB_AUTHORITIES, but CIFS_SID_BASE_SIZE only covers the 8-byte SID base (zero sub-authorities). compare_sids() then reads ace->sid.sub_auth[i] up to min(local_sid->num_subauth, ace->sid.num_subauth); because the local comparison SIDs (sid_everyone, sid_unix_NFS_mode, id_to_sid() result) always carry at least one sub-authority and the attacker controls the in-bounds revision/authority bytes to force a SID match, the loop reads past the allocation. This is a classic CWE-125 out-of-bounds read (the input lists CWE as N/A and tags it 'Buffer Overflow'); the fix adds the missing num_subauth-versus-ace_size guard already present in the sibling parsers parse_dacl() and smb_inherit_dacl().

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.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
vuln.today AI 7.1 HIGH

Authenticated remote client (PR:L) on ksmbd ACL shares; OOB bytes only feed an internal SID compare so C:L, no integrity impact, kernel crash gives A:H.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:H/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
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Jul 20, 2026 - 15:22 NVD
8.1 (HIGH)
Patch available
Jul 19, 2026 - 14:17 EUVD
CVE Published
Jul 19, 2026 - 12:01 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 19, 2026 - 12:01 cve.org
HIGH 8.1

DescriptionCVE.org

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

ksmbd: fix out-of-bounds read in smb_check_perm_dacl()

The permission-check ACE walk in smb_check_perm_dacl() validates the ACE header size and caps sid.num_subauth at SID_MAX_SUB_AUTHORITIES, but it never checks that ace->size is actually large enough to contain num_subauth sub-authorities before compare_sids() dereferences them.

CIFS_SID_BASE_SIZE covers the SID header up to but excluding the sub_auth[] array, and offsetof(struct smb_ace, sid) is the ACE header, so the existing guards only guarantee the 8-byte SID base, i.e. zero sub-authorities. compare_sids() then reads ace->sid.sub_auth[i] for i < min(local_sid->num_subauth, ace->sid.num_subauth). The local comparison SIDs (sid_everyone, sid_unix_NFS_mode, and the id_to_sid() result) always have at least one sub-authority, and an attacker controls the ACE revision and authority bytes (which lie within the in-bounds SID base), so they can match one of those SIDs and force the sub_auth read.

A crafted ACE with size == 16 and num_subauth >= 1 placed at the tail of the security descriptor therefore causes a heap out-of-bounds read of up to SID_MAX_SUB_AUTHORITIES * sizeof(__le32) bytes past the pntsd allocation. The security descriptor is loaded by ksmbd_vfs_get_sd_xattr() into a buffer sized exactly to the on-disk data (kzalloc(sd_size) in ndr_decode_v4_ntacl()), so the read lands past the allocation. The malformed descriptor can be stored verbatim via SMB2_SET_INFO (the DACL is not normalised before being written to the security.NTACL xattr) and the read fires on a subsequent SMB2_CREATE access check, making this reachable by an authenticated client on a share that uses ACL xattrs.

Add the missing num_subauth-versus-ace_size check, mirroring the identical guards already present in the sibling parsers parse_dacl() and smb_inherit_dacl().

Executive ViewAI

Why It Matters

The Linux kernel's in-kernel SMB server (ksmbd) contains a heap memory access vulnerability (CVE-2026-53390, CVSS 8.1) that allows authenticated clients to leak kernel memory or crash the server. Organizations using ksmbd for file sharing face potential disclosure of sensitive kernel data and service availability loss, though the extremely low exploitation probability (EPSS 0.2%) limits immediate risk.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Medium
ksmbd ships in mainline kernel but is optional and less deployed than userspace Samba
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

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

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

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