Exploit database

GH-e6e5922ef9ac5cc7d4897803cb452516

zero2005x/rokid-rv101-research

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

164 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/xattrtest.c

C · 826 bytes
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/xattr.h>

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

    const char *path = "/data/local/tmp/xa_test";
    int fd = open(path, O_CREAT | O_RDWR, 0666);
    if (fd < 0) { printf("open failed errno=%d (%s)\n", errno, strerror(errno)); return 1; }
    close(fd);

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

    size_t sizes[] = { 4096, 8192, 16384, 32768, 65536 };
    for (int i = 0; i < (int)(sizeof(sizes)/sizeof(sizes[0])); i++) {
        size_t sz = sizes[i];
        errno = 0;
        int ret = setxattr(path, "user.t", buf, sz, 0);
        printf("setxattr(sz=%6zu) ret=%d errno=%d (%s)\n", sz, ret, errno, strerror(errno));
    }

    unlink(path);
    return 0;
}