Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
hbp-attack-demo — Linux kernel hbp exploit method demo. (i.e. the degradation version of CVE-2022-42703) | Kitploit
Tools/GitHubGitHub/squirre17/hbp-attack-demo
Privilege EscalationExploitationLearning & EducationBinary ExploitationLabs & Practice
GitHubsquirre17/hbp-attack-demo

hbp-attack-demo

Linux kernel hbp exploit method demo. (i.e. the degradation version of CVE-2022-42703)

View Repository
413 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

fork from https://github.com/veritas501/hbp_attack_demo

hbp_attack demo

Reference: P0 blog: https://googleprojectzero.blogspot.com/2022/12/exploiting-CVE-2022-42703-bringing-back-the-stack-attack.html

Created a vuln module, pretending we have a kernel arbitrary address write primitive, but KASLR is enabled and there is no address leak yet.

Therefore, by leveraging the feature that cpu_entry_area is not randomized by KASLR and the feature that hardware breakpoints can be triggered in kernel mode, we can leak KASLR and canary on the kernel stack and escalate privileges through a ROP attack.

blog: Analysis and demonstration of a privilege escalation idea using hardware breakpoints

root@kitploit:~
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.103.tar.xz 

ctrl + \ to exit qemu

The vmlinux with symbols is too large, it will be rejected, so only bzImage can be used.

Download Tool