RATATOSK
← リリース一覧

Kubernetesv1.35.9

セキュリティ 4破壊的変更 1非推奨 1重大な修正 2依存関係の更新 2その他の変更 3

Kubernetesの通知を受け取る

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

セキュリティ4medium3

Windows kubectl cp の任意パスへの書き込みを修正

medium
影響対象リリースノートに記載なし

攻撃者がコピー元コンテナを制御している場合、悪意のあるアーカイブ内のパスによって意図した保存先から抜け出し、ローカルユーザーのシステム権限で許可された任意の場所にファイルを書き込める可能性がありました。アップグレード後は、こうしたパスで保存先の外に書き込めなくなります。

原文を表示
セキュリティアドバイザリ
A path traversal vulnerability exists in the `kubectl cp` command when it is run on Windows. `kubectl cp` copies files between containers and the user machine. To copy files *from* a container, Kubernetes runs `tar` inside the container to create a tar archive, copies it over the network, and `kubectl` unpacks it on the user's machine. If the `tar` binary in the container is malicious, it could run any code and output unexpected, malicious results.
An attacker who controls the contents of a container could use this to write files to arbitrary paths on the user's machine when `kubectl cp` is called, limited only by the system permissions of the local user. This issue only affects clients on Windows platforms.
You are affected if you run the `kubectl` client on Windows and use `kubectl cp` to copy files *from* a container whose contents you do not fully control.
Prior to upgrading, this vulnerability can be mitigated by only copying files from containers you trust, or by avoiding `kubectl cp` from untrusted containers on Windows.
github.com/kubernetes/kubernetes/issues/141294
セキュリティアドバイザリ
kubectl cp path traversal on Windows allows arbitrary file writes
github.com/kubernetes/kubernetes/issues/141294

StatefulSet の別 namespace への Pod 作成脆弱性の修正

medium
影響対象リリースノートに記載なし

namespace 単位で StatefulSet と ControllerRevision オブジェクトへの書き込み権限を持つ攻撃者が、別の namespace に Pod を作成し、そのメタデータと仕様を制御できる可能性がありました。その Pod は、被害側の namespace に存在する StatefulSet を参照する有効な StatefulSet の OwnerReference を持たない限り削除されました。修正版では、ControllerRevision から spec フィールドのみを復元します。

原文を表示
セキュリティアドバイザリ
A confused deputy attack exists in the StatefulSet controller that allows a user with namespace-scoped write permissions on StatefulSet and ControllerRevision objects to create a cross-namespace pod. An attacker exploiting this vulnerability would have full control over the resulting pod’s metadata and specification, including namespace selection. Note that the cross-namespace pod will be immediately deleted by the garbage collector unless the attacker is able to construct a valid StatefulSet OwnerReference. This would require referencing the UID of an existing StatefulSet in the victim’s namespace.
This issue can be mitigated by upgrading to a fixed kube-controller-manager version. The fixed versions are patched to ensure that only the spec field in StatefulSets will be restored from ControllerRevisions.
github.com/kubernetes/kubernetes/issues/142097
セキュリティアドバイザリ
StatefulSet and ControllerRevision write permissions allow cross-namespace pod creation
github.com/kubernetes/kubernetes/issues/142097

Windows kubelet の UNC シンボリックリンク脆弱性の修正

medium
影響対象リリースノートに記載なし

Pod の volumeMount の subPath が、UNC パス上にある攻撃者が制御するネットワーク共有を指すシンボリックリンクだった場合、kubelet は NTLM 認証を試み、kubelet の実行アカウントの NetNTLMv2 ハッシュが漏えいするおそれがありました。修正版では、Windows 上の UNC を指すシンボリックリンクを拒否します。

原文を表示
セキュリティアドバイザリ
CVSS Rating: [CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N) - Medium (5.8)
An NTLM coercion vulnerability exists on Windows nodes when the subPath supplied in a pod's volumeMounts is set to a symbolic link that points to an attacker-controlled network share. When a kubelet resolves symlinks, it does not reject a target that resolves to a UNC path. As a result, the kubelet will transparently attempt to authenticate to the share using NTLM.
This allows an attacker to obtain the NetNTLMv2 hash of the account under which the kubelet is running. An attacker could then attempt to crack the hash to retrieve the corresponding password or relay it to impersonate the node, if the node is domain-joined.
This issue can be mitigated by upgrading to a fixed kubelet version. The fixed versions update kubelet to refuse UNC symlink targets on Windows.
github.com/kubernetes/kubernetes/issues/142098
セキュリティアドバイザリ
Subpath symlinking on Windows nodes permits NTLM coercion
github.com/kubernetes/kubernetes/issues/142098

DRA アロケーターによる上限超過の ResourceClaim 要求の拒否

影響対象kube-scheduler における ResourceClaim の DRA 割り当て(推定)

デバイス要求数が claim ごとの上限を超えると、ネイティブの int 型の合計値でオーバーフローが発生し、チェックをすり抜けて、結果スライスの割り当て時に kube-scheduler がクラッシュする可能性がありました。

原文を表示
- Kube-scheduler: a ResourceClaim whose device request counts add up past the int range no longer crashes the scheduler or skips the `firstAvailable` fallback in the DRA allocator. A request over the per-claim device limit is rejected with an error naming it, and an oversized `firstAvailable` alternative falls through to a smaller one. ([#141924](https://github.com/kubernetes/kubernetes/pull/141924), [@thc1006](https://github.com/thc1006)) [SIG Node]
github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.35.md

破壊的変更1

Kubelet のフォールバックメトリクスの version ラベル更新

影響対象RuntimeConfig に対応していない CRI 実装を使用する kubelet 環境(推定)

この状況で kubelet が設定の cgroupDriver にフォールバックする際、CRILosingSupport の version ラベル値は 1.36.0 でしたが、現在は 1.38.0 です。

根拠“kubeletmetrics.CRILosingSupport.WithLabelValues("1.38.0").Inc()” kubernetes/kubernetes/pull/139268 ↗
原文を表示
- Kubelet: defer the configurations flags (and the related fallback behavior) deprecation removal timeline from 1.37 to 1.38 to align with containerd v1.7 support
github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.35.md

非推奨1

kubeadm cgroupDriver フォールバック削除警告の対象を 1.38 に変更

影響対象RuntimeConfig がないランタイムを使用する場合の、kubeadm ContainerRuntimeVersion 事前チェック
削除予定1.38

以前は、フォールバックの削除時期を 1.36 とする警告でした。これらの構成では、現在、1.38 未満の kubelet バージョンに対して事前チェック警告が表示されます。

原文を表示
  kubeadm: the preflight check `ContainerRuntimeVersion` validates if the installed container runtime supports the `RuntimeConfig` gRPC method. For older kubelet versions than 1.38, it will return a preflight warning. ([#139268](https://github.com/kubernetes/kubernetes/pull/139268), [@carlory](https://github.com/carlory)) [SIG Cluster Lifecycle, Node and Testing]
github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.35.md

重大な修正2

  • 過大な候補による DRA アロケーターのフォールバック処理の修正
    影響対象DRA アロケーターで ResourceClaim の firstAvailable 代替候補を使用する場合(推定)

    過大な firstAvailable の候補の後に小さな候補が続く場合、アロケーターが小さなフォールバック候補をスキップすることがありました。過大な候補を除外し、小さな候補を選択できるようになりました。

    - Kube-scheduler: a ResourceClaim whose device request counts add up past the int range no longer crashes the scheduler or skips the `firstAvailable` fallback in the DRA allocator. A request over the per-claim device limit is rejected with an error naming it, and an oversized `firstAvailable` alternative falls through to a smaller one. ([#141924](https://github.com/kubernetes/kubernetes/pull/141924), [@thc1006](https://github.com/thc1006)) [SIG Node]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.35.md
  • kubeadm init による共有 kubelet 設定へのノード固有リゾルバーパスの書き込み防止
    影響対象systemd-resolved を使用して kubeadm init を実行する環境(推定)
    - Kubeadm: no longer persists a node-specific systemd-resolved resolvConf path in the cluster-wide kubelet-config ConfigMap during init. ([#141629](https://github.com/kubernetes/kubernetes/pull/141629), [@HirazawaUi](https://github.com/HirazawaUi)) [SIG Cluster Lifecycle]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.35.md

依存関係の更新2

    ほか2件(いずれもセキュリティへの言及なし)
    • - Kubernetes is now built using Go 1.26.8 ([#142182](https://github.com/kubernetes/kubernetes/pull/142182), [@cpanato](https://github.com/cpanato)) [SIG Release and Testing]
    • - Kubernetes is now built using Go 1.26.8 ([#142182](https://github.com/kubernetes/kubernetes/pull/142182), [@cpanato](https://github.com/cpanato)) [SIG Release and Testing]
    その他の変更3

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