RATATOSK
← リリース一覧

Kubernetesv1.34.12

セキュリティ 3重大な修正 3

Kubernetesの通知を受け取る

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

セキュリティ3medium3

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

重大な修正3

  • DRA アロケーターの要求数オーバーフロー修正
    影響対象デバイス要求数が int の範囲または ResourceClaim ごとの上限を超える DRA ResourceClaim、またはサイズが大きすぎる firstAvailable の代替候補(推定)

    デバイス要求数の合計がオーバーフローして負の整数になり、割り当て結果のサイズチェックをすり抜けてスケジューラーがパニックすることがありました。また、オーバーフローによって 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. ([#141925](https://github.com/kubernetes/kubernetes/pull/141925), [@thc1006](https://github.com/thc1006)) [SIG Node]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.34.md
  • kubeadm init によるノード固有の resolvConf パスのクラスタ全体への保存停止
    影響対象systemd-resolved がノード固有の resolvConf パスを提供する kubeadm init の構成

    以前は、そのノード固有のパスをクラスタ全体の kubelet-config ConfigMap に保存していました。現在は保存しません。

    - Kubeadm: no longer persists a node-specific systemd-resolved resolvConf path in the cluster-wide kubelet-config ConfigMap during init. ([#141630](https://github.com/kubernetes/kubernetes/pull/141630), [@HirazawaUi](https://github.com/HirazawaUi)) [SIG Cluster Lifecycle]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.34.md
  • Kubelet/DRA の再試行時における CDI デバイス ID の重複防止
    影響対象PrepareResources を使用する Kubelet/DRA 環境

    あるドライバーの準備が一部成功した後、別のドライバーが setPrepared の前に失敗すると、再試行時にデバイスエントリーが重複し、コンテナーの起動に失敗することがありました。再試行時には、新しい応答を適用する前に、その claim とドライバーの組み合わせに対して以前に追加されたデバイスが破棄されます。

    - Kubelet/DRA: fixed a bug where retrying a partially-failed PrepareResources caused duplicate CDI device IDs to be passed to the CRI runtime, which could cause container start to fail. ([#140953](https://github.com/kubernetes/kubernetes/pull/140953), [@bart0sh](https://github.com/bart0sh)) [SIG Node]
    github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.34.md

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