CVE-2025-40174
Description
flaw was found in the Linux kernel’s x86 memory‐management subsystem (function switch_mm_irqs_off()). Due to a missing smp_mb() memory‐barrier between the loaded_mm store and the tlb_gen load, the ordering of TLB (Translation Lookaside Buffer) flush operations can be violated in SMP systems. This may cause switch_mm() to not observe a recent tlb_gen update and fail to flush the TLBs properly.
Statement
A flaw of Moderate security impact was found in the Linux kernel's x86 memory-management subsystem, in switch_mm_irqs_off(). A missing smp_mb() memory barrier between the loaded_mm store and the tlb_gen load breaks the ordering guarantee that switch_mm() relies on against flush_tlb_mm_range(). On SMP systems, switch_mm() may consequently fail to observe a recent tlb_gen update and may not flush the TLB when required, leaving stale address translations in place, which can affect the confidentiality, integrity, and availability of memory contents. Red Hat rates this flaw Moderate (CVSS 3.1 score 5.8, vector AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H) rather than the upstream CVEORG Important rating of 7.8, because the issue is a timing-dependent memory-ordering race that requires local privileges and high attack complexity and is difficult to trigger reliably. All currently shipped Red Hat Enterprise Linux 7, 8, 9, and 10 kernel and kernel-rt components, as well as Red Hat In-Vehicle OS 1.1, are not affected because the vulnerable code is not present in those kernels. The Red Hat Enterprise Linux 6 Extended Lifecycle Support stream is out of Red Hat's support scope for this flaw.
Mitigation
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 5.8 | N/A | 7.8 |
| Attack Vector | Local | N/A | Local |
| Attack Complexity | High | N/A | Low |
| Privileges Required | Low | N/A | Low |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | Low | N/A | High |
| Integrity Impact | Low | N/A | High |
| Availability Impact | High | N/A | High |
Vector
Red Hat: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Understanding the Weakness (CWE)
Availability
Technical Impact: DoS: Resource Consumption (Other); DoS: Resource Consumption (Memory); DoS: Resource Consumption (CPU)
An attacker that can influence the allocation of resources that are not properly released could deplete the available resource pool and prevent all other processes from accessing the same type of resource. Frequently-affected resources include memory, CPU, disk space, power or battery, etc.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.