🔍 CVE-2026-98993

7.8
CVSS Score
HIGH
2026-10-23
2026-10-30 13:21
✅ 완료

🇰🇷 한글 설명

리눅스 커널에서 MNT_UMOUNT 플래그가 clone_mnt() 과정에서 복사되는 문제가 해결되었습니다. 지연 언마운트되었지만 파일 디스크립터로 유지 중인 마운트가 nsfs나 pidfs 루트를 통해 복제되면 이 플래그를 상속받아 마운트 네임스페이스 정리, 전파 해제, 잠긴 마운트 처리에서 여러 오류를 일으켰습니다. 수정은 MNT_UMOUNT를 내부 플래그에 추가하여 복제 마운트가 이 플래그를 갖지 않도록 하고, 이미 설정된 마운트를 umount_tree()가 만나면 경고를 출력하도록 합니다.

💡 쉬운 설명

마운트가 이미 해제 중인 상태임을 나타내는 표시가 새 복사본에도 잘못 붙어 시스템이 엉뚱한 마운트를 해제하거나 메모리를 놓치는 문제가 있었습니다. 이번 수정은 복사본이 이 표시를 물려받지 않도록 막아 문제를 없앱니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: namespace: don't inherit MNT_UMOUNT in clone_mnt() MNT_UMOUNT gets raised on a mount that umount_tree() or umount_one() has taken out of its namespace. It's never cleared. __detach_mounts() unhooks a mount that carries it instead of unmounting it. disconnect_mount() lets an unmounted child stay attached only if its parent carries it. propagate_umount() takes it as the sign that a mount is going to be unmounted when it decides what else can be unmounted, where a chain of locked mounts ends and where a for reparenting an overmount. clone_mnt() copies the flags of the source and only masks MNT_INTERNAL_FLAGS which doesn't include MNT_UMOUNT. A mount that was lazily unmounted but is kept alive by a file descriptor can still be copied when its root is an nsfs or pidfs file because may_copy_tree() accepts those before checking whether the source is mounted at all: mount --bind /proc/self/ns/net /tmp/x exec 3< /tmp/x umount -l /tmp/x mount --bind /proc/self/fd/3 /tmp/y The mount on /tmp/y is attached to the caller's namespace with MNT_UMOUNT already set and every copy of it inherits the flag again. That causes a number of bugs: - Unlink its mountpoint from a mount namespace where it isn't one. __detach_mounts() takes it for a mount that was unmounted earlier, unhooks it from its parent and drops the reference the namespace holds on it. It stays in the namespace with one reference too few and as its own parent, so it can't be unmounted through the file descriptor anymore and the namespace never finds it again. When the namespace goes away it's leaked and points to a freed struct mnt_namespace that may_change_propagation() and anon_ns_root() read on the next propagation change or mount_setattr() through the file descriptor. - Make it shared and unmount a peer. trace_transfers() follows the flag from the peer into it and strips it from its peer group. - Let a propagated umount reach it. gather_candidates() marks it with T_UMOUNT_CANDIDATE but never puts it on the candidate list, so the mark is never cleared and every later propagated umount skips it. If it's the parent of a locked mount handle_locked() takes it as the cutoff and commits the locked child that should have stayed and disconnect_mount() leaves that child attached to it, unmounted under a mounted parent, which is what disconnect_mount() exists to prevent. When the namespace goes away umount_tree() visits the child a second time. And once __detach_mounts() has made it its own parent reparent() never finds the end of the chain of unmounted parents. A clone is a new mount that has never been unmounted. Add MNT_UMOUNT to MNT_INTERNAL_FLAGS so clone_mnt() never copies it. And warn when umount_tree() reaches a mount that already has it set.

📍 영향받는 시스템

패치 이전의 리눅스 커널 (CVSS 7.8, 정확한 영향 버전은 해당 커널 패치 목록 확인 필요)

⚔️ 공격 벡터

지역 권한이 있는 사용자가 지연 언마운트된 nsfs/pidfs 마운트를 파일 디스크립터로 유지한 뒤 바인드 마운트로 복제하여 커널 마운트 상태를 오염시킴

🛡️ 대응 방법

배포판 제공 최신 커널 업데이트를 설치하고 재부팅

🔧 검증 코드

출력된 커널 버전을 배포판 보안 공지의 CVE-2026-98993 수정 커널 버전과 비교하여 같거나 높으면 패치된 것, 낮으면 업데이트가 필요합니다.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel