Exploit database

GH-64512fbefaddfbf371789d6022482152

h1z3-br0/cve-2026-98432

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-98432

33 sources

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

Repository files35
h1z3-br0/cve-2026-98432Revision fa7e5d9b81d7

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;
}