Skip to content

Add kernelCTF CVE-2026-43501_cos#394

Open
pjwhatforlunch wants to merge 4 commits into
google:masterfrom
pjwhatforlunch:rpl
Open

Add kernelCTF CVE-2026-43501_cos#394
pjwhatforlunch wants to merge 4 commits into
google:masterfrom
pjwhatforlunch:rpl

Conversation

@pjwhatforlunch

Copy link
Copy Markdown

No description provided.

{
try {
static TargetDb kxdb("target_db.kxdb", target_db);
Target target = kxdb.GetTarget("kernelctf", XDK_TARGET_RELEASE);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

#define SYS_pidfd_open 434
#endif

#define KERNEL_BASE 0xffffffff81000000ULL

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need this? It hasn't been used

@artmetla

artmetla commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Please have a look at https://google.github.io/security-research/kernelctf/style_guide.html and follow it in exploit.c code


static void build_core_pattern_patch(void)
{
put_u32(&raw_patch[19],

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check Payload and PayloadBuilder APIs of kernelXDK and modify this code.

@artmetla artmetla left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please have a look at comments and update kernelXDK usage according to documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants