Skip to content

Commit 7a921bb

Browse files
Update modules/exploits/linux/local/cve_2023_0386_overlayfs_priv_esc.rb
Use kernel_version.btween Co-authored-by: Julien Voisin <[email protected]>
1 parent cd97b08 commit 7a921bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/local/cve_2023_0386_overlayfs_priv_esc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def check
8282

8383
kernel_version = Rex::Version.new(kernel_release.split('-').first)
8484
if kernel_version < Rex::Version.new('5.11') ||
85-
Rex::Version.new('5.15.91') <= kernel_version && kernel_version < Rex::Version.new('5.16') ||
85+
kernel_version.btween?(Rex::Version.new('5.15.91'), Rex::Version.new('5.16')) ||
8686
Rex::Version.new('6.1.9') <= kernel_version
8787
return CheckCode::Safe("Linux kernel version #{kernel_version} is not vulnerable")
8888
end

0 commit comments

Comments
 (0)