Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Efremov <[email protected]>
  • Loading branch information
evdenis committed Feb 15, 2024
1 parent 1513d2c commit e37406a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions cvehound/cve/CVE-2023-4389.cocci
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/// Files: fs/btrfs/disk-io.c
/// Fix: 168a2f776b9762f4021421008512dd7ab7474df1
/// Fixes: bc44d7c4b2b179c4b74fba208b9908e2ecbc1b4d

virtual detect

@err@
identifier fs_info, root, ret;
position p;
@@

\(btrfs_get_root_ref\|btrfs_get_fs_root\)(struct btrfs_fs_info *fs_info, ...)
{
...
* ret = btrfs_insert_fs_root(fs_info, root);
if (ret) {
* \(btrfs_put_root@p\|btrfs_put_fs_root@p\)(root);
...
}
...
}

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

0 comments on commit e37406a

Please sign in to comment.