Skip to content

Commit 61596f8

Browse files
committed
Solve comments
1 parent 3cec636 commit 61596f8

File tree

2 files changed

+4
-4
lines changed
  • pocs/linux/kernelctf/CVE-2024-26809_lts_cos/exploit

2 files changed

+4
-4
lines changed

pocs/linux/kernelctf/CVE-2024-26809_lts_cos/exploit/cos-105-17412.294.34/table.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void new_table(struct nl_sock * socket, char *name){
3535
NL_AUTO_SEQ, // begin wit seq number 0
3636
NFNL_MSG_BATCH_END,// TYPE
3737
sizeof(struct nfgenmsg),
38-
NLM_F_REQUEST //NLM_F_ECHO
38+
NLM_F_REQUEST
3939
);
4040
nla_put_string(msg2, NFTA_TABLE_NAME, name);
4141
uint32_t total_size = NLMSG_ALIGN(hdr1->nlmsg_len) + NLMSG_ALIGN(hdr2->nlmsg_len) + NLMSG_ALIGN(hdr3->nlmsg_len);
@@ -60,7 +60,7 @@ void get_table(struct nl_sock * socket, char *name){
6060
NL_AUTO_SEQ, // begin wit seq number 0
6161
NFNL_SUBSYS_NFTABLES, //SUBSYS
6262
NFT_MSG_GETTABLE, // TYPE
63-
NLM_F_REQUEST, //NLM_F_ECHO
63+
NLM_F_REQUEST,
6464
2, //FAMILY
6565
0 //RES_ID
6666
);

pocs/linux/kernelctf/CVE-2024-26809_lts_cos/exploit/lts-6.1.79/table.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void new_table(struct nl_sock * socket, char *name){
3535
NL_AUTO_SEQ, // begin wit seq number 0
3636
NFNL_MSG_BATCH_END,// TYPE
3737
sizeof(struct nfgenmsg),
38-
NLM_F_REQUEST //NLM_F_ECHO
38+
NLM_F_REQUEST
3939
);
4040
nla_put_string(msg2, NFTA_TABLE_NAME, name);
4141
uint32_t total_size = NLMSG_ALIGN(hdr1->nlmsg_len) + NLMSG_ALIGN(hdr2->nlmsg_len) + NLMSG_ALIGN(hdr3->nlmsg_len);
@@ -60,7 +60,7 @@ void get_table(struct nl_sock * socket, char *name){
6060
NL_AUTO_SEQ, // begin wit seq number 0
6161
NFNL_SUBSYS_NFTABLES, //SUBSYS
6262
NFT_MSG_GETTABLE, // TYPE
63-
NLM_F_REQUEST, //NLM_F_ECHO
63+
NLM_F_REQUEST,
6464
2, //FAMILY
6565
0 //RES_ID
6666
);

0 commit comments

Comments
 (0)