Bug 2323955 (CVE-2024-50115) - CVE-2024-50115 kernel: KVM: nSVM: Ignore nCR3[4:0] when loading PDPTEs from memory
Summary: CVE-2024-50115 kernel: KVM: nSVM: Ignore nCR3[4:0] when loading PDPTEs from m...
Keywords:
Status: NEW
Alias: CVE-2024-50115
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2324002
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-05 18:04 UTC by OSIDB Bzimport
Modified: 2025-04-25 17:25 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2025:0001 0 None None None 2025-01-01 07:23:42 UTC
Red Hat Product Errata RHSA-2024:11486 0 None None None 2024-12-19 00:43:22 UTC

Description OSIDB Bzimport 2024-11-05 18:04:34 UTC
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.

Comment 2 errata-xmlrpc 2024-12-19 00:43:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:11486 https://access.redhat.com/errata/RHSA-2024:11486


Note You need to log in before you can comment on or make changes to this bug.