RATATOSK
← All releases

containerdv2.0.7

Security 6Breaking changes 2Important fixes 11Enhancements 2Dependency updates 2Other changes 15

Get containerd alerts

Email is sent weekly only when there are changes to check; critical security advisories are sent immediately.

Security6high1medium1

containerd fixes overly broad directory permissions

high
Affectscontainerd v2 installations with affected directories, including installations with a configured temp directory

Before the fix, these directories could have broader permissions that let local host users access metadata, content, or Kubernetes local volume contents. Existing affected directories and newly created ones are changed to 0o700; /run/containerd and /run/containerd/io.containerd.runtime.v2.task remain at 0o711.

Show release-note lines
  * [**GHSA-pwhc-rpq9-4c8w**](https://github.com/containerd/containerd/security/advisories/GHSA-pwhc-rpq9-4c8w)
github.com/containerd/containerd/releases/tag/v2.0.7

containerd CRI Attach goroutine leak fixed

medium
Affectssetups using containerd's CRI Attach implementation

Repeated CRI Attach calls, such as kubectl attach, could leak goroutines and increase containerd memory use, potentially exhausting host memory.

Show release-note lines
  * [**GHSA-m6hq-p25p-ffr2**](https://github.com/containerd/containerd/security/advisories/GHSA-m6hq-p25p-ffr2)
github.com/containerd/containerd/releases/tag/v2.0.7

runc console-device mount protection fixed

Affectscontainers that allocate a console while using affected runc versions

When an attacker can influence a bind mount of /dev/pts/$n to /dev/console, affected runc versions could make a path that should be read-only or masked writable. The advisory's upstream fixes address this issue, but the release material does not identify the runc version included in containerd v2.0.7.

Show release-note lines
  * [**GHSA-qw9x-cqr3-wc7r**](https://github.com/opencontainers/runc/security/advisories/GHSA-qw9x-cqr3-wc7r)
github.com/containerd/containerd/releases/tag/v2.0.7

runc /proc write redirection fixed

Affectssetups using affected runc versions with containers that use shared mounts

A racing container with shared mounts could redirect runc writes to /proc, including sysctl writes, to other procfs files. The advisory says this could also happen during docker buildx build when parallel containers use custom shared mounts.

Show release-note lines
  * [**GHSA-cgrx-mc8f-2prm**](https://github.com/opencontainers/runc/security/advisories/GHSA-cgrx-mc8f-2prm)
github.com/containerd/containerd/releases/tag/v2.0.7

runc maskedPaths mount verification fix listed

Affectscontainers with file paths configured in runc maskedPaths

When runc used the container's /dev/null to mask files, a race could replace it with a symlink and mount an arbitrary source inside the container, or delete it so maskedPaths was silently skipped.

Show release-note lines
  * [**GHSA-9493-h29p-rfm2**](https://github.com/opencontainers/runc/security/advisories/GHSA-9493-h29p-rfm2)
github.com/containerd/containerd/releases/tag/v2.0.7

Runtime shim sets bootstrap.json creation mode to 0644

Affectssetups where the runtime shim creates bootstrap.json(Inferred)
Show release-note lines
* **Create bootstrap.json with 0644 permission** ([#12184](https://github.com/containerd/containerd/pull/12184))
* Create bootstrap.json with 0644 permission ([#12184](https://github.com/containerd/containerd/pull/12184))
  * [`009622e04`](https://github.com/containerd/containerd/commit/009622e0424fa4234d67272339fb7e282c302190) fix: create bootstrap.json with 0644 permission
github.com/containerd/containerd/releases/tag/v2.0.7

Breaking changes2

Containerd directory permissions tightened

AffectsInstallations using /var/lib/containerd, config.TempDir, /run/containerd/io.containerd.grpc.v1.cri, or /run/containerd/io.containerd.sandbox.controller.v1.shim; task directories for userns-remapped or other containers(Inferred)

Previously, the first four directories had modes 0o711, 0o711, 0o755, and 0o711, respectively; after the upgrade, they use mode 0o700. Task-directory parents remain at 0o711, while task directories use 0o710 for userns-remapped containers and 0o700 otherwise.

Evidence“- 0o700 for non-userns-remapped containers - 0o710 for userns-remapped containers with the remapped root group as the owner group.” containerd/containerd/commit/8cd112d8295bafcf4a992816ff9e07f5a78ff71b ↗
Show release-note lines
  * [`8cd112d82`](https://github.com/containerd/containerd/commit/8cd112d8295bafcf4a992816ff9e07f5a78ff71b) Fix directory permissions
github.com/containerd/containerd/releases/tag/v2.0.7

Temporary idmapped bind mounts are read-only

Affectsoverlayfs setups using user namespaces and temporary idmapped bind mounts

This prevents accidental modification of the temporary mounts.

Evidence“The temporary idmap'ed bind mounts r/o and not MNT_DETACHED, which prevents accidental modification and makes unmount semantics more clear” containerd/containerd/pull/12223 ↗
Show release-note lines
  * [`1c32accd7`](https://github.com/containerd/containerd/commit/1c32accd71d34e3cb5798214adf26911609d11f1) Make ovl idmap mounts read-only
github.com/containerd/containerd/releases/tag/v2.0.7

Important fixes11

  • containerd-shim-runc-v2 fix for lost container logs
    Affectscontainers using containerd-shim-runc-v2(Inferred)

    When I/O closed quickly during init or exec process deletion, the 2-second drain wait could lose container logs. The shim now waits up to 10 seconds for I/O to drain and logs an error if it still times out.

    * Fix lost container logs from quickly closing io ([#12376](https://github.com/containerd/containerd/pull/12376))
      * [`f953ee8a3`](https://github.com/containerd/containerd/commit/f953ee8a3c1feeaa60a3c9d386afa424040d56de) bugfix:fix container logs lost because io close too quickly
    * **Fix lost container logs from quickly closing io** ([#12376](https://github.com/containerd/containerd/pull/12376))
    github.com/containerd/containerd/releases/tag/v2.0.7
  • Duplicate pod sandbox cleanup path fixed
    AffectsCRI pod sandbox task cleanup

    During pod-sandbox task cleanup, the event subscriber could start a second cleanup goroutine alongside the sandbox container’s individual goroutine, causing concurrent task.Delete calls and, in the worst case, a shim leak. The subscriber is now disabled during cleanup, avoiding that duplicate cleanup path.

    * **Disable event subscriber during task cleanup** ([#12406](https://github.com/containerd/containerd/pull/12406))
    github.com/containerd/containerd/releases/tag/v2.0.7
  • ctr shim shutdown subcommand added
    Affectssetups using the ctr shim command

    It sends a shutdown request only when no container is active. --api-version accepts 2 or 3 and defaults to 3.

    * **Disable event subscriber during task cleanup** ([#12406](https://github.com/containerd/containerd/pull/12406))
    * Disable event subscriber during task cleanup ([#12406](https://github.com/containerd/containerd/pull/12406))
      * [`2a2329cbd`](https://github.com/containerd/containerd/commit/2a2329cbd02dc5e1a3010730fab01c618dad768c) cri/server/podsandbox: disable event subscriber
    github.com/containerd/containerd/releases/tag/v2.0.7
  • User-namespace image VOLUME copy-up fixed
    AffectsCRI workloads using user namespaces with image VOLUME mounts that need copying

    During copy-up, files are copied without UID/GID transformations; the copied file has UID/GID 0:0 inside the container.

    * **Fix userns with container image VOLUME mounts that need copy** ([#12241](https://github.com/containerd/containerd/pull/12241))
    * Fix userns with container image VOLUME mounts that need copy ([#12241](https://github.com/containerd/containerd/pull/12241))
      * [`3212afc2f`](https://github.com/containerd/containerd/commit/3212afc2f2d464157bcb24663360ee7dfa7207e6) integration: Add test for directives with userns
      * [`b855c6e10`](https://github.com/containerd/containerd/commit/b855c6e10372eb43d51186ab156cdce3d9eefb04) cri: Fix userns with Dockerfile VOLUME mounts that need copy
    github.com/containerd/containerd/releases/tag/v2.0.7
  • CRI Attach monitor leak fixed
    AffectsCRI container Attach sessions for containers without stdout or stderr output(Inferred)

    Before the fix, the monitor goroutine never finished when Attach connected to a container with no stdout or stderr output. After the upgrade, context cancellation releases the monitor and removes the stream keys from the stdout and stderr write groups.

      * [`4d1edf4ad`](https://github.com/containerd/containerd/commit/4d1edf4addf8c31b096680f04fee499cabc75439) fix goroutine leak of container Attach
    github.com/containerd/containerd/releases/tag/v2.0.7
  • Temporary idmapped mount leaks prevented by cleanup retries
    Affectsuser namespaces with overlayfs and temporary idmapped mounts

    When unmounting temporary bind mounts for idmapped directories failed, the single cleanup attempt could leave a mount leaked. Cleanup now retries after an unmount error.

      * [`05c0c99f4`](https://github.com/containerd/containerd/commit/05c0c99f432b341152b54ce49d9b43c5cf3d131f) core/mount: Retry unmounting idmapped directories
    github.com/containerd/containerd/releases/tag/v2.0.7
  • ID-mapped overlay preparation cleanup on errors
    Affectsuser-namespace ID-mapped overlay mounts(Inferred)

    An error during preparation could leave temporary mount locations or mounts uncleaned. Now, resources created before an error are cleaned up when preparation returns the error.

      * [`47205f814`](https://github.com/containerd/containerd/commit/47205f814d552a4eea9935375dd2f0874e107e5b) core/mount: Properly cleanup on doPrepareIDMappedOverlay errors
    github.com/containerd/containerd/releases/tag/v2.0.7
  • Nil cleanup call on idmapped overlay errors fixed
    Affectsidmapped overlay mounts

    When overlay preparation returned an error with a nil cleanup function, cleanup had been deferred before the error check and could be called as nil. The mount path now returns the preparation error before deferring cleanup.

      * [`6f4abd970`](https://github.com/containerd/containerd/commit/6f4abd970aeea241f07edc1e0fd74f69a9a05979) core/mount: Don't call nil function on errors
    github.com/containerd/containerd/releases/tag/v2.0.7
  • Overlayfs layer idmapping uses fewer bind mounts
    Affectsoverlayfs setups using user namespaces and multiple lower layers(Inferred)

    When preparing an idmapped overlayfs with multiple lower layers, each layer was previously idmapped separately, creating more temporary bind mounts. The directory containing all layers is now idmapped once, reducing the bind mounts per overlayfs and improving performance.

      * [`a2f0d65d7`](https://github.com/containerd/containerd/commit/a2f0d65d78871832da6d2aa452aeeb180cd6d8f5) core/mount: Only idmap once per overlayfs, not per layer
    github.com/containerd/containerd/releases/tag/v2.0.7
  • pidfd leak in UnshareAfterEnterUserns fixed
    Affectssetups that call UnshareAfterEnterUserns(Inferred)
    * Fix pidfd leak in UnshareAfterEnterUserns ([#12178](https://github.com/containerd/containerd/pull/12178))
      * [`5bec0a332`](https://github.com/containerd/containerd/commit/5bec0a33297ad485f96116efb333ea750a27c926) sys: fix pidfd leak in UnshareAfterEnterUserns
    github.com/containerd/containerd/releases/tag/v2.0.7
  • Early pidfd support check in UnshareAfterEnterUserns
    Affectssetups invoking UnshareAfterEnterUserns on kernels without pidfd support(Inferred)

    The function returns kernel doesn't support pidfd when the kernel lacks pidfd support.

    * Fix pidfd leak in UnshareAfterEnterUserns ([#12178](https://github.com/containerd/containerd/pull/12178))
      * [`5bec0a332`](https://github.com/containerd/containerd/commit/5bec0a33297ad485f96116efb333ea750a27c926) sys: fix pidfd leak in UnshareAfterEnterUserns
    * **Fix pidfd leak in UnshareAfterEnterUserns** ([#12178](https://github.com/containerd/containerd/pull/12178))
    github.com/containerd/containerd/releases/tag/v2.0.7

Enhancements2

  • SystemdCgroup added to CRI default runtime options
    * **Add SystemdCgroup to default runtime options** ([#12254](https://github.com/containerd/containerd/pull/12254))
    * Add SystemdCgroup to default runtime options ([#12254](https://github.com/containerd/containerd/pull/12254))
      * [`427cdd06c`](https://github.com/containerd/containerd/commit/427cdd06c9d093ede03384c550a440b0522e44ba) add SystemdCgroup to default runtime options
    github.com/containerd/containerd/releases/tag/v2.0.7
  • Per-host dial_timeout setting added to hosts TOML
    * **Add dial timeout field to hosts toml configuration** ([#12136](https://github.com/containerd/containerd/pull/12136))
    * Add dial timeout field to hosts toml configuration ([#12136](https://github.com/containerd/containerd/pull/12136))
      * [`b50cbbc98`](https://github.com/containerd/containerd/commit/b50cbbc98550580b2baf5565ec5f1a3ded422b0e) Add dial timeout field to hosts toml configuration
    github.com/containerd/containerd/releases/tag/v2.0.7

Dependency updates2

    2 more, none mentioning security
    • * **Update runc binary to v1.3.3** ([#12479](https://github.com/containerd/containerd/pull/12479))
    • * runc:Update runc binary to v1.3.1 ([#12275](https://github.com/containerd/containerd/pull/12275)) * [`75c13ee3f`](https://github.com/containerd/containerd/commit/75c13ee3fc3657ee419395e20820d1cbd4bb2f88) runc:Update runc binary to v1.3.1
    Other changes15
    • v2.0.7 release notes and mailmap updated
      * Prepare release notes for v2.0.7 ([#12482](https://github.com/containerd/containerd/pull/12482))
        * [`4931e24f1`](https://github.com/containerd/containerd/commit/4931e24f169091cb4e425b7bfdd4fb0d3c20543b) Prepare release notes for v2.0.7
        * [`205bc4f2d`](https://github.com/containerd/containerd/commit/205bc4f2dbce3df32d2d5140a3d039332b02dbe6) Update mailmap
      github.com/containerd/containerd/releases/tag/v2.0.7
    • CI Go versions updated to include Go 1.24.9 and 1.25.3
      * ci: bump Go 1.24.9; 1.25.3 ([#12361](https://github.com/containerd/containerd/pull/12361))
        * [`e1373e8a8`](https://github.com/containerd/containerd/commit/e1373e8a8abf94b28507972694f8aea17f1b10c5) ci: bump Go 1.24.9, 1.25.3
        * [`e1a910a6a`](https://github.com/containerd/containerd/commit/e1a910a6a989b2cb0ed1ae4fda42eacbb6361e4b) ci: bump Go 1.24.8; 1.25.2
      github.com/containerd/containerd/releases/tag/v2.0.7
    • GitHub Actions runner images updated for the basic binaries build and most jobs
        * [`5e9c82178`](https://github.com/containerd/containerd/commit/5e9c821780ff705c47406bf7a72d476da398135c) Update GHA runners to use latest images for basic binaries build
        * [`7f59248dc`](https://github.com/containerd/containerd/commit/7f59248dcd66cb0c418669a880e0c1d7e48e0dfa) Update GHA runners to use latest image for most jobs
      github.com/containerd/containerd/releases/tag/v2.0.7
    • CI directory exclusions now use issues.exclude-dirs
        * [`fd04b7f17`](https://github.com/containerd/containerd/commit/fd04b7f176ec52d17e0014d07d045d6fa79bd620) move exclude-dirs to issues.exclude-dirs
      github.com/containerd/containerd/releases/tag/v2.0.7
    • CI lint tooling updated to golangci-lint v1.64.2
        * [`b49377975`](https://github.com/containerd/containerd/commit/b493779751d070255648e6b1e75dc9af8516c347) update golangci-lint to v1.64.2
      github.com/containerd/containerd/releases/tag/v2.0.7
    • CI golangci-lint action updated to 6.5.0
        * [`6e45022a1`](https://github.com/containerd/containerd/commit/6e45022a1e01fd1c78217df3b271d7735b8c4440) build(deps): bump golangci/golangci-lint-action from 6.3.2 to 6.5.0
        * [`09ce0f2a1`](https://github.com/containerd/containerd/commit/09ce0f2a1ee5b1524c95c3831ed124e5d4fd0a2b) build(deps): bump golangci/golangci-lint-action from 6.2.0 to 6.3.2
        * [`de63a740b`](https://github.com/containerd/containerd/commit/de63a740b8108c62bf018cf1f508bb9e5842bfd2) build(deps): bump golangci/golangci-lint-action from 6.1.1 to 6.2.0
      github.com/containerd/containerd/releases/tag/v2.0.7
    • CI updated to Fedora 43
      * CI: update Fedora to 43 ([#12448](https://github.com/containerd/containerd/pull/12448))
        * [`f6f15f513`](https://github.com/containerd/containerd/commit/f6f15f5135d313309a76fc6545e7cf86653d2f6e) CI: update Fedora to 43
      github.com/containerd/containerd/releases/tag/v2.0.7
    • CI skips the ubuntu-24.04-arm runner on private repositories
      * CI: skip ubuntu-24.04-arm on private repos ([#12428](https://github.com/containerd/containerd/pull/12428))
        * [`dfb954743`](https://github.com/containerd/containerd/commit/dfb95474370ef22c4555178a3d7cc34df2a3f5bc) CI: skip ubuntu-24.04-arm on private repos
      github.com/containerd/containerd/releases/tag/v2.0.7
    • Additional fuzzers removed from the CI instrumentation repository
      * Remove additional fuzzers from instrumentation repo ([#12420](https://github.com/containerd/containerd/pull/12420))
        * [`f6b02f6bb`](https://github.com/containerd/containerd/commit/f6b02f6bb81dc079f60d421347c931c73d4227e7) Remove additional fuzzers from CI
      github.com/containerd/containerd/releases/tag/v2.0.7
    • install-runhcs-shim checks out the requested target
      * install-runhcs-shim: fetch target commit instead of tags ([#12255](https://github.com/containerd/containerd/pull/12255))
        * [`0b35e19fb`](https://github.com/containerd/containerd/commit/0b35e19fb118b5144a75397522e476d0571ae9ef) install-runhcs-shim: fetch target commit instead of tags
      github.com/containerd/containerd/releases/tag/v2.0.7
    • Cleanup test added for DoPrepareIDMappedOverlay()
        * [`afdede4ce`](https://github.com/containerd/containerd/commit/afdede4ced8c848191062b31dfcff1352161a844) core/mount: Test cleanup of DoPrepareIDMappedOverlay()
      github.com/containerd/containerd/releases/tag/v2.0.7
    • CI Go versions updated to 1.23.12 and 1.24.6
      * ci: bump Go 1.23.12, 1.24.6 ([#12187](https://github.com/containerd/containerd/pull/12187))
        * [`9e72e91e6`](https://github.com/containerd/containerd/commit/9e72e91e63a75147f2a082565fc580babee8af06) ci: bump Go 1.23.12, 1.24.6
      github.com/containerd/containerd/releases/tag/v2.0.7
    • Pidfd duplication error reporting fixed
      * Fix pidfd leak in UnshareAfterEnterUserns ([#12178](https://github.com/containerd/containerd/pull/12178))
        * [`5bec0a332`](https://github.com/containerd/containerd/commit/5bec0a33297ad485f96116efb333ea750a27c926) sys: fix pidfd leak in UnshareAfterEnterUserns
      github.com/containerd/containerd/releases/tag/v2.0.7
    • Windows CI test setup changed to address intermittent failures
      * Fix windows test failures ([#12120](https://github.com/containerd/containerd/pull/12120))
        * [`2a2488131`](https://github.com/containerd/containerd/commit/2a2488131e3602bbbecf4afa11d0f3e4135f01a4) Fix intermittent test failures on Windows CIs
      github.com/containerd/containerd/releases/tag/v2.0.7
    • Windows Server 2025 CI coverage removed
        * [`018470948`](https://github.com/containerd/containerd/commit/018470948db89512760e9c25d4c5da9c7bef5321) Remove WS2025 from CIs due to regression
      github.com/containerd/containerd/releases/tag/v2.0.7

    Summaries are produced by AI, so they can be wrong, and they are provided without warranty.