
Linux kernel module using Kprobes to detect and neutralize CVE-2024-1086 heap double-free exploits via temporal gap tracking and active register nullification with zero RAM overhead.
Authors: Vedant Karande & Kiran Kumari
Course: Network & Systems Security (SIL7165) - Indian Institute of Technology Delhi
KOOBE-Guard is a dynamic Intrusion Prevention System (IPS) developed as a Linux Loadable Kernel Module (LKM) to actively mitigate catastrophic heap-based vulnerabilities, specifically targeting the CVE-2024-1086 double-free vulnerability[cite: 1].
Modern operating systems implicitly trust that memory subsystems allocate and free memory flawlessly[cite: 1]. When complex subsystems like the Linux kernel's nf_tables contain logic errors, it can lead to memory mismanagement, allowing an unprivileged attacker to achieve Local Privilege Escalation (LPE) via Heap Feng Shui and overlapping allocations[cite: 1]. KOOBE-Guard neutralizes this by shifting from heavy, passive shadow-memory defenses to real-time Active Temporal Gap Tracking[cite: 1].
Traditional mitigation tools like KASAN rely on immense shadow memory mapping, introducing 200%-300% CPU overhead and catastrophic RAM bloat, rendering them unusable for production environments[cite: 1].
KOOBE-Guard intercepts the exploit using the following methodology:
kfree allocator pathway[cite: 1]. The module records the exact nanosecond timestamp of freed memory addresses[cite: 1].regs->di = 0) to NULL[cite: 1]. This forces a safe kfree(NULL) operation, completely preventing SLUB freelist corruption[cite: 1].defense_module/: Contains the KOOBE-Guard LKM source code and Makefiles.evaluation_scripts/: Bash scripts (benchmark.sh, hit_rate.sh) utilized for quantitative QEMU testing.docs/: Comprehensive project reports and presentation slides.proofs/: System architecture diagrams, execution screenshots, and benchmark graphs.exploit_poc/: Submodule linking to the weaponized Proof-of-Concept for CVE-2024-1086 used to trigger the vulnerability state.The framework was rigorously evaluated in a deeply isolated, hardware-accelerated QEMU virtual laboratory running a custom-compiled Linux 6.6.0 kernel[cite: 1].
exploit_poc directory. Visit the original repository here: Notselwyn/CVE-2024-1086.This project is licensed under the GPL-2.0 License. See the LICENSE file for details.