Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-40953

7.9 · HIGH
Published Jul 12, 2024 linux CWE-362 EPSS 0.20% (9th pctl)

Overview

CVE-2024-40953 is a high-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 2.6.39, < 4.19.323 Affected

Frequently Asked Questions

What is CVE-2024-40953?

CVE-2024-40953 is a high-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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's AI-powered security agents can automatically detect CVE-2024-40953 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.