CVE-2025-38366

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

HIGH
7.8
CVSS Score
Published: July 25, 2025 at 12:47 PM UTC
Updated: August 5, 2026 at 12:44 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.13 ≤ v < 6.15.56.13 ≤ v < 6.161ad7efa552fd5cf4e8c49fea863c5c6a5dcf9f006.16 rc16.16 rc26.16 rc3
Vendor states this is fixed in a3293b4078ee93174f70f36d3ab7618554ce6ab6 (fixed)
Vendor states this is fixed in cc8d5b209e09d3b52bca1ffe00045876842d96ae (fixed)
Vendor states this is fixed in 6.13 (unaffected)
Vendor states this is fixed in 6.15.5 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (2)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a3293b4078ee93174f70f36d3ab7618554ce6ab6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cc8d5b209e09d3b52bca1ffe00045876842d96ae

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card