Skip to content

kernelCTF: add CVE-2026-23240_cos - #404

Open
lambdasprocket wants to merge 4 commits into
google:masterfrom
lambdasprocket:CVE-2026-23240
Open

lambdasprocket wants to merge 4 commits into
google:masterfrom
lambdasprocket:CVE-2026-23240

Conversation

@lambdasprocket

Copy link
Copy Markdown
Contributor

No description provided.

@artmetla artmetla added the recheck Triggers kernelCTF PR verification again label Jul 20, 2026

@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 the comment and fix "--vuln-trigger"

err(1, "setrlimit()");

if (argc > 1 && !strcmp(argv[1], "--vuln-trigger")) {
g_trigger_only = 1;

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.

@lambdasprocket Could you have one more look at --vuln-trigger? Looks like it's not working like it should?

The error we get in vuln-verify is:

terminate called after throwing an instance of 'ExpKitError'
  what():  symbol (__do_sys_kexec_file_load) is not available for the target
Aborted

@koczkatamas

Copy link
Copy Markdown
Collaborator

Hey! Is there any update here?

@lambdasprocket

Copy link
Copy Markdown
Contributor Author

Hey! Is there any update here?

Hi!

I'm not sure what you want me to do here. The exploit uses libXDK (per your requirements) for many things, some as basic as object sizes (e.g. simple_xattr) in the allocation primitive.
To completely avoid using libXDK on "--vuln-trigger" would mean adding tens of "if" statements to skip parts of the exploit that allocate memory, prepare payloads etc, which would reduce exploit readability.
And even if I do that, verify won't work anyway because under KASAN execution speed is different and timings used to trigger race condition will be incorrect.

Please let me know how I should proceed.

@matrizzo

Copy link
Copy Markdown
Collaborator

Presumably you don't need to set up reclaims/spray allocations with a precise size etc just to trigger a KASAN bug report though? It sounds to me like you should be able to do that without all the information from kernelXDK.

@lambdasprocket

Copy link
Copy Markdown
Contributor Author

Presumably you don't need to set up reclaims/spray allocations with a precise size etc just to trigger a KASAN bug report though? It sounds to me like you should be able to do that without all the information from kernelXDK.

Ok, I've fixed the issue with missing symbols.
It turns out that libxdk throws exception only for getSymbolOffset() and returns zero for getStructSize(), which is strange, but simplifies things in this case.

@artmetla artmetla added recheck Triggers kernelCTF PR verification again and removed recheck Triggers kernelCTF PR verification again labels Oct 23, 2026

This branch has not been deployed

No deployments
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.

4 participants