Exploit databaseDownload repository ZIP
GH-fe45a0a486d27c36aa80e2c232873fd2
khoatran107/cve-2025-21756
Sources for CVE-2025-21756
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files35
khoatran107/cve-2025-21756Revision 13a3614dbba0
- backups/
- crashes/
- failures/
- test_unix/
- theori/
- usage/
- .gitignore
- README.md
- compile.sh
- entrybleed.c
- entrybleed.h
- exploit.c
- extract-image.sh
- final.gif
- flag
- local_runner.sh
- local_runner_customized.sh
- packet_send.c
- pipes.c
- prefetch_old.c
- qemu_v3.sh
- qemu_v3_customized.sh
- qemu_v3_customized.sh.bak
- qwerty_entrybleed.h
- run.sh
- run.sh.old
- script.gdb
- tap_device.c
- tcp_send_rcvq.c
- test copy.c
- test.c
- test.c.bak_before_change_vsock
- test_xattr.c
- trigger.c
- trigger2.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
qemu_v3_customized.sh
Shell · 982 bytes#!/bin/bash
if [ $# -ne 3 ]; then echo "Usage: $0 <release_path> <flag_fn> <init>"; exit 1; fi
RELEASE_PATH=$1
FLAG_FN=$2
INIT=$3
RELEASE=$(basename "$RELEASE_PATH")
HARDENING=""
if [[ "$RELEASE" == "mitigation-v3"* ]]; then
HARDENING="sysctl.kernel.dmesg_restrict=1 sysctl.kernel.kptr_restrict=2 sysctl.kernel.unprivileged_bpf_disabled=2 sysctl.net.core.bpf_jit_harden=1 sysctl.kernel.yama.ptrace_scope=1";
fi
exec qemu-system-x86_64 -m 3.5G -nographic -no-reboot \
-monitor none \
-enable-kvm -cpu host -smp cores=2 \
-kernel $RELEASE_PATH/bzImage \
-initrd ramdisk_v1.img \
-nic user,model=virtio-net-pci \
-drive file=rootfs_v3.img,if=virtio,cache=none,aio=native,format=raw,discard=on,readonly \
-drive file=$FLAG_FN,if=virtio,format=raw,readonly \
-append "nokaslr console=ttyS0 root=/dev/vda1 rootfstype=ext4 rootflags=discard ro $HARDENING init=$INIT hostname=$RELEASE" \
-virtfs local,path=shared,mount_tag=shared,security_model=mapped-xattr \
-s