CVE-2024-40989
published high CVSS 3.1 · 7.8KVM: arm64: Disassociate vcpus from redistributor region on teardown
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxe5a35635464bc5304674b84ea42615a3fd0bd949 to < 68df4fc449fcc24347209e500ce26d5816705a77 · e5a35635464bc5304674b84ea42615a3fd0bd949 to < 48bb62859d47c5c4197a8c01128d0fa4f46ee58c · e5a35635464bc5304674b84ea42615a3fd0bd949 to < 152b4123f21e6aff31cea01158176ad96a999c76 · e5a35635464bc5304674b84ea42615a3fd0bd949 to < 0d92e4a7ffd5c42b9fa864692f82476c0bf8bcc8 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.13 (affected) · 0 to < 5.13 (unaffected · semver) · 6.1.96 through 6.1.* (unaffected · semver) · 6.6.36 through 6.6.* (unaffected · semver) · 6.9.7 through 6.9.* (unaffected · semver) · 6.10 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 evaluationALAS2023-2025-836 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| Debian | bookworm | linux | Advisory build | 6.1.99-1 | DSA-5731-1 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-debug-kvm | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-kvm | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.119-1~deb11u1 | DLA-4008-1 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernelx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-abi-stablelistsx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-corex86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-cross-headersaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-cross-headersx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-debugx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-debug-corex86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-debug-develx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-debug-modulesx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-debug-modules-extrax86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-develx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-docx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-headersaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-headersx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-modulesx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-modules-extrax86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-toolsaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-toolsx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-tools-libsaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-tools-libsx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-tools-libs-develaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-tools-libs-develx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | perfaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | perfx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | python3-perfaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | python3-perfx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:7.4.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:7.4.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernelx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-abi-stablelistsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-cross-headersaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-cross-headersx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debugx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-develx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-modulesx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-modules-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-modules-extrax86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-uki-virtx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-develx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-devel-matchedx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-docx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-headersaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-headersx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-modulesx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-modules-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-modules-extrax86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-toolsaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-toolsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libsaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libs-develaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libs-develx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-uki-virtx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-uki-virt-addonsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | libperfaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | libperfx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: Disassociate vcpus from redistributor region on teardown When tearing down a redistributor region, make sure we don't have any dangling pointer to that region stored in a vcpu.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The entire attack is a sequence of ioctls on /dev/kvm and the resulting VM/vCPU/vgic-device file descriptors (KVM_CREATE_DEVICE, KVM_SET_DEVICE_ATTR, KVM_RUN, KVM_GET_DEVICE_ATTR); no network, adjacent-network, or physical path reaches arch/arm64/kvm/vgic. AC:L - No race and no unpredictable state is involved — the attacker deterministically forces the free (redist region with count < nr_vcpus followed by a failing first KVM_RUN, or MMIO-bus exhaustion via ~1000 ioeventfds to make kvm_io_bus_register_dev return -ENOSPC), then re-inits the vgic and reads GICR_TYPER at will, with unlimited time to groom and spray the reclaimed kmalloc-cg-64 slot. PR:L - Creating a VM, a KVM_DEV_TYPE_ARM_VGIC_V3 device and vCPUs requires no capability at all — only the ability to open /dev/kvm, which is world-accessible (0666 udev rule) or kvm-group on mainstream distros and is exposed to unprivileged app-domain virtualization on Android/AVF. UI:N - The attacker performs the region setup, the failing KVM_RUN, the re-init and the GICR_TYPER read entirely within its own process; no victim action, mount, or file open is required. S:U - The free is only reachable from the host VMM process, not from guest code, so the attacker and the corrupted host kernel heap are in the same security authority — this is standard local kernel privilege escalation, not a guest-to-host escape. C:H - vgic_mmio_vcpu_rdist_is_last() dereferences a stale pointer into a freed, reclaimed kmalloc-cg-64 object, reading base/count/free_index from whatever heap data now occupies that slot; per kernel scoring guidance a use-after-free read of reclaimed slab memory is treated as High, and the resulting GICR_TYPER_LAST bit forms a repeatable oracle over sprayed heap contents. I:H - The bug leaves a permanently dangling kernel heap pointer in vcpu->arch.vgic_cpu.rdreg that survives arbitrary reallocation of that slab object, which is the canonical memory-corruption primitive class; the stale dereference also feeds falsified redistributor topology into GICR_TYPER as seen by the guest and by the migration save/restore stream. A:H - Dereferencing freed slab memory produces a KASAN use-after-free splat (fatal under panic_on_warn) and can oops outright if the backing page has been returned to the allocator, and the attacker can re-trigger the GICR_TYPER read arbitrarily often.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | e5a35635464bc5304674b84ea42615a3fd0bd949 to < 68df4fc449fcc24347209e500ce26d5816705a77 (affected · git)e5a35635464bc5304674b84ea42615a3fd0bd949 to < 48bb62859d47c5c4197a8c01128d0fa4f46ee58c (affected · git)e5a35635464bc5304674b84ea42615a3fd0bd949 to < 152b4123f21e6aff31cea01158176ad96a999c76 (affected · git)e5a35635464bc5304674b84ea42615a3fd0bd949 to < 0d92e4a7ffd5c42b9fa864692f82476c0bf8bcc8 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.13 (affected)0 to < 5.13 (unaffected · semver)6.1.96 through 6.1.* (unaffected · semver)6.6.36 through 6.6.* (unaffected · semver)6.9.7 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/0d92e4a7ffd5c42b9fa864692f82476c0bf8bcc8
- https://git.kernel.org/stable/c/152b4123f21e6aff31cea01158176ad96a999c76
- https://git.kernel.org/stable/c/48bb62859d47c5c4197a8c01128d0fa4f46ee58c
- https://git.kernel.org/stable/c/68df4fc449fcc24347209e500ce26d5816705a77
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Provider assertions
3Linux · cna
KVM: arm64: Disassociate vcpus from redistributor region on teardown
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2e56da11a15eed18a2e1a67701aecde2ac48bdb31522bbe22385b38279a0e761
- Ingested
- 23 Sep 2026, 08:26:02 UTC
- Source record
- Official CVE record