Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2022-0847 PoC — Linux kernel 安全漏洞

Source
Associated Vulnerability
Title:Linux kernel 安全漏洞 (CVE-2022-0847)
Description:A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe and push_pipe functions in the Linux kernel and could thus contain stale values. An unprivileged local user could use this flaw to write to pages in the page cache backed by read only files and as such escalate their privileges on the system.
Readme
# CVE-2022-0847

# 原文地址

https://dirtypipe.cm4all.com/

## 使用
gcc exploit.cpp -o exploit

./exploit它会弹出一个root shell

# 漏洞说明

这是 CVE-2022-0847,它是自 5.8 以来 Linux 内核中的一个漏洞,它允许覆盖任意只读文件中的数据。这会导致权限提升,因为非特权进程可以将代码注入根进程。


# 使用CVE-2022-0847清除根密码



<img width="961" alt="image" src="https://user-images.githubusercontent.com/59011386/157148019-7903858f-857b-49e7-94f3-fb98624e4441.png">





该漏洞已经在 Linux 5.16.11、5.15.25 和 5.10.102 中修复。
File Snapshot

[4.0K] /data/pocs/f87d5de589ea479f89d3f6f918e4ca05f9528872 ├── [4.3K] CVE-2022-0847清除根密码.cpp └── [ 618] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →