CWE-665: Improper Initialization
4 real-world CVEs classified as CWE-665: Improper Initialization. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2022-0847high 7.82022
Dirty Pipe: uninitialized pipe-buffer flag overwrites read-only pages
A newly populated pipe buffer never resets its flags field, so a stale merge flag lets a later write land directly in a read-only file's page cache.
- CVE-2020-27950medium 5.52020
Mach trailer invalid-combination memory disclosure
An invalid combination of requested Mach message trailer elements produced a size mismatch that left four allocated bytes uninitialized before the kernel copied the trailer to userspace.
- CVE-2019-14271critical 9.82019
Docker cp container escape via untrusted libnss load (CVE-2019-14271)
The docker cp helper chroots into the container, then a routine archive walk resolves file owners and glibc's NSS facility lazily loads libnss modules from inside that container filesystem, so a trojaned libnss runs as root on the host.
- CVE-2018-10115high 7.82018
7-Zip RAR cross-decoder initialization failure
A single archive-wide solidStart flag lets a newly selected RAR2 or RAR3 decoder treat its first item as solid and consume uninitialized decoder state.