Skip to content

kernelCTF: add CVE-2026-53361_lts - #416

Open
sysroot314 wants to merge 4 commits into
google:masterfrom
sysroot314:kernelctf/CVE-2026-53361_lts
Open

kernelCTF: add CVE-2026-53361_lts#416
sysroot314 wants to merge 4 commits into
google:masterfrom
sysroot314:kernelctf/CVE-2026-53361_lts

Conversation

@sysroot314

Copy link
Copy Markdown

No description provided.

@sysroot314
sysroot314 force-pushed the kernelctf/CVE-2026-53361_lts branch from 8f7584a to 22a2b68 Compare August 11, 2026 14:03
@matrizzo

Copy link
Copy Markdown
Collaborator

This mostly looks good but could you go into a bit more detail in your exploit.md? It's only one line right now. It doesn't need to be very long, just a bit more than a single line :)

@sysroot314

Copy link
Copy Markdown
Author

Hey @matrizzo! Thanks for the review. I have added the documentation.

/* ── Setup helpers ────────────────────────────────────────────────── */

static Target prepare_kernelxdk() {
Target target("kernelctf", "local");

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 https://xdk.dev/libxdk/sample_exploit.html and https://github.com/google/kernel-research/tree/main/libxdk/samples on how Target should be defined and used.

The first link also shows how missing structures, symbols could be added to specific target that your exploit is written for.

setrlimit(RLIMIT_NOFILE, &rl);
}

struct kernel_pipe_buffer {

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.AddStruct should be used for that. Please check https://xdk.dev/libxdk/sample_exploit.html

// @step(name="Exploit attempt (forked)")
pid_t pid = fork();
if (pid == 0) {
pin_to_cpu(0);

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.

write(ctx->krw_pipe[1], &new_mode, sizeof(new_mode));
}

int main() {

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.

@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.

@sysroot314 Please check my comments on kernelXDK usage and fix / comment on why it's not applicable in this case.

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.

3 participants