7.1
HIGH
CVE-2024-50115
KVM Linux Kernel Out-of-Bounds Read Vulnerability
Description

In the Linux kernel, the following vulnerability has been resolved: KVM: nSVM: Ignore nCR3[4:0] when loading PDPTEs from memory Ignore nCR3[4:0] when loading PDPTEs from memory for nested SVM, as bits 4:0 of CR3 are ignored when PAE paging is used, and thus VMRUN doesn't enforce 32-byte alignment of nCR3. In the absolute worst case scenario, failure to ignore bits 4:0 can result in an out-of-bounds read, e.g. if the target page is at the end of a memslot, and the VMM isn't using guard pages. Per the APM: The CR3 register points to the base address of the page-directory-pointer table. The page-directory-pointer table is aligned on a 32-byte boundary, with the low 5 address bits 4:0 assumed to be 0. And the SDM's much more explicit: 4:0 Ignored Note, KVM gets this right when loading PDPTRs, it's only the nSVM flow that is broken.

INFO

Published Date :

Nov. 5, 2024, 6:15 p.m.

Last Modified :

Nov. 8, 2024, 7:14 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

No

Impact Score :

5.2

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2024-50115 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-50115 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-50115 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Nov. 08, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
    Changed Reference Type https://git.kernel.org/stable/c/2c4adc9b192a0815fe58a62bc0709449416cc884 No Types Assigned https://git.kernel.org/stable/c/2c4adc9b192a0815fe58a62bc0709449416cc884 Patch
    Changed Reference Type https://git.kernel.org/stable/c/426682afec71ea3f889b972d038238807b9443e4 No Types Assigned https://git.kernel.org/stable/c/426682afec71ea3f889b972d038238807b9443e4 Patch
    Changed Reference Type https://git.kernel.org/stable/c/58cb697d80e669c56197f703e188867c8c54c494 No Types Assigned https://git.kernel.org/stable/c/58cb697d80e669c56197f703e188867c8c54c494 Patch
    Changed Reference Type https://git.kernel.org/stable/c/6876793907cbe19d42e9edc8c3315a21e06c32ae No Types Assigned https://git.kernel.org/stable/c/6876793907cbe19d42e9edc8c3315a21e06c32ae Patch
    Changed Reference Type https://git.kernel.org/stable/c/76ce386feb14ec9a460784fcd495d8432acce7a5 No Types Assigned https://git.kernel.org/stable/c/76ce386feb14ec9a460784fcd495d8432acce7a5 Patch
    Changed Reference Type https://git.kernel.org/stable/c/f559b2e9c5c5308850544ab59396b7d53cfc67bd No Types Assigned https://git.kernel.org/stable/c/f559b2e9c5c5308850544ab59396b7d53cfc67bd Patch
    Added CWE NIST CWE-125
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.2 up to (excluding) 5.10.229 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.170 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.115 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.59 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.11.6 *cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc4:*:*:*:*:*:*
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Nov. 08, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://git.kernel.org/stable/c/76ce386feb14ec9a460784fcd495d8432acce7a5 [No types assigned]
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Nov. 05, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: KVM: nSVM: Ignore nCR3[4:0] when loading PDPTEs from memory Ignore nCR3[4:0] when loading PDPTEs from memory for nested SVM, as bits 4:0 of CR3 are ignored when PAE paging is used, and thus VMRUN doesn't enforce 32-byte alignment of nCR3. In the absolute worst case scenario, failure to ignore bits 4:0 can result in an out-of-bounds read, e.g. if the target page is at the end of a memslot, and the VMM isn't using guard pages. Per the APM: The CR3 register points to the base address of the page-directory-pointer table. The page-directory-pointer table is aligned on a 32-byte boundary, with the low 5 address bits 4:0 assumed to be 0. And the SDM's much more explicit: 4:0 Ignored Note, KVM gets this right when loading PDPTRs, it's only the nSVM flow that is broken.
    Added Reference kernel.org https://git.kernel.org/stable/c/58cb697d80e669c56197f703e188867c8c54c494 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/6876793907cbe19d42e9edc8c3315a21e06c32ae [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/2c4adc9b192a0815fe58a62bc0709449416cc884 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/426682afec71ea3f889b972d038238807b9443e4 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/f559b2e9c5c5308850544ab59396b7d53cfc67bd [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-50115 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-50115 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability