🔍 CVE-2026-98988

8.8
CVSS Score
HIGH
2026-10-23
2026-10-24 14:16
✅ 완료

🇰🇷 한글 설명

Linux 커널의 open_tree(OPEN_TREE_NAMESPACE) 구현에서 mount namespace를 복사할 때 다른 마운트에 의해 가려진(covered) 하위 마운트 내용이 새 namespace에 그대로 노출될 수 있는 문제가 수정되었습니다. 권한이 없는 사용자도 user namespace를 먼저 만들면 이 경로를 통해 가려진 파일 내용을 읽을 수 있었습니다.

💡 쉬운 설명

다른 장치로 가려 숨겨 둔 폴더의 내용이 일반 사용자에게 보일 수 있는 취약점입니다. 컨테이너나 시스템이 감춘 정보가 노출될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: namespace: keep covered mounts covered in OPEN_TREE_NAMESPACE open_tree(OPEN_TREE_NAMESPACE) creates a new mount namespace from a copy of the tree at the given path. The caller needs to be privileged over its current user namespace because the new mount namespace will be owned by it. It doesn't need to be privileged over the mount namespace the tree is copied from. An unprivileged user just needs to create a user namespace first. The copy follows the rules of a detached bind mount. Without AT_RECURSIVE only the mount itself is cloned and its children are left out. With AT_RECURSIVE unbindable mounts are skipped. Both is fine when the caller has privileges over the source mount namespace because it could unmount those mounts anyway. Not so for an unprivileged user in that mount namespace. For them a mount namespace copy is what unshare() does. copy_mnt_ns() copies everything including unbindable mounts and lock_mnt_tree() makes sure nothing can be unmounted in the copy. Nothing that was covered gets revealed. create_new_namespace() only does the locking and so the covered content is right there in the new mount namespace: # mount -t tmpfs none /tmp/otn; mkdir /tmp/otn/covered # echo hidden > /tmp/otn/covered/under.txt # mount -t tmpfs none /tmp/otn/covered uid 1000, after unshare(CLONE_NEWUSER): fd = open_tree(AT_FDCWD, "/tmp/otn", OPEN_TREE_NAMESPACE); setns(fd, CLONE_NEWNS); open("/covered/under.txt", O_RDONLY) -> "hidden" Covering paths with mounts is how container runtimes mask parts of /proc and /sys and how admins hide things. When the caller's user namespace doesn't own the source mount namespace copy the way unshare() does and refuse a non-recursive copy of a mount that has anything mounted below the requested directory and copy unbindable mounts in a recursive copy. A caller that is privileged over the source mount namespace sees no change.

📍 영향받는 시스템

수정 이전의 Linux 커널 버전 (open_tree/OPEN_TREE_NAMESPACE를 지원하는 5.2 이후 대부분의 배포판)

⚔️ 공격 벡터

비특권 사용자가 unshare(CLONE_NEWUSER)로 user namespace를 만든 뒤 open_tree(OPEN_TREE_NAMESPACE)와 setns로 가려진 마운트 내용을 읽음

🛡️ 대응 방법

배포판 벤더가 제공하는 최신 보안 업데이트 커널로 업그레이드하고 재부팅

🔧 검증 코드

출력된 커널 버전을 배포판의 보안 권고문과 비교하여 CVE-2026-98988 수정이 포함된 패치 버전인지 확인하며, 패치 이전 버전이면 취약한 것으로 판단합니다

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel