Skip to main content

Linux Kernel CVE-2025-38411

HIGH
Double Free (CWE-415)
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
    Obtain local low-privileged shell
  2. Delivery
    Trigger concurrent netfs filesystem I/O
  3. Exploit
    Race request completion in pause loop
  4. Execution
    Cause double put/free of request
  5. Persist
    Corrupt kernel memory
  6. Impact
    Escalate privileges or panic kernel

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Double free prevention
Exploitation Conditions

Exploitation requires local access with an unprivileged-but-authenticated account (CVSS PR:L) and the ability to drive netfs-backed filesystem I/O - i.e., a network/caching filesystem using the netfs library (AFS, Ceph, CIFS/SMB, 9p, or fscache) must be in use so the vulnerable request pause/completion path is reachable. The race must be won such that a netfs request finishes during the pause loop and then enters the final wait loop, triggering the double put. Key limiting factors: the system must be running a Linux 6.16 release-candidate kernel (rc1-rc4) - stable releases are not listed as affected - no remote or unauthenticated vector exists (AV:L, UI:N but PR:L), and the timing-dependent nature of the double-free reduces reliability of weaponization.

Impact

The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 7.8 High) describes a local, low-complexity, low-privilege attack yielding high confidentiality, integrity and availability impact - consistent with a kernel memory-corruption bug that can escalate to arbitrary code execution or at minimum a crash/DoS. However, several signals temper real-world priority: EPSS is very low (0.15%, 5th percentile), the CVE is NOT on CISA KEV, and no public exploit has been identified. Critically, the affected CPE set is limited to release-candidate kernels 6.16-rc1 through 6.16-rc4, meaning this defect existed only briefly in mainline development builds and never reached a stable production release - sharply narrowing the exposed population. The 'Information Disclosure' tag under-describes the flaw; a double-free/UAF has memory-corruption potential beyond simple disclosure, aligning better with the C:H/I:H/A:H rating. Net assessment: technically serious bug class but low practical urgency given RC-only exposure, low EPSS, no KEV, and no known exploit.

Exploit ScenarioDerived

A local, low-privileged user on a machine running an affected 6.16 release-candidate kernel triggers concurrent netfs I/O (for example against a Ceph, CIFS or AFS mount) crafted so a request completes during the pause loop, causing the request to be freed twice. The resulting double-free corrupts kernel memory, which a skilled attacker could groom toward privilege escalation, or more trivially into a denial-of-service kernel panic. No public exploit is identified at time of analysis.

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 netfs (network filesystem) subsystem affects development builds 6.16-rc1 through 6.16-rc4, where a reference-counting error causes a double put of a netfs request. When a netfs request completes during the pause loop, the reference tied to the IN_PROGRESS flag is dropped, but the subsequent final wait loop erroneously drops it again, leading to a use-after-free/double-free condition (CWE-415). CVSS is 7.8 (High) requiring low-privileged local access; EPSS is low at 0.15% and there is no public exploit identified at time of analysis.

RemediationAI

Patch available per vendor advisory - the upstream fix corrects netfs_collect_in_app() to return early when the IN_PROGRESS flag is already cleared, preventing the double put; apply the commits at https://git.kernel.org/stable/c/9df7b5ebead649b00bf9a53a798e4bf83a1318fd and https://git.kernel.org/stable/c/d18facba5a5795ad44b2a00a052e3db2fa77ab12, or upgrade to a 6.16 build (final release or later RC) that incorporates them. Since exposure is limited to 6.16 release candidates, the cleanest remediation is to move off the affected RC kernels onto a fixed build rather than run mitigations; if you must remain on an affected RC, reduce attack surface by limiting local user access and avoiding workloads that exercise netfs-backed filesystems (AFS, Ceph, CIFS/SMB, 9p, fscache-backed mounts), accepting that disabling those filesystems removes the functionality they provide. No exact tagged fix version number is provided in the input beyond the referenced commits.

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 flaw lives in the Linux kernel's netfs library, the shared helper layer that backs network and caching filesystems (e.g. AFS, Ceph, CIFS/SMB, 9p, NFS via fscache) by managing asynchronous read/write requests and their lifecycle. Each netfs_io_request is reference-counted, and one reference is conceptually owned by the NETFS_RQ_IN_PROGRESS flag. The bug is a classic CWE-415 double-free/double-put: netfs_collect_in_app() and the final wait loop both release the IN_PROGRESS reference when a request completes mid-pause, because the wait loop misinterprets a cleared IN_PROGRESS flag as work it must finalize (including invoking ->ki_complete()) when in fact the collector already performed that cleanup. The fix makes netfs_collect_in_app() simply return when IN_PROGRESS has already been cleared, avoiding the duplicate reference drop and duplicate completion call.

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

Local low-priv access driving netfs I/O; the completion-during-pause double-free is a timing race, so AC:H, with full kernel-memory C/I/A 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 4.7 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 7.0 MEDIUM

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:

netfs: Fix double put of request

If a netfs request finishes during the pause loop, it will have the ref that belongs to the IN_PROGRESS flag removed at that point - however, if it then goes to the final wait loop, that will *also* put the ref because it sees that the IN_PROGRESS flag is clear and incorrectly assumes that this happened when it called the collector.

In fact, since IN_PROGRESS is clear, we shouldn't call the collector again since it's done all the cleanup, such as calling ->ki_complete().

Fix this by making netfs_collect_in_app() just return, indicating that we're done if IN_PROGRESS is removed.

Executive ViewAI

Why It Matters

CVE-2025-38411 is a kernel-level local privilege escalation vulnerability in Linux netfs affecting development kernel versions 6.16-rc1 through 6.16-rc4. This reference-counting defect allows low-privilege local users to trigger use-after-free conditions leading to kernel code execution and complete system compromise. Organizations deploying these prerelease kernels in development or testing environments require immediate remediation to prevent unauthorized system takeover.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Ubiquitous
Linux kernel underpins most servers and cloud, though only 6.16 RC builds affected
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

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: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:*:*:*:*:*:*

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 Performance Computing 15 SP7 Not-Affected

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