diff --git a/cvehound/cve/CVE-2024-0584.cocci b/cvehound/cve/CVE-2024-0584.cocci new file mode 100644 index 0000000..c5756eb --- /dev/null +++ b/cvehound/cve/CVE-2024-0584.cocci @@ -0,0 +1,25 @@ +/// Files: net/ipv4/igmp.c +/// Fix: e2b706c691905fe78468c361aaabc719d0a496f1 +/// Fixes: v2.6.12-rc2 + +virtual detect + +@err@ +identifier im; +position p; +@@ + +igmp_start_timer(struct ip_mc_list *im, ...) +{ + ... + im->tm_running = 1; +* if (!mod_timer@p(&im->timer, ...)) +* \(refcount_inc\|atomic_inc\)(&im->refcnt); + ... +} + +@script:python depends on detect@ +p << err.p; +@@ + +coccilib.report.print_report(p[0], 'ERROR: CVE-2024-0584')