CWE-362: Race Condition
3 real-world CVEs classified as CWE-362: Race Condition. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2021-30465high 8.52021
runc mount-destination symlink race (container escape)
A bind-mount destination is resolved and confined once, then the mount syscall re-walks it as a string, so a racing symlink swap redirects the mount outside the container and bind-mounts the host filesystem in.
- CVE-2019-11090medium 5.92019
TPM-Fail: Intel firmware signing time reveals private keys
Intel PTT elliptic-curve signing time correlated with leading zero bits in fresh nonces, letting local or nearby network observers filter biased signatures and use lattice analysis to recover a TPM-protected private key.
- CVE-2016-5195high 7.02016
Dirty COW: copy-on-write race writes to read-only memory
A race in the kernel's copy-on-write page-fault retry lets a local user drop write intent after a COW break, so a concurrently discarded private page is re-followed as the original read-only file page and written through.