Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Efremov <efremov@linux.com>
  • Loading branch information
evdenis committed Feb 7, 2024
1 parent b599cb9 commit 0617705
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions cvehound/cve/CVE-2024-1085.cocci
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/// Files: net/netfilter/nf_tables_api.c
/// Fix: b1db244ffd041a49ecc9618e8feb6b5c1afcdaa7
/// Fixes: aaa31047a6d25da0fa101da1ed544e1247949b40

virtual detect

@err@
iterator name list_for_each_entry;
position p;
@@

nft_setelem_catchall_deactivate(const struct net *net,
struct nft_set *set,
struct nft_set_elem *elem)
{
...
list_for_each_entry(...) {
...
* if (!nft_is_active@p(net, ext) || ...)
continue;

kfree(elem->priv);
...
}
...
}

@script:python depends on detect@
p << err.p;
@@
coccilib.report.print_report(p[0], 'ERROR: CVE-2024-1085')

0 comments on commit 0617705

Please sign in to comment.