Skip to main content

Linux Kernel CVE-2025-38366

HIGH
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
    Gain local KVM access on LoongArch host
  2. Delivery
    Create VM and open EIOINTC config
  3. Exploit
    Supply num_cpu exceeding EIOINTC_ROUTE_MAX_VCPUS
  4. Execution
    Trigger array pointer overflow in host kernel
  5. Impact
    Corrupt host memory, escalate or crash

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local access to a LoongArch host with KVM enabled and permission to create/configure a virtual machine (i.e., access to /dev/kvm and the EIOINTC irqchip configuration ioctls), plus the ability to pass an oversized 'num_cpu' value greater than EIOINTC_ROUTE_MAX_VCPUS. Limiting factors: it is not remotely exploitable (AV:L), it only affects the LoongArch architecture with KVM EIOINTC emulation, and only Linux kernel 6.16 release candidates rc1-rc3 are vulnerable, so a stock final-release or non-LoongArch kernel is not exposed. The attacker must already be able to invoke KVM (PR:L), which limits the population of potential attackers to local users granted virtualization rights.

Impact

The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 7.8) reflects a locally-exploitable, low-complexity flaw requiring only low privileges (the ability to open /dev/kvm and issue configuration ioctls), yielding high confidentiality, integrity, and availability impact on the host - consistent with host kernel memory corruption from a controlled VM. However, real-world risk is materially constrained: EPSS is only 0.14% (4th percentile), there is no CISA KEV listing and no known public exploit, and the affected code exists only in LoongArch builds of 6.16 release-candidate kernels, which are rarely deployed in production. There is no SSVC record in the input to corroborate automatability or exploitation status. The signals are internally consistent (local vector matches a KVM host-side flaw); the main caveat is that CWE was not assigned by NVD, so the buffer-overflow classification is inferred from the tags and the commit description rather than an official NVD mapping.

Exploit ScenarioDerived

A local user or a low-privileged process with access to the KVM device on a LoongArch host launches a virtual machine and, through the VMM's irqchip configuration path, supplies a 'num_cpu' value exceeding EIOINTC_ROUTE_MAX_VCPUS. The kernel indexes its interrupt-routing arrays with the unchecked value, causing an out-of-bounds array access that corrupts host kernel memory, potentially escalating privileges or crashing the host. No public proof-of-concept is known; the low attack complexity means a working exploit would be straightforward for someone with KVM access.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% 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 host memory corruption in the Linux kernel's LoongArch KVM hypervisor (6.16 release candidates rc1-rc3) arises because the EIOINTC virtual irqchip fails to validate a user-space-supplied 'num_cpu' value against EIOINTC_ROUTE_MAX_VCPUS, allowing an array pointer overflow. A local user with permission to create KVM virtual machines can trigger out-of-bounds access in host kernel memory. No public exploit identified at time of analysis; EPSS is low (0.14%, 4th percentile) and the issue was fixed upstream before the 6.16 final release.

RemediationAI

Patch available per vendor advisory: upgrade to a Linux kernel build that includes the LoongArch KVM fix, applied via the stable-tree commits a3293b4078ee93174f70f36d3ab7618554ce6ab6 and cc8d5b209e09d3b52bca1ffe00045876842d96ae at https://git.kernel.org/stable/c/a3293b4078ee93174f70f36d3ab7618554ce6ab6 and https://git.kernel.org/stable/c/cc8d5b209e09d3b52bca1ffe00045876842d96ae; the fix adds bounds validation of user-supplied num_cpu against EIOINTC_ROUTE_MAX_VCPUS. Since only 6.16 release candidates are affected, running the final 6.16 release or any kernel carrying these commits resolves the issue. Where immediate patching is not possible, restrict access to /dev/kvm so only trusted, non-untrusted-tenant users can create VMs (this disables local virtualization for restricted users), and avoid exposing KVM to untrusted local workloads on LoongArch hosts; on non-LoongArch systems no action is required.

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 KVM (Kernel-based Virtual Machine) subsystem for the LoongArch architecture, specifically the emulation of the EIOINTC (Extended I/O Interrupt Controller) irqchip. When user-space VMM software (e.g., QEMU) configures the virtual interrupt controller via KVM ioctls, it supplies a 'num_cpu' value indicating the number of virtual CPUs to route interrupts for. The kernel used this value to index routing arrays without first checking it against the EIOINTC_ROUTE_MAX_VCPUS bound, so an oversized value causes an array pointer to overflow past its allocation. Although the NVD lists CWE as N/A, the intelligence tags correctly classify this as a Buffer Overflow / out-of-bounds access (CWE-787/CWE-125 class). CPE data confines the exposure to linux_kernel 6.16 rc1, rc2, and rc3, i.e., pre-release development kernels containing the LoongArch EIOINTC emulation code.

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.8 HIGH

Local KVM access (AV:L, PR:L) with a straightforward oversized-value trigger (AC:L); host kernel memory corruption yields high C/I/A within the host (S:U).

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

LoongArch: KVM: Check validity of "num_cpu" from user space

The maximum supported cpu number is EIOINTC_ROUTE_MAX_VCPUS about irqchip EIOINTC, here add validation about cpu number to avoid array pointer overflow.

Executive ViewAI

Why It Matters

LoongArch virtualization infrastructure running Linux kernel 6.16 rc1-rc3 contains a local privilege escalation vulnerability that could allow system-level attackers to compromise hosted virtual machines and access host memory. Although real-world exploitation risk remains low (EPSS 0.1%), affected organizations face a direct threat to virtualization security and workload isolation. The vendor has provided a fix in the final kernel release, requiring a straightforward patch deployment.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Low
LoongArch-only KVM code path, present only in 6.16 pre-release kernels
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.1%
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

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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

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