← Technology, Science & Infrastructure ▣ Distilled locally

CRI-O ended support for container-level restore

By Ayato Tokubi (CRI-O Maintainer)
December 4, 2026  ·  CNCF Blog ↗
Featured Image: CRI-O ended support for container-level restore
Featured Image: CRI-O ended support for container-level restore

TL;DR

Background: Checkpoint and restore in CRI-O

CRI-O is a container runtime that Kubernetes uses to run containers on each node. Normally, starting a container launches its application from the beginning. With container-level restore enabled, CRI-O can instead recreate an individual container from a saved execution state, using Checkpoint/Restore In Userspace (CRIU).

Checkpoint and restore are separate operations:

  1. Checkpoint: Capture a running container’s state, including its process memory and execution state, in a checkpoint archive. In Kubernetes, an authorized user can request this through the kubelet’s checkpoint API.
  2. Restore: Recreate the container’s processes from that checkpoint so the application can continue from the saved point rather than start over. For use in Kubernetes, the checkpoint archive can be packaged into a specially annotated container image and referenced in a Pod’s image field. When restore is enabled, CRI-O recognizes the checkpoint image and restores the saved processes instead of starting the application normally. This documented workflow uses the ordinary container-creation path, rather than a dedicated Kubernetes restore API.

This feature operates on individual containers. It does not checkpoint and restore an entire Pod as a single unit.

We have stopped supporting this container-level restore path because it cannot enforce the security guarantees expected in Kubernetes. Container checkpointing remains supported, including for forensic analysis. This post explains the security concerns, what the change means for vulnerability reporting, and how it relates to our work toward Pod-level checkpoint and restore.

A checkpoint is more than a container image

An ordinary container image supplies a filesystem and configuration used to start new processes. A checkpoint also contains serialized execution state: process memory, registers, open resources, and security attributes.

Restoring that state is therefore different from starting a fresh container. It can reconstruct credentials, Linux capabilities, and seccomp state from the checkpoint rather than apply the security context requested for the destination container. A workload that appears restricted in its Kubernetes configuration can consequently run with privileges that configuration did not authorize. Our CRI-O security advisory describes this mismatch.

This is not simply a matter of checking a few image annotations. The checkpoint contains the process state that restore will reconstruct, and that state must be trusted and appropriate for the destination.

This decision is not about a vulnerability in CRIU

CRIU provides the underlying checkpoint and restore functionality. Its image security model explicitly assumes trusted input:

CRIU is designed to reconstruct saved process state, not to sanitize malicious checkpoints into workloads that satisfy an unrelated destination policy. Its documentation places responsibility for authenticity, integrity, and confidentiality on the integrating runtime, orchestrator, or storage layer before restore begins.

Our existing container-level restore path cannot enforce that only trusted checkpoint images reach CRIU. Accepting a checkpoint through the normal container-image workflow does not establish who created it, whether it was modified, or whether its saved privileges are permitted at the destination.

The reason for withdrawing support is the integration’s inability to uphold the required trust boundary, not a claim that CRIU is violating its documented security model. Asking users to restore only trusted images is not a substitute for an enforceable boundary.

What this means for users and security researchers

For users

Configuration availability and defaults

CRI-O’s [crio.checkpoint_restore] configuration section contains a setting named container_level_enabled. It controls whether checkpoint creation and container-level restore are enabled. The configuration reference defines three possible values:

Value of
container_level_enabledCheckpoint creationContainer-level restore“checkpoint_only” (default)EnabledDisabled“none“DisabledDisabled“checkpoint_restore“EnabledEnabled, but unsupported

Selecting “checkpoint_restore” enables both operations but does not ensure that restored process state complies with the destination Kubernetes security policy. It is a value of container_level_enabled, not a separate configuration setting.

Container-level restore is unsupported across all supported CRI-O versions. It can still be enabled explicitly through configuration. Operators who choose to enable it are responsible for enforcing trusted checkpoint input and ensuring that saved process privileges are appropriate for the destination.

The setting and its “checkpoint_only” default were introduced in CRI-O 1.35.9, 1.36.6, and 1.37.0, and is included in subsequent patch releases within those branches. For upgrades, use a current patch release of a supported branch.

By default in these versions, checkpoint creation is enabled and container-level restore is disabled. Creating a checkpoint still requires CRIU to be installed on the node and a low-level runtime with checkpoint support. The default configuration is:

[crio.checkpoint_restore]
container_level_enabled = "checkpoint_only"

Configuration files, command-line arguments, or distribution-specific settings can override these defaults. Check the settings actually used on each node before assuming restore is disabled. If CRI-O cannot find the criu executable in its PATH, it disables checkpoint/restore functionality without preventing normal startup.

The checkpoint-only default does not apply to earlier patch releases in the 1.35 and 1.36 branches, which enabled restore by default when CRIU was available.

Using container_level_enabled = "checkpoint_only" disables the restore path and prevents exploitation of the vulnerabilities described in the security-context bypass and checkpoint file-write advisories.

How to check whether the fix is in effect

On each node, query the running daemon’s configuration with crio status config:

sudo crio status config | grep -E '(enable_criu_support|container_level_enabled)'

The expected checkpoint-only configuration is:

enable_criu_support = true
container_level_enabled = "checkpoint_only"

With this output, container-level restore is disabled and the checkpoint-only mitigation is in effect. The deprecated enable_criu_support = true value does not override container_level_enabled = "checkpoint_only" or re-enable restore. A value of “none” also disables restore, along with checkpoint creation.

Alternatively, if the running daemon reports:

enable_criu_support = false

both checkpoint and restore are disabled, and the node is not affected by these container-level restore vulnerabilities. This also applies to older builds without container_level_enabled; the new setting is not required to establish that restore is disabled when enable_criu_support = false.

If enable_criu_support = true and container_level_enabled = "checkpoint_restore", restore is enabled. Change the configuration to disable restore.

For security researchers

We no longer treat issues confined to the unsupported container-level restore feature as vulnerabilities in CRI-O. This vulnerability-reporting scope applies across all supported CRI-O versions, not just the latest release. It does not exclude issues that affect supported functionality, including a way to reach restore despite it being disabled. If you are unsure whether an issue crosses that boundary, contact the CRI-O security maintainers privately through our security reporting process.

This is a project-specific support decision, not an ecosystem-wide vulnerability policy. Other projects, including Podman, may have different support commitments and threat models. If an issue involves shared code in container-libs, contact those maintainers through the repository’s security reporting process. Our decision does not determine how another project should classify or address the issue.

The direction: Pod-level checkpoint and restore

We are working toward Pod-level checkpoint and restore, aligned with Kubernetes’ workload model. The upstream effort is tracked in KEP-5823.

The goal is not just restoring several containers together. A Kubernetes-aware design needs explicit authorization for restore, protection of checkpoint artifacts, and validation that the restored workload matches its authorized configuration. The pod-level proposal addresses these concerns through mechanisms such as namespace-scoped checkpoint resources, separate restore authorization, and validation against the captured Pod specification.

Moving to the Pod level does not automatically make checkpoint data trustworthy or remove CRIU’s security requirements. Those requirements still need to be enforced throughout the checkpoint lifecycle. This is ongoing work, not an announcement that a supported pod-level feature is already available.

Checkpoint and restore remain important capabilities. Our Pod-level work focuses on an integration with clearer authorization, trust, and policy boundaries.

Originally published by CNCF Blog ↗ · rebuilt here from its own full-text RSS feed · all rights remain with the publisher, please read and support them there.