GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2025-38367 (GCVE-0-2025-38367)

Vulnerability from cvelistv5 – Published: 2025-07-25 12:47 – Updated: 2026-08-05 12:01
VLAI
Title
LoongArch: KVM: Avoid overflow with array index
Summary
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.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 3956a52bc05bd811082a3c9d2b423ee957e6fefc , < 2cc84c4b0d70d42e291862ecc848890d18e1004a (git)
Affected: 3956a52bc05bd811082a3c9d2b423ee957e6fefc , < 080e8d2ecdfde588897aa8a87a8884061f4dbbbb (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.13
Unaffected: 0 , < 6.13 (semver)
Unaffected: 6.15.5 , ≤ 6.15.* (semver)
Unaffected: 6.16 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "arch/loongarch/kvm/intc/eiointc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "2cc84c4b0d70d42e291862ecc848890d18e1004a",
              "status": "affected",
              "version": "3956a52bc05bd811082a3c9d2b423ee957e6fefc",
              "versionType": "git"
            },
            {
              "lessThan": "080e8d2ecdfde588897aa8a87a8884061f4dbbbb",
              "status": "affected",
              "version": "3956a52bc05bd811082a3c9d2b423ee957e6fefc",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "arch/loongarch/kvm/intc/eiointc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.13"
            },
            {
              "lessThan": "6.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.15.*",
              "status": "unaffected",
              "version": "6.15.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.16",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.15.5",
                  "versionStartIncluding": "6.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.16",
                  "versionStartIncluding": "6.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: KVM: Avoid overflow with array index\n\nThe variable index is modified and reused as array index when modify\nregister EIOINTC_ENABLE. There will be array index overflow problem."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "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()` \u2192 `kvm_io_bus_write()`. The attacker must be executing code on the physical host inside a VM, not sending network traffic.\nAC:L - A single deterministic 2/4/8-byte IOCSR write to offset 0x200\u20130x21f 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.\nPR:L - IOCSR instructions require PLV0, so the attacker needs kernel privilege inside the guest \u2014 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.\nUI:N - The guest triggers the flaw entirely on its own by executing one instruction; no host operator, VMM action, or victim interaction is needed.\nS:C - The vulnerable component is the host kernel\u0027s KVM EIOINTC emulation, while the attacker\u0027s authority is confined to the guest; a guest-initiated write causes out-of-bounds accesses in host kernel memory, crossing the guest\u2192hypervisor security boundary.\nC: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.\nI:H - Values harvested out of bounds are fed into `eiointc_enable_irq()`/`eiointc_update_irq()`, which then modify host-maintained state \u2014 `coreisr` words, `sw_coreisr` bitmaps, and queued vCPU interrupt-pending bits \u2014 so attacker-influenced out-of-bounds data corrupts host kernel interrupt-controller state and forces arbitrary interrupt injection/withdrawal.\nA:H - The corrupted indexing drives `eiointc_update_irq()` for IRQs the guest could not otherwise reach, where `kvm_get_vcpu(s-\u003ekvm, s-\u003esw_coremap[irq])` can return NULL and `kvm_vcpu_ioctl_interrupt()` dereferences it while `eiointc-\u003elock` is held with interrupts disabled, producing a host kernel oops/hang; even short of that, spurious or permanently lost interrupt delivery wedges the VM."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T12:01:24.525Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/2cc84c4b0d70d42e291862ecc848890d18e1004a"
        },
        {
          "url": "https://git.kernel.org/stable/c/080e8d2ecdfde588897aa8a87a8884061f4dbbbb"
        }
      ],
      "title": "LoongArch: KVM: Avoid overflow with array index",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-38367",
    "datePublished": "2025-07-25T12:47:41.965Z",
    "dateReserved": "2025-04-16T04:51:24.008Z",
    "dateUpdated": "2026-08-05T12:01:24.525Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-38367",
      "date": "2026-09-15",
      "epss": "0.00148",
      "percentile": "0.0433"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-38367\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-07-25T13:15:25.603\",\"lastModified\":\"2026-07-30T06:23:10.600\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nLoongArch: KVM: Avoid overflow with array index\\n\\nThe variable index is modified and reused as array index when modify\\nregister EIOINTC_ENABLE. There will be array index overflow problem.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: LoongArch: KVM: Evitar el desbordamiento con el \u00edndice de la matriz. La variable \u00edndice se modifica y se reutiliza como \u00edndice de la matriz al modificar el registro EIOINTC_ENABLE. Se producir\u00e1 un problema de desbordamiento del \u00edndice de la matriz.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"arch/loongarch/kvm/intc/eiointc.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"3956a52bc05bd811082a3c9d2b423ee957e6fefc\",\"lessThan\":\"2cc84c4b0d70d42e291862ecc848890d18e1004a\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"3956a52bc05bd811082a3c9d2b423ee957e6fefc\",\"lessThan\":\"080e8d2ecdfde588897aa8a87a8884061f4dbbbb\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"arch/loongarch/kvm/intc/eiointc.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.13\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.13\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.15.5\",\"lessThanOrEqual\":\"6.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.16\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H\",\"baseScore\":8.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":2.0,\"impactScore\":6.0},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-129\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.13\",\"versionEndExcluding\":\"6.15.5\",\"matchCriteriaId\":\"0CC768E2-3BBC-4A6E-9C2F-ECB27A703C2D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"6D4894DB-CCFE-4602-B1BF-3960B2E19A01\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"09709862-E348-4378-8632-5A7813EDDC86\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*\",\"matchCriteriaId\":\"415BF58A-8197-43F5-B3D7-D1D63057A26E\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/080e8d2ecdfde588897aa8a87a8884061f4dbbbb\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/2cc84c4b0d70d42e291862ecc848890d18e1004a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:29:43+00:00",
      "cve": "CVE-2025-38367",
      "id": "CVE-2025-38367",
      "initial_release_date": "2025-07-25T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: LoongArch: KVM: Avoid overflow with array index",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-38367.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-07-25T00:47:25Z",
      "cve": "CVE-2025-38367",
      "id": "CVE-2025-38367",
      "initial_release_date": "2025-07-28T23:24:05Z",
      "product_status:known_not_affected": "416",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2025-38367",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2025-38367.json",
      "version": "5"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…