
eprocess offset puller for relevant member offsets and function addresses for cve-2026-40369
An IDA Python script for extracting critical kernel metadata from Windows ntoskrnl.exe binaries. This tool automatically extracts function RVAs and _EPROCESS structure offsets required for developing exploits targeting CVE-2026-40369 and other kernel vulnerabilities.
This tool aids in compiling successful exploits for CVE-2026-40369 by automatically extracting version-specific kernel metadata that must be hardcoded into exploit payloads. The extracted values ensure proper function hooking and structure member access across different Windows builds and patch levels.
Automatic Function RVA Extraction: Retrieves RVAs for key kernel functions:
ExpGetProcessInformationExpQuerySystemInformationCmpLayerVersionCountCmpLayerVersionsPsInitialSystemProcess_EPROCESS Structure Offsets: Extracts member offsets for:
UniqueProcessIdActiveProcessLinksTokenImageFileNameReady-to-Use Output: Generates formatted output ready to paste directly into CVE-2026-40369 exploit code
Open ntoskrnl.exe in IDA Pro
Load the matching Windows PDB symbols:
Run the script:
extract_metadata.pyThe script will output:
=== RVAs (image base = 0x140000000) ===
ExpGetProcessInformation: ea=0x1400a1234 rva=0xa1234
ExpQuerySystemInformation: ea=0x1400a5678 rva=0xa5678
...
=== _EPROCESS member offsets ===
_EPROCESS.UniqueProcessId: 0x440
_EPROCESS.ActiveProcessLinks: 0x448
_EPROCESS.Token: 0x4d8
_EPROCESS.ImageFileName: 0x5e8
=== g_builds[] row (paste at poc.c:146) ===
{ 26200, 8037, 0xA1234, 0xA5678, 0x440, 0x448, 0x4D8, 0x5E8 },
| Error | Solution |
|---|---|
| "NOT FOUND (PDB not loaded?)" | Load the correct Windows PDB file for your ntoskrnl.exe version |
| "_EPROCESS not in Local Types" | Ensure PDB is properly loaded; try File → Load File → PDB File |
| Script runs but no output | Check that IDA Python console is open (Windows → Output windows → Python) |
This script works with any Windows ntoskrnl.exe version where PDB symbols are available. Tested with Windows 10 and Windows 11.
This tool is provided as-is for security research and authorized analysis purposes only.