Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-38367

published high CVSS 3.1 · 8.8

LoongArch: KVM: Avoid overflow with array index

Published
25 Jul 2025, 12:47:41 UTC
Updated
05 Aug 2026, 12:01:24 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux3956a52bc05bd811082a3c9d2b423ee957e6fefc to < 2cc84c4b0d70d42e291862ecc848890d18e1004a · 3956a52bc05bd811082a3c9d2b423ee957e6fefc to < 080e8d2ecdfde588897aa8a87a8884061f4dbbbb · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.13 (affected) · 0 to < 6.13 (unaffected · semver) · 6.15.5 through 6.15.* (unaffected · semver) · 6.16 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: LoongArch: KVM: Avoid overflow with array index The variable index is modified and reused as array index when modify register EIOINTC_ENABLE. There will be array index overflow problem.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable code is reached only by a guest vCPU executing a privileged `iocsrwr*` instruction against the in-kernel EIOINTC at IOCSR 0x1400, trapped locally on the host via `kvm_emu_iocsr()` → `kvm_io_bus_write()`. The attacker must be executing code on the physical host inside a VM, not sending network traffic. AC:L - A single deterministic 2/4/8-byte IOCSR write to offset 0x200–0x21f reproduces the out-of-bounds indexing every time, with no race, no timing window, and no dependence on memory layout the attacker cannot influence. The attacker also pre-seeds the out-of-bounds source bytes by writing the adjacent COREMAP/COREISR registers first. PR:L - IOCSR instructions require PLV0, so the attacker needs kernel privilege inside the guest — which is exactly what an ordinary cloud/virtualization tenant already possesses in its own VM, and no privilege at all on the host. From the host security authority being attacked, this is a low-privileged, untrusted principal. UI:N - The guest triggers the flaw entirely on its own by executing one instruction; no host operator, VMM action, or victim interaction is needed. S:C - The vulnerable component is the host kernel's KVM EIOINTC emulation, while the attacker's authority is confined to the guest; a guest-initiated write causes out-of-bounds accesses in host kernel memory, crossing the guest→hypervisor security boundary. C:H - Guest input causes the host kernel to read up to ~192 bytes beyond the 32-byte `enable`/`isr` arrays, and those out-of-bounds host-memory values directly determine which interrupts are asserted/deasserted, giving the guest an observable oracle over host kernel memory it is not entitled to read. I:H - Values harvested out of bounds are fed into `eiointc_enable_irq()`/`eiointc_update_irq()`, which then modify host-maintained state — `coreisr` words, `sw_coreisr` bitmaps, and queued vCPU interrupt-pending bits — so attacker-influenced out-of-bounds data corrupts host kernel interrupt-controller state and forces arbitrary interrupt injection/withdrawal. A:H - The corrupted indexing drives `eiointc_update_irq()` for IRQs the guest could not otherwise reach, where `kvm_get_vcpu(s->kvm, s->sw_coremap[irq])` can return NULL and `kvm_vcpu_ioctl_interrupt()` dereferences it while `eiointc->lock` is held with interrupts disabled, producing a host kernel oops/hang; even short of that, spurious or permanently lost interrupt delivery wedges the VM.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 3956a52bc05bd811082a3c9d2b423ee957e6fefc to < 2cc84c4b0d70d42e291862ecc848890d18e1004a (affected · git)3956a52bc05bd811082a3c9d2b423ee957e6fefc to < 080e8d2ecdfde588897aa8a87a8884061f4dbbbb (affected · git)Default: unaffected Linux · cna
Linux Linux 6.13 (affected)0 to < 6.13 (unaffected · semver)6.15.5 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

1

Linux · cna

LoongArch: KVM: Avoid overflow with array index

Provenance

Schema
5.2
Searchable
yes
Content hash
fdae39a64987f335a5b1921bbd74653f26a8e36ae7b6c2512bbedb77ddc414bd
Ingested
23 Sep 2026, 08:46:47 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected