Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kernelCTF CVE-2023-4147_lts_cos #112

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

kevinrich1337
Copy link
Contributor

No description provided.

@kevinrich1337
Copy link
Contributor Author

Hello, @artmetla.

I updated the write-up based on your review.

Please check it.

Thanks.

struct nftnl_rule * rule_replace_3 = nftnl_rule_alloc();

nftnl_rule_set_str(rule_replace_3, NFTNL_RULE_TABLE, table1_name);
nftnl_rule_set_u32(rule_replace_3, NFTNL_RULE_CHAIN_ID, 1337);
Copy link
Collaborator

Choose a reason for hiding this comment

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

We're doing rule replace in this exploit by ID, as this chain is already bound by rule_bind_chain_1_2. Following our conversation in PR#111. Could we change the logic of exploit, to firstly create rule_bind_chain_2_3 then call replacement with rule_dangling_3 and then trigger deletion of rule_bind_chain_1_2? If so, we would not need to add the rule_dangling_3 to the chain by ID?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can create rule_bind_chain_1_2 later to bound the chain2 late, so we can replace rule_bind_chain_2_3 without using the chain ID. I think this is a missed point in CVE-2023-4147 and CVE-2023-5197 handles it by preventing replacing on chains with the bound flag present.

@artmetla artmetla added the recheck Triggers kernelCTF PR verification again label Oct 25, 2024
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