
# CVE-2024-12227 - NTIOLib_X64.sys DoS PoC
CVE-2024-12227 - NTIOLib_X64.sys DoS PoC
Proof of Concept for CVE-2024-12227 - Null Pointer Dereference vulnerability in MSI Dragon Center's NTIOLib_X64.sys driver.
NTIOLib_X64.sys version 3.0.0.10 contains a null pointer dereference vulnerability in the ReadPhysicalMemory function (IOCTL 0xC3506104). The driver does not check the return value of MmMapIoSpace before calling MmUnmapIoSpace. If MmMapIoSpace returns NULL, calling MmUnmapIoSpace with a NULL pointer causes a Blue Screen of Death (BSOD).
The vulnerable ReadPhysicalMemory handler (IOCTL 0xC3506104) calls MmMapIoSpace to map physical memory but does not verify if it returns NULL. The code then:
MmUnmapIoSpace with the pointer, even if it's NULLIf MmMapIoSpace fails and returns NULL, calling MmUnmapIoSpace(NULL, ...) causes a BSOD.
In version 3.0.0.12, NULL checks were added before using the pointer and before calling MmUnmapIoSpace.
WARNING: This PoC will cause a BSOD. Only run in a virtual machine or test environment.
python poc_cve_2024_12227.py
MmMapIoSpace fails and returns NULL, MmUnmapIoSpace(NULL) is called, causing BSODThis PoC is for educational and security research purposes only. Use only in authorized testing environments. The authors are not responsible for any misuse of this code.