Menu

Star on GitHub · 3.2k

CVE-2024-40953

7.9 · HIGH

In the Linux kernel, the following vulnerability has been resolved: KVM: Fix a data race on last_boosted_vcpu in kvm_vcpu_on_spin() Use {READ,WRITE}_ONCE() to access kvm->last_boosted_vcpu to ens…

Published Jul 12, 2024CWE-362EPSS 0.20%

Overview

CVE-2024-40953 is a high-severity vulnerability. It was published on July 12, 2024 and has a CVSS 3.1 base score of 7.9 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.9, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

KVM: Fix a data race on last_boosted_vcpu in kvm_vcpu_on_spin()

Use {READ,WRITE}_ONCE() to access kvm->last_boosted_vcpu to ensure the

loads and stores are atomic. In the extremely unlikely scenario the

compiler tears the stores, it's theoretically possible for KVM to attempt

to get a vCPU using an out-of-bounds index, e.g. if the write is split

into multiple 8-bit stores, and is paired with a 32-bit load on a VM with

257 vCPUs:

CPU0 CPU1

last_boosted_vcpu = 0xff;

(last_boosted_vcpu = 0x100)

last_boosted_vcpu[15:8] = 0x01;

i = (last_boosted_vcpu = 0x1ff)

last_boosted_vcpu[7:0] = 0x00;

vcpu = kvm->vcpu_array[0x1ff];

As detected by KCSAN:

BUG: KCSAN: data-race in kvm_vcpu_on_spin [kvm] / kvm_vcpu_on_spin [kvm]

write to 0xffffc90025a92344 of 4 bytes by task 4340 on c

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-40953?

CVE-2024-40953 is a high-severity vulnerability. It was published on July 12, 2024 and has a CVSS 3.1 base score of 7.9 (HIGH).

How severe is CVE-2024-40953?

This vulnerability has a CVSS 3.1 base score of 7.9, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-40953?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-40953?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-40953 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2024

View all