Exploit databaseDownload repository ZIP
GH-7d1759469adaacd6cb6ef41c6fb3d109
repobor/ghostlock-cve-2026-43499-4.19-thyme
Sources for CVE-2026-43499
166 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files7
repobor/ghostlock-cve-2026-43499-4.19-thymeRevision 5273f9c145d1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lkm/sukisu/mod_glue.c
C · 2,275 bytes/*
* modpost replacement for our out-of-tree KernelSU build.
*
* kbuild normally generates <module>.mod.c with this_module + __versions, and
* modpost writes the vermagic/name/depends modinfo entries. We compile the
* SukiSU sources directly with clang (no kbuild, no full kernel tree), so this
* file supplies the same pieces by hand:
*
* - struct module __this_module in .gnu.linkonce.this_module, with .init and
* .exit pointing at the aliases that module_init/module_exit created in
* core/init.c;
* - .modinfo: vermagic must match the device verbatim, name= and depends=
* are what the loader keys on;
* - __versions: deliberately a 1-byte section. 4.19's check_version()
* treats "section exists, zero entries" as "no version info, warn and
* continue"; a missing section instead goes through try_to_force_load(),
* which is compiled out (CONFIG_MODULE_FORCE_LOAD=n) and fails -ENOEXEC.
* A module shipped prebuilt for this kernel does the same;
* - .plt/.init.plt: module_frob_arch_sections() hard-requires both when
* CONFIG_ARM64_MODULE_PLTS=y, before it lays the module out.
*
* Compiled with the same flags as the rest of the module.
*/
#include <linux/module.h>
#include <linux/init.h>
/* created by module_init()/module_exit() in core/init.c */
extern int init_module(void);
extern void cleanup_module(void);
char __this_module_size_check[(sizeof(struct module) == 0x340) ? 1 : -1];
struct module __this_module
__attribute__((section(".gnu.linkonce.this_module"), used)) = {
.name = "kernelsu",
.init = init_module,
.exit = cleanup_module,
};
static const char __attribute__((section(".modinfo"), used, aligned(1)))
modinfo_vermagic[] =
"vermagic=4.19.157-perf-g92c089fc2d37 SMP preempt mod_unload modversions aarch64";
static const char __attribute__((section(".modinfo"), used, aligned(1)))
modinfo_name[] = "name=kernelsu";
static const char __attribute__((section(".modinfo"), used, aligned(1)))
modinfo_depends[] = "depends=";
/* zero entries: check_version() warns "no symbol version" and passes */
__asm__(
".section __versions,\"a\"\n"
".byte 0\n"
".previous\n"
".section .plt,\"ax\"\n"
".byte 0\n"
".previous\n"
".section .init.plt,\"ax\"\n"
".byte 0\n"
".previous\n"
);