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 15, 2024
1 parent 4c5f3dd commit 3150ebc
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions cvehound/cve/CVE-2023-4394.cocci
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/// Files: fs/btrfs/volumes.c
/// Fix: 9ea0106a7a3d8116860712e3f17cd52ce99f6707
/// Fixes: faa775c41d655a4786e9d53cb075a77bb5a75f66

virtual detect

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

btrfs_get_dev_args_from_path(struct btrfs_fs_info *fs_info, ...)
{
...
* ret = btrfs_get_bdev_and_sb(..., FMODE_READ, fs_info->bdev_holder, ...);
* if (ret@p)
* return ret;
...
}

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

0 comments on commit 3150ebc

Please sign in to comment.