Add kernelCTF CVE-2026-43501_cos#394
Open
pjwhatforlunch wants to merge 4 commits into
Open
Conversation
…nd ignore >11 which is in wq and painful to exploit.
artmetla
reviewed
Jun 5, 2026
| { | ||
| try { | ||
| static TargetDb kxdb("target_db.kxdb", target_db); | ||
| Target target = kxdb.GetTarget("kernelctf", XDK_TARGET_RELEASE); |
Collaborator
There was a problem hiding this comment.
Target should be auto detected, not hardcoded:
auto target = kxdb.AutoDetectTarget();
Please fix kernelXDK usage according to documentation https://xdk.dev/libxdk/sample_exploit.html
artmetla
reviewed
Jun 5, 2026
| #define SYS_pidfd_open 434 | ||
| #endif | ||
|
|
||
| #define KERNEL_BASE 0xffffffff81000000ULL |
Collaborator
There was a problem hiding this comment.
Why do you need this? It hasn't been used
Collaborator
|
Please have a look at https://google.github.io/security-research/kernelctf/style_guide.html and follow it in exploit.c code |
artmetla
reviewed
Jun 5, 2026
|
|
||
| static void build_core_pattern_patch(void) | ||
| { | ||
| put_u32(&raw_patch[19], |
Collaborator
There was a problem hiding this comment.
Please check Payload and PayloadBuilder APIs of kernelXDK and modify this code.
artmetla
requested changes
Jun 5, 2026
artmetla
left a comment
Collaborator
There was a problem hiding this comment.
Please have a look at comments and update kernelXDK usage according to documentation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.