Skip to main content

Linux Kernel ksmbd EUVDEUVD-2026-25504

| CVE-2026-31611 HIGH
2026-04-24 Linux GHSA-5q38-6rwh-6r7q
8.6
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Access
    Identify Linux target with ksmbd enabled
  2. Delivery
    Craft SMB request with malicious ACE SID
  3. Exploit
    Send request to TCP 445
  4. Execution
    Trigger parse_dacl() OOB read
  5. Impact
    Apply arbitrary permission bits to target file

Vulnerability Assessment

Exploitation Conditions

Requires the target Linux system to have the ksmbd kernel module loaded and actively serving SMB file shares, which is NOT a default configuration in most Linux distributions (Samba userspace implementation is far more common). The attacker must be able to send SMB traffic to the ksmbd service over the network (typically TCP port 445). The malicious ACE must be crafted with exactly 2 sub-authorities matching the NFS mode SID prefix (S-1-5-88-3) and positioned at the end of the security descriptor such that sub_auth[2] falls 4 bytes past end_of_acl. Exploitation does NOT require authentication to the SMB server, user interaction, or specific file system configurations beyond ksmbd being enabled. The primary limiting factor is ksmbd deployment prevalence: most production Linux file servers use the mature userspace Samba implementation rather than the newer in-kernel ksmbd, significantly reducing real-world attack surface despite the CVSS network vector score.

Impact

CVSS 8.6 (High) reflects network attack vector with no authentication or user interaction required (AV:N/AC:L/PR:N/UI:N), but actual real-world risk is substantially lower based on multi-signal analysis. EPSS score of 0.02% (5th percentile) indicates security researchers assess practical exploitation probability as very low - likely due to the narrow attack surface (ksmbd must be enabled and exposed, which is uncommon in production Linux deployments) and the limited impact (file permission manipulation rather than code execution). No CISA KEV listing confirms this is not being exploited in the wild. The High availability impact (A:H) in the CVSS vector appears misaligned with the description, which details permission manipulation (an integrity issue) rather than denial of service - this suggests CVSS scoring may have been conservative or automated. SSVC framework would likely classify this as 'scheduled' remediation priority: exploitation status is 'none', technical impact is 'partial' (file permission control only), and automatability is 'yes' (network-facing parser bug). The primary risk is to systems explicitly running ksmbd as an SMB file server, which represents a small subset of Linux deployments. Defense priority should focus on patch deployment timelines for systems actually running ksmbd rather than emergency response.

Exploit ScenarioDerived

An unauthenticated attacker on the network sends a crafted SMB request to a Linux server running ksmbd, including a security descriptor with a malicious ACE positioned at the end of the ACL. The ACE contains a SID with prefix matching S-1-5-88-3 (NFS mode SID) but only 2 sub-authorities instead of the required 3. The ksmbd parse_dacl() function's compare_sids() validates the SID prefix successfully due to comparing only min(2,2) sub-authorities, then unconditionally reads sub_auth[2], accessing 4 bytes beyond the ACL buffer. These out-of-bounds bytes from adjacent kernel memory are masked to 9 bits and applied as POSIX file permissions, potentially granting the attacker write access to files that should be read-only or exposing sensitive files by removing permission restrictions. No public exploit code exists, but attack complexity is low given the network vector and lack of authentication requirements.

Act Now Prioritize within 24-48h. Why: Active threat signals + CRITICAL/HIGH severity.
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 27, 2026

Out-of-bounds read in Linux kernel's ksmbd SMB server allows remote unauthenticated attackers to manipulate file permissions by crafting malicious ACE SIDs with insufficient sub-authorities, triggering parse_dacl() to read 4 bytes past the ACL buffer boundary and apply those arbitrary bytes as POSIX file mode bits. EPSS exploitation probability is very low (0.02%, 5th percentile) with no public exploit identified at time of analysis. Vendor-released patches available across stable kernel branches (6.12.83, 6.18.24, 6.19.14, 7.0.1).

RemediationAI

Upgrade to patched Linux kernel stable releases: 6.12.83, 6.18.24, 6.19.14, or 7.0.1 depending on your kernel branch. Patch commit references available at https://git.kernel.org/stable/c/08f9e6d899b5c834bbcc239eae1bed58d9b15d2c (6.12 branch), https://git.kernel.org/stable/c/d2454f4a002d08560a60f214f392e6491cf11560 (6.18 branch), https://git.kernel.org/stable/c/46bbcd3ebfb3549c8da1838fc4493e79bd3241e7 (6.19 branch), and https://git.kernel.org/stable/c/9401f86a224f37b50e6a3ccf1d46a70d5ef8af0a (7.0 branch). If immediate patching is not feasible, disable the ksmbd kernel module with 'rmmod ksmbd' and add 'blacklist ksmbd' to /etc/modprobe.d/blacklist.conf to prevent automatic loading - this eliminates attack surface entirely but removes SMB server functionality, requiring migration to userspace Samba if SMB file sharing is needed (operational impact includes potential performance differences and configuration migration effort). Restrict network access to SMB ports (TCP 445, 139) using firewall rules if ksmbd must remain enabled during patch deployment window, though this only reduces exposure to trusted networks rather than eliminating the vulnerability. Verify ksmbd is actually running with 'lsmod | grep ksmbd' before applying mitigations, as most Linux systems do not enable ksmbd by default.

Affected VersionsENISA

Linux patch: 6.12.83
Linux patch: 7.0.1
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <d2454f4a002d08560a60f214f392e6491cf11560
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <46bbcd3ebfb3549c8da1838fc4493e79bd3241e7
Linux patch: 6.19.14
Linux patch: 6.18.24
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <9401f86a224f37b50e6a3ccf1d46a70d5ef8af0a
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <08f9e6d899b5c834bbcc239eae1bed58d9b15d2c

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

The vulnerability affects ksmbd, the in-kernel SMB server implementation introduced in Linux 5.15. The parse_dacl() function processes Windows-style Access Control Entries (ACEs) in SMB file security descriptors and performs special handling for NFS mode SIDs (prefix S-1-5-88-3). The compare_sids() function uses min(num_subauth, expected_count) when comparing SID sub-authorities, creating a type confusion: a client can send a SID with only 2 sub-authorities matching the NFS mode prefix, pass validation, but then have parse_dacl() unconditionally read sub_auth[2] - an index that doesn't exist in the client-controlled data. When this crafted ACE is positioned at the end of the security descriptor, sub_auth[2] reads 4 bytes beyond end_of_acl into adjacent kernel memory. These out-of-bounds bytes are then masked to 9 bits and applied as the file's POSIX permission mode (rwxrwxrwx), allowing attackers to set arbitrary permissions based on whatever happens to be in kernel memory at that offset. This combines improper input validation (CWE-20 class) with an out-of-bounds read (CWE-125 class). The affected CPE strings indicate the vulnerability spans a wide range of kernel versions from the initial ksmbd commit (1da177e4c3f4) through early 2026 stable releases.

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.6 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
SUSE HIGH

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

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

Lifecycle Timeline

4
Patch released
Apr 29, 2026 - 16:56 nvd
Patch available
CVSS changed
Apr 27, 2026 - 15:22 NVD
8.6 (HIGH)
Patch available
Apr 24, 2026 - 16:16 EUVD
CVE Published
Apr 24, 2026 - 14:42 nvd
HIGH 8.6

DescriptionCVE.org

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

ksmbd: require 3 sub-authorities before reading sub_auth[2]

parse_dacl() compares each ACE SID against sid_unix_NFS_mode and on match reads sid.sub_auth[2] as the file mode. If sid_unix_NFS_mode is the prefix S-1-5-88-3 with num_subauth = 2 then compare_sids() compares only min(num_subauth, 2) sub-authorities so a client SID with num_subauth = 2 and sub_auth = {88, 3} will match.

If num_subauth = 2 and the ACE is placed at the very end of the security descriptor, sub_auth[2] will be 4 bytes past end_of_acl. The out-of-band bytes will then be masked to the low 9 bits and applied as the file's POSIX mode, probably not something that is good to have happen.

Fix this up by forcing the SID to actually carry a third sub-authority before reading it at all.

Executive ViewAI

Why It Matters

CVE-2026-31611 is a high-severity out-of-bounds read vulnerability in Linux kernel's ksmbd SMB server that allows unauthenticated remote attackers to corrupt file permissions through malformed ACL structures, potentially compromising data integrity and access controls on affected systems. Organizations running Linux servers with ksmbd enabled should prioritize patching to prevent unauthorized file permission modifications that could facilitate data breaches or lateral movement.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not feasible, restrict SMB/ksmbd access via network segmentation (firewall rules limiting port 445 to trusted clients only) and disable ksmbd if not operationally required using modprobe -r ksmbd. Monitor SMB connections and file permission anomalies using auditd or similar kernel auditing mechanisms.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Threat Intel
1
1 source
Data Quality
7 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.0%
Patch available Yes
Active threat Yes
Deciding rule
Active threat signals + CRITICAL/HIGH severity
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
Yes
Human Impact
High

Priority Score

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

Attack Technique

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

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

Threat IntelligenceMISP

CISA Advisories
Sources: CISA (public domain)

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