Vulnerability & Exploit Database

Back to search

Linux BPF Local Privilege Escalation

Linux kernel >=4.4 with CONFIG_BPF_SYSCALL and kernel.unprivileged_bpf_disabled sysctl is not set to 1, BPF can be abused to priv escalate. Ubuntu 16.04 has all of these conditions met.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name

exploit/linux/local/bpf_priv_esc

Authors

  • jannh <jannh [at] google.com>
  • h00die <mike [at] shorebreaksecurity.com>

References

Targets

  • Linux x86
  • Linux x64

Platforms

  • linux

Architectures

  • x86
  • x64
  • x86
  • x64

Reliability

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/linux/local/bpf_priv_esc msf exploit(bpf_priv_esc) > show targets ...targets... msf exploit(bpf_priv_esc) > set TARGET <target-id> msf exploit(bpf_priv_esc) > show options ...show and set options... msf exploit(bpf_priv_esc) > exploit