Dockerfile
Defines an Ubuntu 20.04 image with build-essential, curl, and Rust installed. Sets WORKDIR to /data. Used to compile the exploit binary.
Dockerfile:1-12CVE-2022-23222 has a selected CVSS score of 7.8 (high); EIP currently links 4 repository PoCs and 1 lab environment.
A Docker-based build environment for compiling a Rust exploit targeting CVE-2022-23222, a Linux kernel eBPF verifier vulnerability. The Dockerfile creates an Ubuntu 20.04 container with Rust installed, and the build script mounts the project directory to compile the exploit binary. A separate Vagrant lab is described for testing the exploit on a vulnerable kernel.
Dockerfile:1-12build.sh:1-4README.md:1-678The repository explicitly documents CVE-2022-23222, provides exploit source code, a Dockerfile for building the exploit, and a Vagrant lab for testing on a vulnerable kernel. The README details the vulnerability, exploitation steps, and references the original CVE writeup.
README.md:1-3README.md:5-7README.md:660-678Defines an Ubuntu 20.04 image with build-essential, curl, and Rust installed. Sets WORKDIR to /data. Used to compile the exploit binary.
Dockerfile:1-12Builds the Docker image and runs a container that mounts the current directory to /data and executes 'cargo build --release' to compile the exploit.
build.sh:1-4C source code implementing the CVE-2022-23222 exploit. Contains functions to create BPF maps, leak kernel addresses, set up arbitrary read/write, find and overwrite process credentials, and spawn a root shell.
src/exploit/exploit.c:1-507Defines the Rust project 'cve_2022_23222' with dependencies on nix, cc, and libc. The lock file pins exact dependency versions.
Cargo.toml:1-23Cargo.lock:1-63A Vagrant configuration (referenced in README) that provisions a vulnerable Ubuntu VM, copies the exploit, and allows testing. Not included in the evidence files but described in the README.
README.md:660-678Supported by supplied evidence
The README explicitly states the repository is for CVE-2022-23222, describes the vulnerability in the Linux kernel eBPF verifier, and provides exploit code that leverages the described pointer type mismatch. The exploit targets the specific kernel versions and behavior documented in the CVE.
README.md:1-3README.md:5-7README.md:8-12src/exploit/exploit.c:1-507README.md:660-662README.md:8-12README.md:660-678README.md:660-678README.md:660-662build.sh:1-4README.md:660-678README.md:660-678src/exploit/exploit.c:1-507README.md:660-678The Dockerfile and build script only set up a compilation environment and do not execute the exploit. The exploit code targets a kernel vulnerability for local privilege escalation within a lab context, with no hidden or unnecessary behavior directed at the host, external systems, or persistence. The Vagrant lab is a contained test environment.
Dockerfile:1-12build.sh:1-4src/exploit/exploit.c:1-507README.md:660-678This review is limited to the supplied lab evidence packet. It does not assert that the environment runs, reproduces a vulnerability, or is safe to execute. Contract: eip-docker-lab-analysis-v1.