See how criu compares to other vendors in security performance
A flaw was found in CRIU. This vulnerability allows an attacker to break container isolation by supplying a malicious container image. During checkpoint and restore, CRIU stores external mount mappings as a single unescaped mnt[KEY]:VAL string and matches by prefix. By placing delimiter characters in a mount key derived from container-controlled paths, an attacker can shift the key/value boundary and force CRIU to bind-mount an arbitrary host directory into the restored container with read-write access.
CRIU is a checkpoint and restore tool for Linux. Prior to 4.2.1, CRIU injects a syscall;int3 sequence at the start of the first executable virtual memory area and resumes the target process to execute parasite code. Malicious code in the target process can keep an rseq critical section armed over that injection point so the kernel's restartable-sequence abort redirects execution to an attacker-controlled callback when CRIU resumes the process. In container snapshot environments, the hijacked parasite runs with seccomp disabled and a relaxed AppArmor profile and supplies trusted data to the privileged CRIU process, which can enable higher-privilege code execution. This issue is fixed in version 4.2.1.
It was discovered that criu service daemon allowed local users to dump processes as long as the user and group IDs match, disregarding other restrictions on process dumping or ptrace access. This failure to enforce a configured security policy may lead to information disclosure.
Acknowledgements:
This issue was discovered by Florian Weimer of Red Hat Product Security.
It was discovered that local users could use the criu daemon to create arbitrary files and take ownership of existing files, due to the creation of log and dump files in a user-supplied directory path. This allows unprivileged local users to gain root privileges.
Acknowledgements:
This issue was discovered by Florian Weimer of Red Hat Product Security.