RATATOSK
← 전체 릴리스

containerdv2.0.7

보안 6호환성 변경 2중요 수정 11기능·개선 2의존성 갱신 2기타 15

containerd 알림 받기

확인할 변경이 있을 때만 주 1회, 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 버전에서 공유 마운트를 사용하는 컨테이너가 있는 환경

공유 마운트를 사용하는 컨테이너에서 경합이 발생하면 runc가 /proc에 쓰는 데이터가 다른 procfs 파일로 리디렉션될 수 있었습니다. 여기에는 sysctl 쓰기도 포함됩니다. 어드바이저리에 따르면 병렬 컨테이너가 사용자 지정 공유 마운트를 사용하는 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을 사용할 때, 경쟁 상태로 /dev/null이 심볼릭 링크로 바뀌어 컨테이너 안에 임의의 소스를 마운트할 수 있었습니다. 또는 /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

bootstrap.json 생성 모드를 0644로 설정하는 런타임 shim

영향 대상런타임 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을 사용하는 설치 환경, userns 리매핑 컨테이너 및 기타 컨테이너의 태스크 디렉터리(추정)

업그레이드 전에는 앞의 네 디렉터리 모드가 순서대로 0o711, 0o711, 0o755, 0o711이었으며, 업그레이드 후에는 모두 0o700으로 변경됩니다. 태스크 디렉터리의 상위 디렉터리는 계속 0o711을 사용합니다. 태스크 디렉터리는 userns 리매핑 컨테이너에서 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 바인드 마운트 읽기 전용 설정

영향 대상user namespace와 임시 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를 사용하는 컨테이너(추정)

    init 또는 exec 프로세스 삭제 중 I/O가 빠르게 닫히면 2초 동안 drain을 기다리는 과정에서 컨테이너 로그가 유실될 수 있었습니다. 이제 shim은 I/O가 drain될 때까지 최대 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 파드 샌드박스 태스크 정리

    파드 샌드박스 태스크를 정리하는 동안 이벤트 구독자가 샌드박스 컨테이너의 개별 고루틴과 별도로 두 번째 정리 고루틴을 시작할 수 있었습니다. 이로 인해 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 copy-up 수정
    영향 대상사용자 네임스페이스를 사용하며 복사가 필요한 이미지 VOLUME 마운트가 있는 CRI 워크로드

    copy-up 과정에서 파일을 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 모니터 누수 수정
    영향 대상stdout 또는 stderr 출력이 없는 컨테이너의 CRI Attach 세션(추정)

    수정 전에는 stdout이나 stderr 출력이 없는 컨테이너에 Attach로 연결하면 모니터 고루틴이 종료되지 않았습니다. 업그레이드 후에는 컨텍스트가 취소되면 모니터가 해제되고, 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 mount를 언마운트하지 못하면 정리를 한 번만 시도하기 때문에 마운트가 누수될 수 있었습니다. 이제 언마운트 오류가 발생하면 정리를 재시도합니다.

      * [`05c0c99f4`](https://github.com/containerd/containerd/commit/05c0c99f432b341152b54ce49d9b43c5cf3d131f) core/mount: Retry unmounting idmapped directories
    github.com/containerd/containerd/releases/tag/v2.0.7
  • ID 매핑 오버레이 준비 중 오류 발생 시 정리
    영향 대상사용자 네임스페이스 ID 매핑 오버레이 마운트(추정)

    준비 중 오류가 발생하면 임시 마운트 위치나 마운트가 정리되지 않을 수 있었습니다. 이제 준비 함수가 오류를 반환할 때 오류 발생 전에 생성된 리소스도 정리됩니다.

      * [`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 오버레이 오류 시 nil 클린업 호출 수정
    영향 대상idmapped 오버레이 마운트

    오버레이 준비 과정에서 nil 클린업 함수와 함께 오류가 반환되면, 오류를 확인하기 전에 클린업을 defer했기 때문에 nil 함수를 호출할 수 있었습니다. 이제 마운트 경로는 클린업을 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 매핑에 필요한 바인드 마운트 감소
    영향 대상사용자 네임스페이스와 여러 하위 레이어를 사용하는 overlayfs 구성(추정)

    여러 하위 레이어가 있는 idmapped overlayfs를 준비할 때는 이전에 각 레이어를 개별적으로 ID 매핑해 임시 바인드 마운트가 더 많이 생성됐습니다. 이제 모든 레이어가 들어 있는 디렉터리를 한 번만 ID 매핑하므로 overlayfs당 바인드 마운트 수가 줄고 성능이 향상됩니다.

      * [`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

  • SystemdCgroup CRI 기본 런타임 옵션에 추가
    * **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 버전에 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 린트 도구의 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
    • Fedora 43으로 CI 업데이트
      * 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
    • 비공개 저장소에서 ubuntu-24.04-arm runner를 건너뛰는 CI
      * 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가 작성하므로 틀릴 수 있으며, 보증 없이 제공합니다.