Exploit databaseDownload repository ZIP
GH-557a35ec88cecc5153df8ffeda95d1c2
bob11vrdp/cve-2022-39425
Sources for CVE-2022-39425
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files35
bob11vrdp/cve-2022-39425Revision 1d03f54cf1ec
- ↑..Parent directory
- CPUMR0.cpp
- CPUMR0A.asm
- EMR0.cpp
- GIMR0.cpp
- GIMR0Hv.cpp
- GMMR0.cpp
- GMMR0Internal.h
- GVMMR0.cpp
- GVMMR0Internal.h
- HMR0.cpp
- HMR0A.asm
- HMSVMR0.cpp
- HMSVMR0.h
- HMVMXR0.cpp
- HMVMXR0.h
- IOMR0.cpp
- IOMR0IoPort.cpp
- IOMR0Mmio.cpp
- Makefile.kup
- NEMR0Native-stubs.cpp
- NEMR0Native-win.cpp
- NEMR0NativeA-win.asm
- PDMR0DevHlp.cpp
- PDMR0Device.cpp
- PDMR0Driver.cpp
- PGMR0.cpp
- PGMR0Bth.h
- PGMR0Pool.cpp
- PGMR0SharedPage.cpp
- VMMR0.cpp
- VMMR0.def
- VMMR0JmpA-amd64.asm
- VMMR0JmpA-x86.asm
- VMMR0TripleFaultHack.cpp
- VMMR0TripleFaultHackA.asm
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
VirtualBox-6.1.38/src/VBox/VMM/VMMR0/GIMR0.cpp
C++ · 3,109 bytes/* $Id: GIMR0.cpp $ */
/** @file
* Guest Interface Manager (GIM) - Host Context Ring-0.
*/
/*
* Copyright (C) 2014-2020 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*********************************************************************************************************************************
* Header Files *
*********************************************************************************************************************************/
#define LOG_GROUP LOG_GROUP_GIM
#include <VBox/vmm/gim.h>
#include "GIMInternal.h"
#include "GIMHvInternal.h"
#include <VBox/vmm/vmcc.h>
#include <VBox/err.h>
/**
* Does ring-0 per-VM GIM initialization.
*
* @returns VBox status code.
* @param pVM The cross context VM structure.
*/
VMMR0_INT_DECL(int) GIMR0InitVM(PVMCC pVM)
{
if (!GIMIsEnabled(pVM))
return VINF_SUCCESS;
switch (pVM->gim.s.enmProviderId)
{
case GIMPROVIDERID_HYPERV:
return gimR0HvInitVM(pVM);
default:
break;
}
return VINF_SUCCESS;
}
/**
* Does ring-0 per-VM GIM termination.
*
* @returns VBox status code.
* @param pVM The cross context VM structure.
*/
VMMR0_INT_DECL(int) GIMR0TermVM(PVMCC pVM)
{
if (!GIMIsEnabled(pVM))
return VINF_SUCCESS;
switch (pVM->gim.s.enmProviderId)
{
case GIMPROVIDERID_HYPERV:
return gimR0HvTermVM(pVM);
default:
break;
}
return VINF_SUCCESS;
}
/**
* Updates the paravirtualized TSC supported by the GIM provider.
*
* @returns VBox status code.
* @retval VINF_SUCCESS if the paravirt. TSC is setup and in use.
* @retval VERR_GIM_NOT_ENABLED if no GIM provider is configured for this VM.
* @retval VERR_GIM_PVTSC_NOT_AVAILABLE if the GIM provider does not support any
* paravirt. TSC.
* @retval VERR_GIM_PVTSC_NOT_IN_USE if the GIM provider supports paravirt. TSC
* but the guest isn't currently using it.
*
* @param pVM The cross context VM structure.
* @param u64Offset The computed TSC offset.
*
* @thread EMT(pVCpu)
*/
VMMR0_INT_DECL(int) GIMR0UpdateParavirtTsc(PVMCC pVM, uint64_t u64Offset)
{
switch (pVM->gim.s.enmProviderId)
{
case GIMPROVIDERID_HYPERV:
return gimR0HvUpdateParavirtTsc(pVM, u64Offset);
case GIMPROVIDERID_KVM:
return VINF_SUCCESS;
case GIMPROVIDERID_NONE:
return VERR_GIM_NOT_ENABLED;
default:
break;
}
return VERR_GIM_PVTSC_NOT_AVAILABLE;
}