Skip to content
KitploitKITPLOIT
도구블로그
Log in
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2022-0847 — Proof-of-concept exploit for CVE-2022-0847 (Dirty Pipe), a Linux kernel race condition enabling unprivileged writes to read-only files and privilege escalation. | Kitploit
도구/GitHubGitHub/vudangducminh/cve-2022-0847
Privilege EscalationVulnerability AnalysisExploitationPapers & ResearchLearning & EducationBinary Exploitation
GitHubvudangducminh/cve-2022-0847

CVE-2022-0847

Proof-of-concept exploit for CVE-2022-0847 (Dirty Pipe), a Linux kernel race condition enabling unprivileged writes to read-only files and privilege escalation.

저장소 보기
1317일 전아직 검토되지 않음

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유
요청한 언어로 콘텐츠를 사용할 수 없습니다. 영어 버전을 표시합니다.

CVE-2022-0847 - Dirty Pipe Exploit

A proof-of-concept exploit for CVE-2022-0847 (Dirty Pipe), a Linux kernel vulnerability that allows unprivileged users to write to read-only files.

Vulnerability Details

CVE-2022-0847 affects Linux kernels 5.8 through 5.16. It exploits a race condition in the Linux kernel's pipe implementation to write arbitrary data to read-only file pages that are cached in memory.

Impact

  • Privilege escalation (modifying /etc/passwd)
  • Overwriting system files
  • Injecting malicious code into read-only executables
  • Complete system compromise on vulnerable kernels

Project Structure

.
├── src/
│   └── exploit.c          # Dirty Pipe exploit source code
├── run.sh                  # QEMU test environment launcher
├── initramfs/              # Root filesystem for testing
├── debugfs.cpio            # Compressed initramfs
└── README.md               # This file

Building the Exploit

Prerequisites

  • GCC compiler
  • libelf-dev (for kernel building)
  • QEMU (optional, for testing)
  • Linux 5.10.1 kernel sources (included in setup)

Compile

gcc ./src/exploit.c -o ./src/exploit -static -pthread

Running the Exploit

In QEMU Test Environment

./run.sh
# Inside QEMU shell:
/home/exploit
cat /etc/passwd  # Verify password hash was written
su root          # Switch to root (no password needed after exploit)

On Vulnerable System (Linux 5.8-5.16)

./src/exploit

The exploit modifies /etc/passwd to inject a root user with a known password hash.

Technical Details

The exploit works by:

  1. Creating a pipe and filling it with data to set PIPE_BUF_FLAG_CAN_MERGE flags
  2. Using splice() to connect a file page to the pipe buffer
  3. Writing to the pipe which merges data into the file page
  4. Bypassing write protection by exploiting the race condition

This allows writing to read-only memory pages without triggering COW (Copy-on-Write).

Testing Environment

  • Kernel: Linux 5.10.1
  • Busybox: 1.36.0
  • Emulator: QEMU x86_64

Mitigation

  • Update Linux kernel to version 5.17 or later
  • Apply backported patches for affected versions
  • Restrict access to /proc/self/mem if possible

References

  • CVE-2022-0847 NVD
  • Original POC
  • Dirty Pipe Technical Analysis

Disclaimer

This exploit is for educational and authorized security testing purposes only. Unauthorized access to computer systems is illegal.

도구 다운로드