
Stack buffer overflow during cmdline parsing
This repo provides safe, non-exploit PoC resources to study CVE-2025-38676:
/proc/cmdline)Vulnerability summary
Upstream fix: “iommu/amd: Avoid stack buffer overflow from kernel cmdline … avoid writing 1 byte past the end of 'acpiid' if the 'str' argument is maximum length.”
Scope: kernels ≤ 6.17-rc2 (IOMMU/AMD path). Distros are shipping patched kernels.
Sources: NVD, SUSE tracker, VulDB, commit reference.
git.kernel.org/stable/c/8503d0fcb1086....No weaponized exploit code. The harness only varies cmdline length/shape and collects logs to confirm stability or crashes in a closed VM.
sudo apt-get install -y build-essential qemu-system-x86 gcc make cpio busybox
cd tools && ./build.sh # build cmdline checker
cd ../scripts && ./make_initramfs.sh # build tiny initramfs with busybox
./qemu_boot_example.sh # boot VM with safe long cmdline