Skip to main content

Linux Kernel CVE-2025-40063

HIGH
2025-10-28 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.0
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 access
  2. Delivery
    Invoke kernel crypto compression path
  3. Exploit
    Hit mismatched alloc_ctx/free_ctx pointers
  4. Execution
    Wrong context callback corrupts memory
  5. Impact
    Escalate privileges or crash kernel

Vulnerability Assessment

Exploitation Conditions

Exploitation requires the kernel to be built with structure layout randomization (CONFIG_RANDSTRUCT) enabled AND to include commit 42d9f6c77479, so that the alloc_ctx/free_ctx pointers in scomp_alg are reordered out of sync with crypto_acomp_streams; the attacker must be a local, low-privileged authenticated user (PR:L, AV:L) able to reach the scomp/acomp compression code path. Exploitation is strongly limited by the fact that stock kernels without RANDSTRUCT are not affected, that the layout mismatch is compiler/build-nondeterministic, and by the high attack complexity (AC:H) - there is no remote or unauthenticated vector.

Impact

Signals are mixed and point to a low real-world priority despite a 7.0 base score. The CVSS vector (AV:L/AC:H/PR:L/UI:N, C:H/I:H/A:H) requires local access, low privileges, and describes high attack complexity, which is consistent with the fact that exploitation depends on a specific compiler hardening feature (CONFIG_RANDSTRUCT) being enabled and on the randomization happening to produce an exploitable mismatch - a non-deterministic precondition. EPSS is low at 0.17% (7th percentile), there is no CISA KEV listing, and no public exploit is identified, all reinforcing low likelihood. Notably, the flaw only manifests on kernels built with structure layout randomization, so the majority of stock distribution kernels that do not enable RANDSTRUCT are not affected - a critical limiting factor not captured by the raw CVSS score. The C:H/I:H/A:H impact rating appears theoretical/worst-case for a control-flow-via-wrong-callback corruption; treat impact severity as inferred rather than demonstrated.

Exploit ScenarioDerived

A local authenticated user on a kernel compiled with CONFIG_RANDSTRUCT triggers the crypto compression path (e.g., via an in-kernel compression consumer), where the mismatched alloc_ctx/free_ctx ordering causes the kernel to call the wrong context callback, corrupting memory and potentially escalating privileges or crashing the system. No public proof-of-concept exists, and the high attack complexity (AC:H) reflects reliance on a randomized layout aligning into an exploitable state.

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

Memory corruption in the Linux kernel's crypto compression subsystem (scomp/acomp) arises because struct layout randomization can reorder the alloc_ctx and free_ctx function pointers in scomp_alg independently of the crypto_acomp_streams struct that was built to mirror them, introduced by commit 42d9f6c77479. When the CONFIG_RANDSTRUCT hardening feature reorders these pure ops structures inconsistently, the kernel invokes the wrong context allocation/free callback, leading to high-impact confidentiality, integrity, and availability effects for a local low-privileged actor. No public exploit identified at time of analysis and EPSS probability is low (0.17%), so this is a hardening-regression fix rather than an actively exploited flaw.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the kernel stable commits f75f66683ded09f7135aef2e763c245a07c8271a and 779d3b6f2d32c5f1da6163e959abe1e1ffe2945b (see https://git.kernel.org/stable/c/f75f66683ded09f7135aef2e763c245a07c8271a and https://git.kernel.org/stable/c/779d3b6f2d32c5f1da6163e959abe1e1ffe2945b) by updating to the corresponding patched stable kernel from your distribution once released. As a targeted compensating control, because the defect only manifests when structure layout randomization is active, you can rebuild the kernel with CONFIG_RANDSTRUCT disabled to eliminate the mismatch - the trade-off is loss of that struct-randomization exploit-hardening mitigation, so this should be temporary. Where feasible, also restrict local access to the affected hosts, since exploitation requires an authenticated local presence.

Affected ProductsAI

The Linux kernel crypto compression subsystem is affected on builds that include commit 42d9f6c77479 ("crypto: acomp - Move scomp stream allocation code into acomp") and enable structure layout randomization (CONFIG_RANDSTRUCT). No CPE list or precise version range was provided in the intelligence set; the affected and fixed revisions are identified only by the two kernel.org stable git commits (779d3b6f2d32c5f1da6163e959abe1e1ffe2945b and f75f66683ded09f7135aef2e763c245a07c8271a). Exact tagged stable release numbers should be confirmed against the kernel.org stable trees referenced at https://git.kernel.org/stable/c/779d3b6f2d32c5f1da6163e959abe1e1ffe2945b and https://git.kernel.org/stable/c/f75f66683ded09f7135aef2e763c245a07c8271a.

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 kernel's synchronous/asynchronous compression crypto API, specifically the scomp_alg algorithm descriptor and the crypto_acomp_streams stream-management struct. Commit 42d9f6c77479 moved scomp per-CPU stream allocation into the acomp layer and assumed alloc_ctx/free_ctx appear in the same order in both structs. Because these members live inside a pure ops sub-structure (only function pointers), the CONFIG_RANDSTRUCT / structure layout randomization GCC plugin is free to shuffle them, but crypto_acomp_streams is not randomized identically - producing a pointer/offset mismatch. The root cause is a type-layout assumption violated by compiler-driven randomization (conceptually a CWE-843 type-confusion / incorrect-pointer-dereference class issue); no official CWE was assigned. The fix removes the union from scomp_alg so both structs share one definition and always agree on layout.

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.0 HIGH
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 6.5 MEDIUM

Local low-priv attacker (AV:L/PR:L) and RANDSTRUCT-plus-nondeterministic-layout dependency justify AC:H; memory corruption gives I:H/A:H, with confidentiality only partial (C:L).

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/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 6.1 MEDIUM

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

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

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

DescriptionCVE.org

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

crypto: comp - Use same definition of context alloc and free ops

In commit 42d9f6c77479 ("crypto: acomp - Move scomp stream allocation code into acomp"), the crypto_acomp_streams struct was made to rely on having the alloc_ctx and free_ctx operations defined in the same order as the scomp_alg struct. But in that same commit, the alloc_ctx and free_ctx members of scomp_alg may be randomized by structure layout randomization, since they are contained in a pure ops structure (containing only function pointers). If the pointers within scomp_alg are randomized, but those in crypto_acomp_streams are not, then the order may no longer match. This fixes the problem by removing the union from scomp_alg so that both crypto_acomp_streams and scomp_alg will share the same definition of alloc_ctx and free_ctx, ensuring they will always have the same layout.

Executive ViewAI

Why It Matters

A high-severity memory corruption vulnerability in the Linux kernel's cryptographic compression subsystem (CVE-2025-40063) affects systems with specific kernel hardening configurations enabled. The flaw poses confidentiality and integrity risks to low-privileged local users; however, no public exploits currently exist and exploitation probability remains negligible, making this primarily a kernel stability fix rather than an immediate active threat.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include enforcing local access restrictions through authentication and authorization controls, disabling CONFIG_RANDSTRUCT hardening if operational stability is at greater risk than the potential memory corruption vulnerability, and implementing enhanced system monitoring to detect abnormal kernel behavior. Maintain vigilance on vendor security advisories for patch announcements.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Ubiquitous
Linux kernel runs across most server and cloud environments
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.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

35
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
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
openSUSE Tumbleweed Fixed
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

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