RATATOSK
← リリース一覧

containerdv2.0.7

セキュリティ 6破壊的変更 2重大な修正 11機能・改善 2依存関係の更新 2その他の変更 15

containerdの通知を受け取る

週次メールは確認すべき変更がある週だけ、深刻度がcriticalのセキュリティアドバイザリは即時に届きます。

セキュリティ6high1medium1

containerd のディレクトリ権限が広すぎる問題の修正

high
影響対象影響を受けるディレクトリがある containerd v2 インストール環境。temp ディレクトリを設定している環境も含みます

修正前は、これらのディレクトリの権限が広すぎる場合があり、ホスト上のローカルユーザーがメタデータ、コンテンツ、または Kubernetes のローカルボリュームの内容にアクセスできる状態でした。既存の影響を受けるディレクトリと新規作成されるディレクトリの権限は 0o700 に変更されます。/run/containerd と /run/containerd/io.containerd.runtime.v2.task は引き続き 0o711 です。

原文を表示
  * [**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 のゴルーチンリークを修正

medium
影響対象containerd の CRI Attach 実装を使用する環境

kubectl attach などで CRI Attach を繰り返し呼び出すと、ゴルーチンがリークして containerd のメモリー使用量が増加し、ホストメモリーを使い果たすおそれがありました。

原文を表示
  * [**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 のコンソールデバイスのマウント保護を修正

影響対象影響を受けるバージョンの runc を使用し、コンソールを割り当てるコンテナ

攻撃者が /dev/pts/$n から /dev/console へのバインドマウントに影響を与えられる場合、影響を受けるバージョンの runc により、本来は読み取り専用またはマスクされるべきパスが書き込み可能になる可能性がありました。この問題にはアドバイザリに記載された上流の修正が適用されていますが、containerd v2.0.7 に含まれる runc のバージョンはリリース資料に記載されていません。

原文を表示
  * [**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 書き込みリダイレクトの修正

影響対象影響を受けるバージョンの runc を使用し、共有マウントを使うコンテナがある環境

共有マウントを使うコンテナで競合が起きると、sysctl の書き込みを含む runc の /proc への書き込みが、別の procfs ファイルにリダイレクトされる可能性がありました。アドバイザリによると、カスタムの共有マウントを使うコンテナを並列実行する docker buildx build 中にも発生する可能性があります。

原文を表示
  * [**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 のマウント検証修正

影響対象runc の maskedPaths にファイルパスを設定したコンテナ

runc がファイルをマスクするためにコンテナの /dev/null を使用する際、競合によってこれがシンボリックリンクに置き換えられ、任意のソースがコンテナ内にマウントされる可能性がありました。また、削除されて maskedPaths が何も通知されずにスキップされる可能性もありました。

原文を表示
  * [**GHSA-9493-h29p-rfm2**](https://github.com/opencontainers/runc/security/advisories/GHSA-9493-h29p-rfm2)
github.com/containerd/containerd/releases/tag/v2.0.7

ランタイム shim による bootstrap.json の作成モードを 0644 に設定

影響対象ランタイム shim が bootstrap.json を作成する構成(推定)
原文を表示
* **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

破壊的変更2

containerd のディレクトリ権限の厳格化

影響対象/var/lib/containerd、config.TempDir、/run/containerd/io.containerd.grpc.v1.cri、または /run/containerd/io.containerd.sandbox.controller.v1.shim を使用するインストール環境、およびユーザー名前空間で再マップされたコンテナとそれ以外のコンテナのタスクディレクトリ(推定)

以前は、最初の4つのディレクトリのモードは順に 0o711、0o711、0o755、0o711 でした。アップグレード後は、これらのモードが 0o700 になります。タスクディレクトリの親ディレクトリは 0o711 のままです。タスクディレクトリは、ユーザー名前空間で再マップされたコンテナでは 0o710、それ以外のコンテナでは 0o700 になります。

根拠“- 0o700 for non-userns-remapped containers - 0o710 for userns-remapped containers with the remapped root group as the owner group.” containerd/containerd/commit/8cd112d8295bafcf4a992816ff9e07f5a78ff71b ↗
原文を表示
  * [`8cd112d82`](https://github.com/containerd/containerd/commit/8cd112d8295bafcf4a992816ff9e07f5a78ff71b) Fix directory permissions
github.com/containerd/containerd/releases/tag/v2.0.7

一時的な idmapped バインドマウントの読み取り専用化

影響対象ユーザー名前空間と一時的な idmapped バインドマウントを使用する overlayfs 構成

一時マウントが誤って変更されるのを防ぎます。

根拠“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 ↗
原文を表示
  * [`1c32accd7`](https://github.com/containerd/containerd/commit/1c32accd71d34e3cb5798214adf26911609d11f1) Make ovl idmap mounts read-only
github.com/containerd/containerd/releases/tag/v2.0.7

重大な修正11

  • containerd-shim-runc-v2 のコンテナログ欠落の修正
    影響対象containerd-shim-runc-v2 を使用するコンテナ(推定)

    初期化中または exec プロセスの削除時に I/O がすぐに閉じると、2秒間の排出待ちではコンテナログが失われることがありました。shim は I/O の排出を最大10秒待つようになり、それでもタイムアウトした場合はエラーをログに記録します。

    * 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
  • ポッドサンドボックスの重複クリーンアップ経路の修正
    影響対象CRI のポッドサンドボックスのタスククリーンアップ

    ポッドサンドボックスのタスクをクリーンアップする際、イベントサブスクライバーがサンドボックスコンテナー固有のゴルーチンと並行して、2つ目のクリーンアップ用ゴルーチンを起動することがありました。その結果、task.Delete が並行して呼び出され、最悪の場合は shim がリークする可能性がありました。クリーンアップ中はイベントサブスクライバーを無効にすることで、この重複したクリーンアップ経路を回避します。

    * **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 サブコマンドの追加
    影響対象ctr shim コマンドを使用する環境

    アクティブなコンテナがない場合に限り、シャットダウン要求を送信します。--api-version は 2 または 3 を受け付け、既定値は 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
  • ユーザー名前空間でのイメージ VOLUME のコピーアップ修正
    影響対象イメージの VOLUME マウントでコピーアップが必要な、ユーザー名前空間を使用する CRI ワークロード

    コピーアップ時に UID/GID の変換を行わずにファイルがコピーされるため、コピーされたファイルのコンテナ内の UID/GID は 0:0 になります。

    * **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 の監視用 goroutine のリーク修正
    影響対象stdout または stderr の出力がないコンテナーへの CRI Attach セッション(推定)

    修正前は、stdout または stderr の出力がないコンテナーに Attach すると、監視用 goroutine が終了しませんでした。アップグレード後は、コンテキストのキャンセルによって監視用 goroutine が解放され、stdout と stderr の書き込みグループからストリームキーが削除されます。

      * [`4d1edf4ad`](https://github.com/containerd/containerd/commit/4d1edf4addf8c31b096680f04fee499cabc75439) fix goroutine leak of container Attach
    github.com/containerd/containerd/releases/tag/v2.0.7
  • クリーンアップの再試行による一時的な idmapped マウントのリーク防止
    影響対象overlayfs と一時的な idmapped マウントを使用するユーザー名前空間

    idmapped ディレクトリー用の一時的な bind マウントをアンマウントできなかった場合、クリーンアップを一度試みるだけではマウントが残ることがありました。アンマウントエラー後にクリーンアップを再試行するようになりました。

      * [`05c0c99f4`](https://github.com/containerd/containerd/commit/05c0c99f432b341152b54ce49d9b43c5cf3d131f) core/mount: Retry unmounting idmapped directories
    github.com/containerd/containerd/releases/tag/v2.0.7
  • ID マップ overlay の準備中にエラーが発生した場合のクリーンアップ
    影響対象ユーザー名前空間の ID マップ overlay マウント(推定)

    準備中にエラーが発生すると、一時的なマウント先やマウントが後始末されずに残ることがありました。今後は、準備処理がエラーを返す際、それまでに作成されたリソースがクリーンアップされます。

      * [`47205f814`](https://github.com/containerd/containerd/commit/47205f814d552a4eea9935375dd2f0874e107e5b) core/mount: Properly cleanup on doPrepareIDMappedOverlay errors
    github.com/containerd/containerd/releases/tag/v2.0.7
  • idmapped overlay での nil cleanup 呼び出しエラーの修正
    影響対象idmapped overlay マウント

    overlay の準備処理がエラーを返し、cleanup 関数が nil の場合、エラーを確認する前に cleanup が defer されていたため、nil の関数が呼び出される可能性がありました。マウント処理は、cleanup を defer する前に準備エラーを返すようになりました。

      * [`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 のレイヤー ID マッピングで bind mount を削減
    影響対象ユーザー名前空間と複数の下位レイヤーを使用する overlayfs 構成(推定)

    複数の下位レイヤーを持つ ID マッピング済み overlayfs の準備時、以前は各レイヤーに個別に ID マッピングを適用していたため、一時的な bind mount が多く作成されていました。現在はすべてのレイヤーを含むディレクトリーに一度だけ ID マッピングを適用するため、overlayfs ごとの bind mount 数が減り、パフォーマンスが向上します。

      * [`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
  • UnshareAfterEnterUserns における pidfd リークの修正
    影響対象UnshareAfterEnterUserns を呼び出すセットアップ(推定)
    * 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
  • UnshareAfterEnterUserns での pidfd 対応の早期確認
    影響対象カーネルが pidfd に対応していない環境で UnshareAfterEnterUserns を呼び出す構成(推定)

    カーネルが pidfd に対応していない場合、この関数は kernel doesn't support pidfd を返します。

    * 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

機能・改善2

  • CRI のデフォルトランタイムオプションへの SystemdCgroup の追加
    * **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
  • hosts TOMLへのホストごとの dial_timeout 設定の追加
    * **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

依存関係の更新2

    ほか2件(いずれもセキュリティへの言及なし)
    • * **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
    その他の変更15
    • v2.0.7 のリリースノートと mailmap を更新
      * 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 バージョンに Go 1.24.9 と 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 ランナーイメージの更新
        * [`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 のディレクトリ除外設定で 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 ツールを 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 アクションの 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 を 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 による ubuntu-24.04-arm ランナーのスキップ
      * 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
    • CI 計測リポジトリからの追加ファザーの削除
      * 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 による指定対象のチェックアウト
      * 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
    • 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 バージョンを 1.23.12 と 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 複製時のエラー報告の修正
      * 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 テスト設定の変更
      * 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 カバレッジの削除
        * [`018470948`](https://github.com/containerd/containerd/commit/018470948db89512760e9c25d4c5da9c7bef5321) Remove WS2025 from CIs due to regression
      github.com/containerd/containerd/releases/tag/v2.0.7

    整理した内容は AI が作成するため誤っている可能性があり、無保証で提供されます。