Skip to main content

Linux Kernel CVE-2025-40174

HIGH
2025-11-12 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.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
    Obtain local low-privileged execution on x86 SMP host
  2. Delivery
    Spawn concurrent context-switch and TLB-flush activity
  3. Exploit
    Race reordering window in switch_mm_irqs_off()
  4. Execution
    Retain stale TLB entry for revoked mapping
  5. Impact
    Read or corrupt out-of-context memory

Vulnerability Assessment

Exploitation Conditions

Requires local code execution (AV:L) with at least low privileges (PR:L) on an x86 multiprocessor (SMP) system running a vulnerable kernel; the bug lives in switch_mm_irqs_off() and only manifests on weakly-ordered execution where the loaded_mm store and tlb_gen load can be reordered relative to flush_tlb_mm_range(). Exploitation is limited by the need to win a narrow, hardware-dependent memory-ordering race that occurs during concurrent address-space switches and TLB flushes - it does not affect uniprocessor systems, non-x86 architectures, or remote/unauthenticated attackers, and no user interaction is involved.

Impact

The signals are mostly aligned toward moderate, non-urgent priority. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 7.8 High) reflects that impact is high once triggered but requires local access with some privileges, consistent with a kernel race. EPSS is 0.03% (10th percentile) and there is no CISA KEV listing and no known POC, so real-world exploitation likelihood is low. Notably, the AC:L rating arguably understates difficulty: winning an SMP memory-ordering race window deterministically is hard and hardware-dependent, so weaponization would be complex despite the 'Low' complexity metric - treat AC:L with skepticism here. The 'Information Disclosure' tag is plausible (stale TLB could expose freed/reused mappings) but the mechanism can equally cause corruption or crashes; the exact exploitable primitive is not documented. Overall this is a genuine correctness fix worth patching in normal cycles, not an emergency.

Exploit ScenarioDerived

A low-privileged local user on a multi-tenant x86 SMP server runs code engineered to repeatedly trigger context switches and mm changes concurrently with TLB flushes, aiming to hit the reordering window where a CPU keeps stale TLB entries. On vulnerable hardware this could let the process access physical pages via mappings that should already have been invalidated, potentially leaking or corrupting another context's memory. No public POC is known, and reliably winning the race would require significant hardware-specific engineering.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv3 – Jul 30, 2026

Missing memory-barrier ordering in the x86 memory-management code of the Linux kernel allows stale TLB entries to persist after an address-space switch, because switch_mm_irqs_off() can fail to observe a recent tlb_gen update from flush_tlb_mm_range(). On affected x86 SMP systems a local, low-privileged process could read or corrupt memory mappings it should no longer have access to, mapping to the CVSS 7.8 high/high/high impact. No public exploit identified at time of analysis, and the EPSS score is negligible (0.03%, 10th percentile), indicating this is a subtle correctness/race fix rather than an actively-targeted flaw.

Earlier versions of this analysis (2)
v2 Jul 30, 2026 - 08:38 cvss changed CVSS 7.8

Missing memory barrier in the Linux kernel's x86 memory-management code (switch_mm_irqs_off) allows a race between storing loaded_mm and loading tlb_gen, causing context switches to skip a required TLB flush and leave stale address-translation entries active. On affected x86 SMP systems this can expose memory contents that should have been unmapped, aligning with the Information Disclosure tag, and NVD scores it 7.8 (High) for local low-privileged attackers. There is no public exploit identified at time of analysis, EPSS is very low (0.03%, 10th percentile), and it is not in CISA KEV.

v1 Mar 28, 2026 - 19:21

In the Linux kernel, the following vulnerability has been resolved: x86/mm: Fix SMP ordering in switch_mm_irqs_off() Stephen noted that it is possible to not have an smp_mb() between the loaded_mm. No vendor patch available.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the kernel update that includes commits 0fe5e3f5fb75c5d88dad24dece3ee75e9d87adeb and 83b0177a6c4889b3a6e865da5e21b2c9d97d0551 (https://git.kernel.org/stable/c/0fe5e3f5fb75c5d88dad24dece3ee75e9d87adeb), which restores the required smp_mb() ordering between the loaded_mm store and the tlb_gen load in switch_mm_irqs_off(). For most operators the practical path is to take the distribution vendor's next patched kernel package (Red Hat, SUSE, Ubuntu, Debian, etc.) once it ships the corresponding stable backport, then reboot to activate it. There is no meaningful configuration-level workaround for a low-level TLB ordering race; if patching must be deferred, reduce exposure by limiting untrusted local code execution on multi-tenant x86 SMP hosts (e.g., tightening container/VM tenant isolation and restricting shell access), accepting that this only lowers, not eliminates, the local attack surface.

Affected ProductsAI

The Linux kernel on x86 (32/64-bit) SMP systems using the shared-mm TLB generation tracking in switch_mm_irqs_off() is affected; the flaw is in architecture-specific x86/mm code. No specific version range or CPE was provided in the intelligence data (NVD references are only stable-tree commits), so exact affected/first-fixed kernel versions must be derived from the stable trees carrying commits 0fe5e3f5fb75c5d88dad24dece3ee75e9d87adeb and 83b0177a6c4889b3a6e865da5e21b2c9d97d0551 (https://git.kernel.org/stable/c/0fe5e3f5fb75c5d88dad24dece3ee75e9d87adeb and https://git.kernel.org/stable/c/83b0177a6c4889b3a6e865da5e21b2c9d97d0551). Non-x86 architectures and single-CPU systems are not in scope for this specific ordering bug.

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 affected component is the x86 TLB (Translation Lookaside Buffer) management path in the kernel's memory manager, specifically switch_mm_irqs_off(), the routine invoked on every context switch to change the active mm_struct (address space) and its associated CR3/PCID state. The kernel uses a per-mm tlb_gen generation counter to coordinate lazy TLB flushing: flush_tlb_mm_range() bumps tlb_gen, and a CPU switching into that mm must observe the new value to know it needs to flush. As Stephen Rothwell noted, there was no guaranteed smp_mb() between the loaded_mm store and the tlb_gen load, so on weakly-ordered SMP hardware the store and load could be reordered, breaking the happens-before relationship with flush_tlb_mm_range(). This is a memory-ordering/concurrency defect (CWE-362-class race condition, though NVD lists CWE as N/A) rather than a classic memory-safety bug, and its consequence is stale/incoherent TLB entries.

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 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 is required (AV:L/PR:L); winning an SMP memory-ordering race is hard, so AC:H rather than AC:L, with high memory-corruption/disclosure 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:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 5.8 MEDIUM

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

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

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
Jul 30, 2026 - 08:40 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 30, 2026 - 08:38 vuln.today
v2 - CVSS changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
CVE Published
Nov 12, 2025 - 11:15 nvd
N/A

DescriptionCVE.org

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

x86/mm: Fix SMP ordering in switch_mm_irqs_off()

Stephen noted that it is possible to not have an smp_mb() between the loaded_mm store and the tlb_gen load in switch_mm(), meaning the ordering against flush_tlb_mm_range() goes out the window, and it becomes possible for switch_mm() to not observe a recent tlb_gen update and fail to flush the TLBs.

[ dhansen: merge conflict fixed by Ingo ]

Executive ViewAI

Why It Matters

A memory-management race condition in Linux kernel x86 systems (CVE-2025-40174) could allow unprivileged local processes to access or corrupt memory they no longer have permission to read. While the CVSS score is 7.8 (high impact to confidentiality and integrity), the EPSS score of 0.03% and absence of public exploits indicate this is a low-probability but high-consequence bug requiring kernel-level remediation once patches are released.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: restricting unprivileged user account creation and process execution on affected systems; deploying process and memory isolation via containers or VMs to prevent untrusted local code execution; and implementing kernel audit logging to detect suspicious cross-process memory access patterns. Monitor kernel maintainer advisories for patch release.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Prevalence
Ubiquitous
Linux kernel on x86 SMP underpins the vast majority of servers and cloud hosts
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.0%
Patch available No
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

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.

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