Skip to main content

Linux Kernel CVE-2025-38437

HIGH
Use After Free (CWE-416)
2025-07-25 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. Access
    Authenticate to ksmbd SMB share
  2. Delivery
    Open file and acquire oplock/lease
  3. Exploit
    Trigger oplock break ack with pin failure
  4. Execution
    Reuse freed opinfo via heap grooming
  5. Persist
    Corrupt kernel memory / double-free
  6. Impact
    Escalate privileges or disclose kernel data

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

Exploitation requires that the target host has the ksmbd in-kernel SMB server module loaded and an SMB share exported, and that the attacker holds a valid authenticated SMB session (PR:L) able to open a file and acquire an oplock or lease. The specific trigger is the oplock/lease break acknowledgment path failing at ksmbd_iov_pin_rsp() - an error condition typically reached under memory allocation pressure - so the attacker must race/force that response-pin failure to reach the use-after-free. Limiting factors: hosts not running ksmbd (the common case, since many Linux systems use userspace Samba or share nothing) are entirely unaffected; the CVSS AV:L classification and dependence on a low-frequency error path plus authentication substantially constrain real-world exploitability compared to an unauthenticated remote bug.

Impact

The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, score 7.8 HIGH) is internally consistent with the description: exploitation is local/authenticated because ksmbd requires an established, authenticated SMB session, and the low-privilege attacker is any user who can open a share and race the oplock break path. Note the nuance that although the trigger reaches the kernel over the SMB network protocol, NVD scores AV:L - realistic exploitation still requires a valid authenticated SMB session and precise timing to hit the error path, so this is not a trivial remote-unauthenticated bug. EPSS is low (0.15%, 5th percentile) and the CVE is NOT in CISA KEV, with no POC referenced, indicating this is not currently a widespread-exploitation priority; however, use-after-free in kernel memory carries high technical impact (potential LPE) if weaponized. There is no conflicting data here - all signals point to a genuine but currently theoretical local kernel bug that is important to patch on any host actually running ksmbd, but low urgency where ksmbd is not enabled.

Exploit ScenarioDerived

An authenticated, low-privilege user with access to a ksmbd-exported share opens a file to obtain an oplock/lease, then triggers a break acknowledgment while forcing the response allocation (ksmbd_iov_pin_rsp) to fail under memory pressure, causing the freed opinfo structure to be reused and double-released. By grooming kernel heap allocations to reclaim the freed object, the attacker could corrupt kernel memory to escalate privileges or disclose kernel data. No public exploit is identified at time of analysis, and the local attack vector plus timing-dependent error path make reliable exploitation non-trivial.

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

Local privilege escalation and memory corruption in the Linux kernel's ksmbd in-kernel SMB3 server arises from a use-after-free in the oplock/lease break acknowledgment path, where a failed ksmbd_iov_pin_rsp() response allocation leads to opinfo->state being accessed after free and opinfo_put()/ksmbd_fd_put() being invoked twice. Affected builds include the 6.16 release-candidate series and Debian-packaged stable kernels running ksmbd; an authenticated SMB client interacting with a shared file can trigger the flaw for potential code execution or information disclosure. There is no public exploit identified at time of analysis and EPSS is low (0.15%), but the fix is already merged upstream and shipped via Debian LTS.

RemediationAI

Patch available per vendor advisory: upgrade to a Linux kernel that includes the ksmbd oplock/lease break fix - the fix is merged upstream and backported across stable branches via the git.kernel.org commits (50f930db2236, 8106adc21a22, 815f1161d6db, 97c355989928, e38ec88a2b42), so apply your distribution's updated kernel package; Debian users should apply the Debian LTS update referenced at https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html. As a compensating control where patching is deferred, disable or unload the ksmbd kernel module (modprobe -r ksmbd) and switch file sharing to userspace Samba, which removes the vulnerable code path entirely at the cost of ksmbd's performance benefits. If ksmbd must remain enabled, restrict SMB access to trusted authenticated users and network-segment/firewall the SMB ports (TCP 445) to limit which principals can open shares and race the oplock break path, accepting that this narrows but does not eliminate the exposure since any authenticated user can still attempt the trigger.

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

ksmbd is the Linux kernel's native in-kernel SMB3 file server (introduced around 5.15), serving as a faster alternative to userspace Samba. The vulnerable code lies in the oplock/lease break acknowledgment handler, where opportunistic locks (oplocks) and leases are cache-coherency mechanisms that let SMB clients cache file data and must be broken/acknowledged when another client requests conflicting access. The root cause is CWE-416 (Use-After-Free): when ksmbd_iov_pin_rsp() fails to allocate/pin the response IOV, the error path still dereferences opinfo->state and calls the reference-releasing routines opinfo_put() and ksmbd_fd_put() a second time, causing double-free/double-put of the opinfo structure and file descriptor. CPE data confirms the affected component is cpe:2.3:o:linux:linux_kernel across multiple versions plus cpe:2.3:o:debian:debian_linux 11.0.

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
vuln.today AI 7.0 HIGH

Requires an authenticated SMB session (PR:L) and racing a low-frequency response-pin allocation failure to hit the UAF, so AC:H; local vector with high kernel-memory impact.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 6.1 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H

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

DescriptionNVD

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

ksmbd: fix potential use-after-free in oplock/lease break ack

If ksmbd_iov_pin_rsp return error, use-after-free can happen by accessing opinfo->state and opinfo_put and ksmbd_fd_put could called twice.

Executive ViewAI

Why It Matters

The Linux kernel's ksmbd SMB3 file-sharing server is vulnerable to privilege escalation through an authenticated client connection. An attacker with SMB credentials can exploit the flaw to gain administrative access on affected systems, potentially leading to unauthorized code execution or data disclosure. The risk primarily impacts organizations with Debian Linux deployments; vendor patches are available and should be deployed.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Ubiquitous
Linux kernel is ubiquitous, though vulnerable ksmbd module is not always enabled
Data Quality
3 sources
Confidence: Low

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
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.16:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc5:*:*:*:*:*:*
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: Moderate
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