Skip to main content

Debian Linux CVE-2025-37778

HIGH
Use After Free (CWE-416)
2025-05-01 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Obtain low-privilege local access
  2. Delivery
    Connect to ksmbd SMB service
  3. Exploit
    Send crafted Kerberos authentication request
  4. Install
    Trigger sess->user use-after-free in krb_authenticate
  5. C2
    Manipulate kernel heap to control freed memory
  6. Execute
    Dereference dangling pointer in smb2_sess_setup
  7. Impact
    Execute arbitrary kernel code
  8. Step 8
    Escalate to root privileges

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
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 loaded and enabled (not default on most distributions - must be explicitly configured). Requires ksmbd configured with Kerberos authentication support (krb5.conf integration) rather than NTLM-only mode. Attacker must have existing authenticated local access to the system (PR:L in CVSS vector) - cannot be exploited remotely without first compromising a local account. Vulnerability is triggered during SMB2 session establishment via the krb_authenticate code path, requiring the attacker to initiate an SMB connection to localhost or the system's network interface running ksmbd. Exploitation success depends on ability to manipulate heap state to control freed memory reallocation, which is more reliable on systems without modern kernel hardening (SMAP/SMEP/KASLR), though skilled attackers can bypass these on many configurations. Limited by requirement that ksmbd_krb5_authenticate must fail in a specific way that leaves sess->user uninitialized after being freed.

Impact

Real-world risk is moderate despite the high CVSS 7.8 score. The CVSS vector AV:L/AC:L/PR:L indicates local access with low-privilege authentication is required - not remotely exploitable. EPSS score of 0.07% (21st percentile) suggests security researchers and threat actors currently assess widespread exploitation as unlikely. No CISA KEV listing confirms this is not being actively exploited in the wild. However, several factors elevate concern: (1) use-after-free primitives are reliably exploitable for privilege escalation with sufficient skill, (2) ksmbd is increasingly deployed in enterprise NAS and file server configurations, (3) authenticated local access is common in multi-user Linux systems, (4) patches exist which implies vendor confirmation of exploitability. The attack complexity is low (AC:L) meaning exploitation does not require race conditions or complex setup once authentication is obtained. Primary risk is privilege escalation from low-privileged local user to kernel-level code execution (C:H/I:H/A:H with no scope change indicates full system compromise). This is a real priority for organizations running ksmbd in production, particularly with untrusted local users, but not an immediate critical emergency given the local-only attack vector and absence of public exploits.

Exploit ScenarioDerived

An attacker with low-privilege local shell access (e.g., compromised web application user, restricted SSH account, or malicious insider) connects to the local ksmbd SMB server and initiates session setup with Kerberos authentication. By providing crafted credentials that cause ksmbd_krb5_authenticate to fail after sess->user is freed, the attacker triggers the dangling pointer condition. Subsequent access to sess->user in smb2_sess_setup dereferences the freed memory. With heap manipulation techniques, the attacker reallocates the freed memory region with attacker-controlled data structures, achieving arbitrary kernel memory write and escalating to root privileges with full system control.

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

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

Alert me

AnalysisAIv3 – Apr 18, 2026

Use-after-free in Linux kernel ksmbd (SMB server) allows authenticated local attackers to corrupt memory and potentially execute arbitrary code. The vulnerability occurs in krb_authenticate when Kerberos authentication fails to reinitialize a freed session pointer, leading to dangling pointer dereference. Upstream patches available from kernel.org for affected versions including 6.15-rc1/rc2. EPSS score is low (0.07%) with no confirmed active exploitation, but the high CVSS 7.8 reflects serious local privilege escalation potential. Debian and Ubuntu have issued advisories.

Earlier versions of this analysis (2)
v2 Apr 18, 2026 - 09:46 cvss changed CVSS 7.8

Use-after-free in Linux kernel ksmbd (SMB server) allows local authenticated attackers to corrupt memory, leak sensitive data, or execute code via dangling pointer dereference during Kerberos authentication. Affects Linux kernel versions with ksmbd enabled, including 6.15-rc1/rc2 and older stable branches. Vendor patches available via kernel.org. EPSS probability 0.07% suggests low likelihood of mass exploitation despite high CVSS severity.

v1 Mar 17, 2026 - 20:45 CVSS 7.8

A use-after-free vulnerability exists in the Linux kernel's ksmbd implementation where the krb_authenticate function can leave a dangling pointer to freed memory in sess->user, leading to memory corruption when the pointer is later accessed. This vulnerability affects Linux kernel versions from 5.15 up to 6.15-rc2 and allows a local attacker with low privileges to potentially achieve privilege escalation or cause system crashes. With a low EPSS score of 0.07% and no known active exploitation, this represents a moderate priority issue despite the high CVSS score.

RemediationAI

Apply vendor-supplied kernel updates immediately for systems running ksmbd. Upstream fixes available from kernel.org git stable tree: commits 1db2451de23e, 1e440d5b25b7, 6e30c0e10210, d5b554bc8d55, and e83e39a5f6a0 address the issue across different kernel branches (https://git.kernel.org/stable/c/1db2451de23e98bc864c6a6e52aa0d82c91cb325 and related commits). Debian users should upgrade per debian-lts-announce 2025/05/msg00045.html. Ubuntu users should apply security updates from USN-8126-1. For systems where immediate patching is not feasible, disable ksmbd module entirely with 'rmmod ksmbd' and blacklist it in /etc/modprobe.d/ - this prevents all SMB server functionality but eliminates exposure; organizations requiring SMB file sharing should fall back to userspace Samba daemon which is not affected. Alternatively, disable Kerberos authentication in ksmbd configuration (ksmbd.conf) and use NTLM-only authentication as a temporary workaround, though this reduces security posture for legitimate authentication and may not be acceptable in domain environments; this mitigation assumes the vulnerability is specific to the Kerberos code path in krb_authenticate. Monitor for kernel updates from your distribution and prioritize deployment on multi-user systems where local attackers may have existing low-privilege access.

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

This vulnerability affects ksmbd, the in-kernel SMB3 server implementation in Linux (userspace alternative to Samba). The flaw is a classic use-after-free (CWE-416) in the Kerberos authentication code path. When krb_authenticate frees sess->user but ksmbd_krb5_authenticate subsequently fails to reinitialize it, the pointer becomes dangling. Later access in smb2_sess_setup dereferences freed heap memory, enabling memory corruption. Use-after-free bugs are particularly dangerous because the freed memory may be reallocated to an attacker-controlled object, allowing arbitrary read/write primitives. The vulnerability exists in the SMB2 session setup handler, which processes client authentication during SMB connection establishment. CPE data shows impact across multiple kernel versions including release candidates 6.15-rc1 and 6.15-rc2, plus stable branches. The bug requires ksmbd module to be loaded and Kerberos authentication to be configured.

Know when Debian Linux gets its next vulnerability

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

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

4
Analysis Updated
Apr 18, 2026 - 09:46 vuln.today
v3 - CVSS changed
Analysis Updated
Apr 18, 2026 - 09:46 vuln.today
v2 - CVSS changed
Patch released
Mar 17, 2026 - 20:45 nvd
Patch available
CVE Published
May 01, 2025 - 14:15 nvd
HIGH 7.8

DescriptionNVD

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

ksmbd: Fix dangling pointer in krb_authenticate

krb_authenticate frees sess->user and does not set the pointer to NULL. It calls ksmbd_krb5_authenticate to reinitialise sess->user but that function may return without doing so. If that happens then smb2_sess_setup, which calls krb_authenticate, will be accessing free'd memory when it later uses sess->user.

Executive ViewAI

Why It Matters

CVE-2025-37778 is a use-after-free vulnerability in the Linux kernel's ksmbd SMB server that allows authenticated local users to execute arbitrary code with kernel privileges. This directly threatens any organization running affected Linux distributions (particularly Debian and Ubuntu) that expose SMB services, potentially enabling lateral movement and full system compromise by insiders or compromised local accounts.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not feasible: (1) disable ksmbd module via 'echo 'blacklist ksmbd' >> /etc/modprobe.d/blacklist.conf' and reboot; (2) restrict local user account creation and enforce principle of least privilege for existing accounts; (3) implement network-based access controls to limit SMB traffic to authorized subnets only; (4) enable kernel SMEP/SMAP mitigations if CPU-supported via firmware settings.

Threat Intelligence Overview

EPSS Score
0.1%
Top 79% exploitable
Data Quality
4 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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
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
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
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.

Affected Products (CPE)NVD

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
CVE-2021-44228 CRITICAL POC
10.0 Dec 10

Apache Log4j2 contains a critical JNDI injection vulnerability known as 'Log4Shell' that allows unauthenticated remote c

CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2014-6271 CRITICAL POC
9.8 Sep 24

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which

CVE-2017-7494 CRITICAL POC
9.8 May 30

Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote code execution vulnerability, allo

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2022-30333 HIGH POC
7.5 May 09

RARLAB UnRAR before 6.12 on Linux and UNIX allows directory traversal to write to files during an extract (aka unpack) o

CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2017-12617 HIGH POC
8.1 Oct 04

When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTT

CVE-2020-1938 CRITICAL POC
9.8 Feb 24

When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Rate

CVE-2018-7602 CRITICAL POC
9.8 Jul 19

A remote code execution vulnerability exists within multiple subsystems of Drupal 7.x and 8.x. Rated critical severity (

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

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