CVE-2025-38366

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

State
Published
Severity
7.8 High
Published
Jul 25, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1ad7efa552fd5cf4e8c49fea863c5c6a5dcf9f00 to before a3293b4078ee93174f70f36d3ab7618554ce6ab6Affected
  • 1ad7efa552fd5cf4e8c49fea863c5c6a5dcf9f00 to before cc8d5b209e09d3b52bca1ffe00045876842d96aeAffected
LinuxLinux
  • 6.13Affected
  • before 6.13Not affected
  • 6.15.5 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.