Skip to main content

Ubuntu EUVDEUVD-2026-18659

| CVE-2026-23427 CRITICAL
Use After Free (CWE-416)
2026-04-03 Linux
9.8
CVSS 3.1 · NVD
View

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.

Impact

This is a kernel-level use-after-free with direct impact to system stability and integrity. The CVSS score is not provided in the input data; however, kernel use-after-free vulnerabilities in network-facing services typically carry critical severity due to remote reachability and potential for code execution or denial of service. The KASAN report provides concrete evidence of exploitation via kernel crash (information disclosure leakage through KASAN output), confirming technical feasibility. The attack vector is network-based (SMB2 protocol), requires no authentication beyond SMB connection establishment, and exploits race conditions in concurrent connection handling-likely automatable. While no CVSS vector or EPSS score is available for direct comparison, the kernel-level nature, remote attack vector, and demonstrated KASAN crash confirm real-world priority. This is NOT a low-risk high-CVSS case; it is a genuine security issue affecting all systems exposing ksmbd (particularly Linux distributions using kernel 7.0.0-rc3 and related versions). The presence of multiple upstream fix commits in the git.kernel.org references indicates vendor recognition of severity.

Exploit ScenarioDerived

A remote attacker on the network sends a crafted SMB2 DURABLE_REQ_V2 request with SMB2_FLAGS_REPLAY_OPERATION flag from a new SMB connection, targeting a file handle previously established on a separate, still-active connection. The ksmbd server parses the durable request and unconditionally overwrites the file handle's connection pointer to the attacker's new connection. When the attacker's connection terminates, ksmbd begins cleanup and attempts to lock the file handle via the now-stale connection pointer, dereferencing freed memory and triggering a kernel use-after-free crash (denial of service) visible via KASAN instrumentation. The timing and race condition make this automatable but race-dependent. While the immediate impact is kernel crash (information disclosure, DoS), use-after-free conditions in kernel memory can potentially be leveraged for privilege escalation or code execution by sophisticated attackers with deeper kernel exploitation techniques.

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 03, 2026

Use-after-free in Linux kernel's ksmbd SMB server allows remote attackers to crash the kernel or potentially execute code via malicious SMB2 DURABLE_REQ_V2 replay operations. The vulnerability occurs when parse_durable_handle_context() unconditionally reassigns file handle connection pointers during replay operations, causing stale pointer dereferences when the reassigned connection is subsequently freed. A KASAN report confirms the use-after-free in spin_lock operations during file descriptor closure, triggered during SMB2 connection handling in the ksmbd-io workqueue. No public exploit code or active exploitation has been confirmed at time of analysis.

RemediationAI

Apply upstream kernel patch from commit b0158d9d6f4ec5941e49a0b812735db2844f9975 or subsequent stable fixes (commit 568a25fd7bcdfb2790f7d42aa2a440dca4435c96, a5828c14a9e3d5eeed0bcc0a58f0f3fbca0cdcb2, 9b0792c3eacf01e67f356d6ef9707b0ae5022419, or b425e4d0eb321a1116ddbf39636333181675d8f4) available at https://git.kernel.org/stable. Update to a patched Linux kernel version that incorporates these fixes. As an interim mitigation, disable the ksmbd module if not required for network file sharing operations (rmmod ksmbd and remove from autoload). Verify the fix is present in your distribution's kernel update; contact your vendor (Ubuntu, Debian, etc.) for availability of patched kernel builds. The upstream fix filters file handle lookups by connection in parse_durable_handle_context() to prevent unconditional connection pointer reassignment.

Affected VersionsENISA

Linux patch: 7.0-rc5
Linux 8df4bcdb0a4232192b2445256c39b787d58ef14d <b0158d9d6f4ec5941e49a0b812735db2844f9975
Linux patch: 6.12.78
Linux c8efcc786146a951091588e5fa7e3c754850cb3c <568a25fd7bcdfb2790f7d42aa2a440dca4435c96
Linux patch: 6.19.10
Linux c8efcc786146a951091588e5fa7e3c754850cb3c <9b0792c3eacf01e67f356d6ef9707b0ae5022419
Linux patch: 0
Linux patch: 6.6.130
Linux c8efcc786146a951091588e5fa7e3c754850cb3c <a5828c14a9e3d5eeed0bcc0a58f0f3fbca0cdcb2
Linux 6.9
Linux c8efcc786146a951091588e5fa7e3c754850cb3c <b425e4d0eb321a1116ddbf39636333181675d8f4
Linux patch: 6.18.20

Affected Packages

euvd linux no fix

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 kernel module implements SMB2/SMB3 protocol support in the Linux kernel. The vulnerability resides in durable file handle replay logic, specifically within parse_durable_handle_context() which processes SMB2_FLAGS_REPLAY_OPERATION requests with DURABLE_REQ_V2 context structures. When a client replays a request for a file handle associated with an existing connection, the function unconditionally overwrites the file handle's fp->conn pointer (connection reference) with the current/replaying connection's pointer. The complementary lookup function ksmbd_lookup_fd_cguid() does not filter results by connection, returning file handles from other connections. When the overwriting connection terminates and is freed via ksmbd_tcp_disconnect(), the __ksmbd_close_fd() function dereferences the stale fp->conn pointer to acquire spin_lock(&fp->conn->llist_lock), accessing freed memory and triggering a use-after-free condition. This is a classic memory safety issue (CWE-416: Use After Free) in C-based kernel code handling connection lifecycle and file descriptor state management.

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

NVD 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 NVD.

CVSS VectorNVD

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

Lifecycle Timeline

5
Severity Changed
Apr 27, 2026 - 14:22 NVD
HIGH CRITICAL
CVSS changed
Apr 27, 2026 - 14:22 NVD
7.8 (HIGH) 9.8 (CRITICAL)
CVSS changed
Apr 23, 2026 - 21:11 NVD
7.8 (HIGH)
Patch available
Apr 16, 2026 - 05:29 EUVD
568a25fd7bcdfb2790f7d42aa2a440dca4435c96,9b0792c3eacf01e67f356d6ef9707b0ae5022419
CVE Published
Apr 03, 2026 - 15:15 nvd
N/A

DescriptionCVE.org

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

ksmbd: fix use-after-free in durable v2 replay of active file handles

parse_durable_handle_context() unconditionally assigns dh_info->fp->conn to the current connection when handling a DURABLE_REQ_V2 context with SMB2_FLAGS_REPLAY_OPERATION. ksmbd_lookup_fd_cguid() does not filter by fp->conn, so it returns file handles that are already actively connected. The unconditional overwrite replaces fp->conn, and when the overwriting connection is subsequently freed, __ksmbd_close_fd() dereferences the stale fp->conn via spin_lock(&fp->conn->llist_lock), causing a use-after-free.

KASAN report:

[ 7.349357] ============== [ 7.349607] BUG: KASAN: slab-use-after-free in _raw_spin_lock+0x75/0xe0 [ 7.349811] Write of size 4 at addr ffff8881056ac18c by task kworker/1:2/108 [ 7.350010] [ 7.350064] CPU: 1 UID: 0 PID: 108 Comm: kworker/1:2 Not tainted 7.0.0-rc3+ #58 PREEMPTLAZY [ 7.350068] Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 7.350070] Workqueue: ksmbd-io handle_ksmbd_work [ 7.350083] Call Trace: [ 7.350087] <TASK> [ 7.350087] dump_stack_lvl+0x64/0x80 [ 7.350094] print_report+0xce/0x660 [ 7.350100] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 7.350101] ? __pfx___mod_timer+0x10/0x10 [ 7.350106] ? _raw_spin_lock+0x75/0xe0 [ 7.350108] kasan_report+0xce/0x100 [ 7.350109] ? _raw_spin_lock+0x75/0xe0 [ 7.350114] kasan_check_range+0x105/0x1b0 [ 7.350116] _raw_spin_lock+0x75/0xe0 [ 7.350118] ? __pfx__raw_spin_lock+0x10/0x10 [ 7.350119] ? __call_rcu_common.constprop.0+0x25e/0x780 [ 7.350125] ? close_id_del_oplock+0x2cc/0x4e0 [ 7.350128] __ksmbd_close_fd+0x27f/0xaf0 [ 7.350131] ksmbd_close_fd+0x135/0x1b0 [ 7.350133] smb2_close+0xb19/0x15b0 [ 7.350142] ? __pfx_smb2_close+0x10/0x10 [ 7.350143] ? xas_load+0x18/0x270 [ 7.350146] ? _raw_spin_lock+0x84/0xe0 [ 7.350148] ? __pfx__raw_spin_lock+0x10/0x10 [ 7.350150] ? _raw_spin_unlock+0xe/0x30 [ 7.350151] ? ksmbd_smb2_check_message+0xeb2/0x24c0 [ 7.350153] ? ksmbd_tree_conn_lookup+0xcd/0xf0 [ 7.350154] handle_ksmbd_work+0x40f/0x1080 [ 7.350156] process_one_work+0x5fa/0xef0 [ 7.350162] ? assign_work+0x122/0x3e0 [ 7.350163] worker_thread+0x54b/0xf70 [ 7.350165] ? __pfx_worker_thread+0x10/0x10 [ 7.350166] kthread+0x346/0x470 [ 7.350170] ? recalc_sigpending+0x19b/0x230 [ 7.350176] ? __pfx_kthread+0x10/0x10 [ 7.350178] ret_from_fork+0x4fb/0x6c0 [ 7.350183] ? __pfx_ret_from_fork+0x10/0x10 [ 7.350185] ? __switch_to+0x36c/0xbe0 [ 7.350188] ? __pfx_kthread+0x10/0x10 [ 7.350190] ret_from_fork_asm+0x1a/0x30 [ 7.350197] </TASK> [ 7.350197] [ 7.355160] Allocated by task 123: [ 7.355261] kasan_save_stack+0x33/0x60 [ 7.355373] kasan_save_track+0x14/0x30 [ 7.355484] __kasan_kmalloc+0x8f/0xa0 [ 7.355593] ksmbd_conn_alloc+0x44/0x6d0 [ 7.355711] ksmbd_kthread_fn+0x243/0xd70 [ 7.355839] kthread+0x346/0x470 [ 7.355942] ret_from_fork+0x4fb/0x6c0 [ 7.356051] ret_from_fork_asm+0x1a/0x30 [ 7.356164] [ 7.356214] Freed by task 134: [ 7.356305] kasan_save_stack+0x33/0x60 [ 7.356416] kasan_save_track+0x14/0x30 [ 7.356527] kasan_save_free_info+0x3b/0x60 [ 7.356646] __kasan_slab_free+0x43/0x70 [ 7.356761] kfree+0x1ca/0x430 [ 7.356862] ksmbd_tcp_disconnect+0x59/0xe0 [ 7.356993] ksmbd_conn_handler_loop+0x77e/0xd40 [ 7.357138] kthread+0x346/0x470 [ 7.357240] ret_from_fork+0x4fb/0x6c0 [ 7.357350] ret_from_fork_asm+0x1a/0x30 [ 7.357463] [ 7.357513] The buggy address belongs to the object at ffff8881056ac000 [ 7.357513] which belongs to the cache kmalloc-1k of size 1024 [ 7.357857] The buggy address is located 396 bytes inside of [ 7.357857] freed 1024-byte region ---truncated---

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Data Quality
5 sources
Confidence: Medium

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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

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