Skip to main content

Linux Kernel ksmbd CVE-2026-31444

| EUVDEUVD-2026-24776 CRITICAL
Use After Free (CWE-416)
2026-04-22 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-8vw8-r4jr-vp93
9.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

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

  1. Access
    Connect to ksmbd on TCP/445
  2. Delivery
    Send concurrent SMB oplock requests
  3. Exploit
    Trigger race in smb_grant_oplock()
  4. Execution
    Corrupt kernel memory via use-after-free
  5. Impact
    Execute arbitrary code as root

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Requires ksmbd kernel module to be loaded and actively serving SMB shares. The ksmbd module must be explicitly enabled via configuration (typically /etc/ksmbd/ksmbd.conf or equivalent), as it is NOT a default service in standard Linux distributions. The SMB service must be network-accessible on TCP port 445 (or legacy port 139). The vulnerability is triggered during oplock (opportunistic lock) grant operations, which occur during normal SMB file open requests from clients - no special SMB features or non-default ksmbd configurations are required beyond basic file sharing functionality. Attack vector is network (AV:N) with low complexity (AC:L), requiring no privileges (PR:N) and no user interaction (UI:N), meaning remote unauthenticated exploitation against any ksmbd instance accepting network connections. The race condition requires precise timing between concurrent SMB requests but is achievable through repeated connection attempts. Most general-purpose Linux servers use userspace Samba (smbd) rather than kernel ksmbd, significantly limiting the real-world attack surface to specialized deployments like NAS appliances, embedded file servers, or performance-optimized storage systems.

Impact

CVSS 9.8 with network attack vector, low complexity, and no privileges required indicates critical severity from a metrics perspective. However, real-world risk assessment reveals important nuances. EPSS score of 0.02% (5th percentile) indicates extremely low observed exploitation probability in the wild, suggesting either limited deployment of vulnerable ksmbd instances or low attacker awareness. No CISA KEV listing confirms no known active exploitation campaigns. The vulnerability requires that ksmbd be enabled and actively serving SMB shares, which is NOT a default configuration in most Linux distributions - ksmbd is typically an optional module used in NAS appliances, embedded systems, or specialized file servers rather than general-purpose Linux servers (which more commonly use userspace Samba). Attack complexity is genuinely low once ksmbd is exposed, as the race condition can be triggered remotely through normal SMB protocol operations without authentication. The memory corruption primitives (use-after-free and NULL deref) are potent for exploitation but require precise timing to win the race. SSVC decision framework: exploitation status is None (no public POC identified), automatable is Yes (network protocol, no auth), technical impact is Total (arbitrary code execution in kernel context). Verdict: Critical for organizations running ksmbd-based file servers with network exposure, but lower priority for general Linux server fleets where ksmbd is not deployed. Patch prioritization depends entirely on actual ksmbd deployment status.

Exploit ScenarioDerived

An unauthenticated remote attacker connects to a Linux system running ksmbd SMB server on TCP port 445. The attacker sends specially crafted SMB2 oplock request sequences designed to trigger concurrent oplock grant operations. By timing multiple connection attempts to race the oplock publication code path, the attacker triggers the use-after-free condition where one thread frees an opinfo structure while another thread still holds a reference from ci->m_op_list. The attacker then leverages the freed memory corruption or NULL pointer dereference to achieve arbitrary kernel code execution, gaining root-level control of the target system. No public proof-of-concept exists at time of analysis, but the race condition is reproducible through standard SMB protocol operations.

Act Now Prioritize within 24-48h. Why: CRITICAL 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

Use-after-free and NULL pointer dereference vulnerabilities in Linux kernel's ksmbd SMB server allow remote unauthenticated attackers to achieve arbitrary code execution, information disclosure, or denial of service. The flaws occur during oplock (opportunistic lock) publication when error handling frees memory still referenced by concurrent readers, and when global lease lists are accessed before critical pointers are initialized. With CVSS 9.8 (AV:N/AC:L/PR:N/UI:N), this represents a critical remote attack surface, though EPSS score of 0.02% (5th percentile) suggests minimal observed exploitation activity. Vendor patches are available across affected kernel versions 6.6.130-6.19.9.

RemediationAI

Apply vendor-released patches immediately for systems running ksmbd. Upgrade to Linux kernel 6.19.11 or later (for 6.19.x branch), 6.18.21 or later (for 6.18.x branch), 6.12.80 or later (for 6.12.x branch), or 6.6.131 or later (for 6.6.x LTS branch). Patches are available at git.kernel.org stable repository with specific commit identifiers: 48623ec358c1 (6.19.x), 6d7e5a918c1d (6.18.x), a5c6f6d6ceef (mainline), 7de55bba69cb (6.12.x), and 9e785f004cbc (6.6.x). If immediate patching is not feasible, disable the ksmbd module entirely using 'rmmod ksmbd' and 'echo blacklist ksmbd >> /etc/modprobe.d/blacklist.conf' to prevent autoloading. Alternative workaround: restrict ksmbd network exposure by binding SMB services only to trusted internal networks via firewall rules blocking TCP ports 445 and 139 from untrusted networks. Note that disabling ksmbd will break SMB file sharing functionality - organizations dependent on ksmbd should prioritize emergency patching over workarounds. Switching to userspace Samba (smbd) provides functional equivalence without this vulnerability but requires reconfiguration of share definitions and may have performance implications for high-throughput scenarios where ksmbd's kernel-space implementation was chosen for efficiency.

Affected VersionsENISA

Linux 6.19.9 <6.19.11
Linux 6.18.19 <6.18.21
Linux 1dfd062caa165ec9d7ee0823087930f3ab8a6294 <48623ec358c1c600fa1e38368746f933e0f1a617
Linux ce8507ee82c888126d8e7565e27c016308d24cde <6d7e5a918c1d0aad06db0e17677b66fc9a471021
Linux 6.6.130 <6.6.131
Linux 08aa9f3c8cf4d0bee44df540dfe34e8d64069f2c <7de55bba69cbf0f9280daaea385daf08bc076121
Linux 302fef75512b2c8329a3f5efab1ae7ba2562387a <9e785f004cbc56390479b77375726ea9b0d1a8a6
Linux 6.12.78 <6.12.80
Linux 1d6abf145615dbfe267ce3b0a271f95e3780e18e <a5c6f6d6ceefed2d5210ee420fb75f8362461f46

Affected Packages

euvd linux fix: 6.6.131, 6.12.80, 6.18.21, 6.19.11

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

The ksmbd module is the Linux kernel's in-kernel SMB (Server Message Block) server implementation, providing Windows-compatible file sharing services. This vulnerability affects the oplock (opportunistic locking) mechanism in smb_grant_oplock(), which manages file locking optimizations for SMB clients. The root cause involves race conditions during the publication of opinfo structures to multiple concurrent data structures (ci->m_op_list and global lease lists). The first issue is a classic use-after-free where memory allocation failure in add_lease_global_list() triggers __free_opinfo() on an opinfo already linked into ci->m_op_list, leaving a dangling pointer accessible to concurrent readers like opinfo_get_list() and smb_break_all_levII_oplock(). The second issue is a time-of-check-time-of-use (TOCTOU) NULL pointer dereference where opinfo->o_fp is assigned after the opinfo is published to the global lease list, creating a window where find_same_lease_key() can traverse the list and dereference opinfo->o_fp->f_ci while o_fp is still NULL. The fix restructures the publication sequence to ensure all pointers are initialized and memory is preallocated before any publication, making subsequent operations infallible and eliminating the race windows.

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 (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SUSE CRITICAL

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

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

Lifecycle Timeline

4
CVSS changed
Apr 27, 2026 - 14:22 NVD
9.8 (CRITICAL)
Patch released
Apr 27, 2026 - 14:16 nvd
Patch available
Patch available
Apr 22, 2026 - 16:02 EUVD
CVE Published
Apr 22, 2026 - 14:16 nvd
CRITICAL 9.8

DescriptionCVE.org

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

ksmbd: fix use-after-free and NULL deref in smb_grant_oplock()

smb_grant_oplock() has two issues in the oplock publication sequence:

  1. opinfo is linked into ci->m_op_list (via opinfo_add) before

add_lease_global_list() is called. If add_lease_global_list() fails (kmalloc returns NULL), the error path frees the opinfo via __free_opinfo() while it is still linked in ci->m_op_list. Concurrent m_op_list readers (opinfo_get_list, or direct iteration in smb_break_all_levII_oplock) dereference the freed node.

  1. opinfo->o_fp is assigned after add_lease_global_list() publishes

the opinfo on the global lease list. A concurrent find_same_lease_key() can walk the lease list and dereference opinfo->o_fp->f_ci while o_fp is still NULL.

Fix by restructuring the publication sequence to eliminate post-publish failure:

  • Set opinfo->o_fp before any list publication (fixes NULL deref).
  • Preallocate lease_table via alloc_lease_table() before opinfo_add()

so add_lease_global_list() becomes infallible after publication.

  • Keep the original m_op_list publication order (opinfo_add before

lease list) so concurrent opens via same_client_has_lease() and opinfo_get_list() still see the in-flight grant.

  • Use opinfo_put() instead of __free_opinfo() on err_out so that

the RCU-deferred free path is used.

This also requires splitting add_lease_global_list() to take a preallocated lease_table and changing its return type from int to void, since it can no longer fail.

Executive ViewAI

Why It Matters

CVE-2026-31444 is a critical remote code execution vulnerability in the Linux kernel's ksmbd SMB server that allows unauthenticated network attackers to execute arbitrary code or crash systems without user interaction. Organizations running affected kernel versions (6.6.130-6.19.9) face immediate risk to file servers, NAS appliances, and any systems exposing SMB services to untrusted networks, with no mitigation possible without patching.

Business Impact: Severe
Compensating Controls

Apply vendor patch. Interim mitigation: disable ksmbd kernel module and substitute with alternative SMB implementations (Samba userspace server) if immediate patching is not feasible; restrict SMB network access via firewall rules to trusted subnets only.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL 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
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

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

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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

Vendor StatusVendor

SUSE

Severity: Critical
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

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