Exploit database

GH-d5555510dcc3660d1db2c537649f03f0

feng1586/cve-2026-64560-public

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-64560

18 sources

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

Repository files18
feng1586/cve-2026-64560-publicRevision 63b4f2b7b497

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

src/kprobe/setname.c

C · 853 bytes
/* setname.c — 周期性调用 prctl(PR_SET_NAME),让 __set_task_comm 触发 kprobe
 * 用法: setname [持续时间ms] [名字]
 */
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/prctl.h>
#include <time.h>
#include <unistd.h>

static long long now_ms(void)
{
    struct timespec t;
    clock_gettime(CLOCK_MONOTONIC, &t);
    return (long long)t.tv_sec * 1000 + t.tv_nsec / 1000000;
}

int main(int argc, char **argv)
{
    int dur = argc > 1 ? atoi(argv[1]) : 2000;
    const char *base = argc > 2 ? argv[2] : "fbmark";
    char name[16];
    long long end = now_ms() + dur;
    int n = 0;

    while (now_ms() < end) {
        snprintf(name, sizeof name, "%s%d", base, n++);
        prctl(PR_SET_NAME, name, 0, 0, 0);
        usleep(5000);
    }
    printf("setname done n=%d\n", n);
    return 0;
}