Skip to content

Commit

Permalink
Land #11032, SMAP check for chocobo_root
Browse files Browse the repository at this point in the history
  • Loading branch information
wvu authored and msjenkins-r7 committed Nov 27, 2018
1 parent d400851 commit ed17e2c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Expand Up @@ -10,10 +10,10 @@
4.4.0 < 4.4.0-53, including Linux distros based on Ubuntu, such as
Linux Mint.

The target system must have unprivileged user namespaces enabled and
two or more CPU cores.
The target system must have unprivileged user namespaces enabled,
two or more CPU cores, and SMAP must be disabled.

Bypasses for SMEP, SMAP and KASLR are included. Failed exploitation
Bypasses for SMEP and KASLR are included. Failed exploitation
may crash the kernel.


Expand Down
12 changes: 9 additions & 3 deletions modules/exploits/linux/local/af_packet_chocobo_root_priv_esc.rb
Expand Up @@ -27,10 +27,10 @@ def initialize(info = {})
4.4.0 < 4.4.0-53, including Linux distros based on Ubuntu, such as
Linux Mint.
The target system must have unprivileged user namespaces enabled and
two or more CPU cores.
The target system must have unprivileged user namespaces enabled,
two or more CPU cores, and SMAP must be disabled.
Bypasses for SMEP, SMAP and KASLR are included. Failed exploitation
Bypasses for SMEP and KASLR are included. Failed exploitation
may crash the kernel.
This module has been tested successfully on Linux Mint 17.3 (x86_64);
Expand Down Expand Up @@ -144,6 +144,12 @@ def check
end
vprint_good "Linux kernel version #{version} is vulnerable"

if smap_enabled?
vprint_error 'SMAP is enabled'
return CheckCode::Safe
end
vprint_good 'SMAP is not enabled'

arch = kernel_hardware
unless arch.include? 'x86_64'
vprint_error "System architecture #{arch} is not supported"
Expand Down

0 comments on commit ed17e2c

Please sign in to comment.