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.
- Product
- runc (opencontainers)
- Vendor
- Open Container Initiative
- Affected
- < 1.0.0-rc95 (all releases through 1.0.0-rc94)
- Fixed in
- 1.0.0-rc95
- Weakness
- CWE-362
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- Published
- 27 May 2021
Classified as
References
Related CVEs
- CVE-2024-21626high 8.62024
Leaky Vessels: runc leaked-fd working-directory container escape (CVE-2024-21626)
runc marks stray inherited file descriptors close-on-exec but then enters the workload's requested working directory before they are actually closed, so a cwd of /proc/self/fd/N re-enters a still-open host directory handle and the process escapes onto the host filesystem.
- 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.
- CVE-2022-24348high 7.72022
Argo CD Helm value-file path traversal
A containment check on Helm value-file paths runs only when the path fails to parse as a URI, so a client-supplied absolute path parses cleanly, skips the check, and reads files from outside the repository root.