CVE-2024-21626 runc container breakout through process.cwd trickery and leaked fds
process.cwd 트릭과 유출 된 fds를 통한 runc 컨테이너 브레이크 아웃
설명
runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. In runc 1.1.11 and earlier, due to an internal file descriptor leak, an attacker could cause a newly-spawned container process (from runc exec) to have a working directory in the host filesystem namespace, allowing for a container escape by giving access to the host filesystem ("attack 2"). The same attack could be used by a malicious image to allow a container process to gain access to the host filesystem through runc run ("attack 1"). Variants of attacks 1 and 2 could be also be used to overwrite semi-arbitrary host binaries, allowing for complete container escapes ("attack 3a" and "attack 3b"). runc 1.1.12 includes patches for this issue.
runc는 OCI 사양에 따라 Linux에서 컨테이너를 생성 및 실행하기위한 CLI 도구입니다. runc 1.1.11 이하 버전에서는 내부 파일 설명자 유출로 인해 공격자가 새로 생성된 컨테이너 프로세스(runc exec에서)를 호스트 파일시스템 네임스페이스에 작업 디렉토리로 만들어 호스트 파일시스템("공격 2")에 대한 액세스를 허용함으로써 컨테이너 탈출을 허용할 수 있다. 같은 공격이 악성 이미지에 의해 사용되어 컨테이너 프로세스가 runc runc run("attack 1")을 통해 호스트 파일시스템에 접근할 수 있게 할 수 있다. 또한 1과 2 공격의 변형은 반중재 호스트 바이너리를 덮어쓰는데 사용될 수 있으며, 완전한 컨테이너 탈출("공격 3a"와 "공격 3b")을 허용한다. runc 1.1.12는 이 문제에 대한 패치를 포함한다.
영향 받는 제품 제품 1개
-
해결 버전 있음
opencontainers
runc
영향 받는 버전
- v1.0.0-rc93 이상 1.1.12 미만
해결 버전
- 1.1.12 이상
참고 자료 9건
- packetstormsecurity.com http://packetstormsecurity.com/files/176993/runc-1.1.11-File-Descriptor-Leak-Privilege-Escalation.html (새 창)
- github.com https://github.com/opencontainers/runc/commit/02120488a4c0fc487d1ed2867e901eeed7ce8ecf (새 창)
- github.com https://github.com/opencontainers/runc/releases/tag/v1.1.12 (새 창)
- github.com https://github.com/opencontainers/runc/security/advisories/GHSA-xr7r-f8xq-vfvv (새 창)
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/02/msg00005.html (새 창)
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2NLXNE23Q5ESQUAI22Z7A63JX2WMPJ2J/ (새 창)
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SYMO3BANINS6RGFQFKPRG4FIOJ7GWYTL/ (새 창)
- openwall.com http://www.openwall.com/lists/oss-security/2024/02/01/1 (새 창)
- openwall.com http://www.openwall.com/lists/oss-security/2024/02/02/3 (새 창)