CVE-2024-40989 KVM: arm64: Disassociate vcpus from redistributor region on teardown

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel's KVM arm64 subsystem allows attackers to potentially execute code or escalate privileges via dangling pointers during redistributor teardown.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-40989?

CVE-2024-40989 is a high-severity use after free vulnerability in Linux kernel, published on 12 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-416

Which versions are affected by CVE-2024-40989?

It affects 1 product.

Linux distribution packages (40)
bpftool-debuginfo Red Hat:rhel_eus:9.2::appstreamAll versions0:7.0.0-284.97.1.el9_2
kernel-64k-debug-debuginfo Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-debug-devel Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-debug-devel-matched Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-debuginfo Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-devel Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-devel-matched Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-debug-debuginfo Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-debug-devel Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-debug-devel-matched Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-debuginfo Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-debuginfo-common-aarch64 Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-debuginfo-common-ppc64le Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-debuginfo-common-s390x Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-debuginfo-common-x86_64 Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-devel Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-devel-matched Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-tools-debuginfo Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-zfcpdump-debuginfo Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-zfcpdump-devel Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
kernel-zfcpdump-devel-matched Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
perf Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
perf-debuginfo Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
python3-perf-debuginfo Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
rtla Red Hat:rhel_eus:9.2::appstreamAll versions0:5.14.0-284.97.1.el9_2
bpftool Red Hat:rhel_eus:9.2::baseosAll versions0:7.0.0-284.97.1.el9_2
bpftool-debuginfo Red Hat:rhel_eus:9.2::baseosAll versions0:7.0.0-284.97.1.el9_2
kernel Red Hat:rhel_eus:9.2::baseosAll versions0:5.14.0-284.97.1.el9_2
kernel-64k Red Hat:rhel_eus:9.2::baseosAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-core Red Hat:rhel_eus:9.2::baseosAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-debug Red Hat:rhel_eus:9.2::baseosAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-debug-core Red Hat:rhel_eus:9.2::baseosAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-debug-debuginfo Red Hat:rhel_eus:9.2::baseosAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-debug-modules Red Hat:rhel_eus:9.2::baseosAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-debug-modules-core Red Hat:rhel_eus:9.2::baseosAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-debug-modules-extra Red Hat:rhel_eus:9.2::baseosAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-debuginfo Red Hat:rhel_eus:9.2::baseosAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-modules Red Hat:rhel_eus:9.2::baseosAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-modules-core Red Hat:rhel_eus:9.2::baseosAll versions0:5.14.0-284.97.1.el9_2
kernel-64k-modules-extra Red Hat:rhel_eus:9.2::baseosAll versions0:5.14.0-284.97.1.el9_2

Products include Linux kernel.

How do I fix CVE-2024-40989?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-40989 being exploited?

There is no known exploitation of CVE-2024-40989 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-68217, BELL-CVE-2024-40989, DEBIAN-CVE-2024-40989, GHSA-x78r-6w48-6g3q, RHSA-2024:11482, RHSA-2024:11483 and 2 more.

Is CVE-2024-40989 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free