🔍 CVE-2026-98977

0.0
CVSS Score
UNKNOWN
2026-10-23
2026-10-23 13:17
✅ 완료

🇰🇷 한글 설명

Linux 커널에서 자동 마운트(automount) 처리 시 마운트 잠금이 잘못된 네임스페이스의 마운트에 적용되는 문제가 해결되었습니다. attach_recursive_mnt()가 소스 마운트의 사용자 네임스페이스를 호출자의 마운트 네임스페이스 기준으로 확인하지 않아, 다른 네임스페이스의 태스크가 자동 마운트를 트리거하면 호스트 마운트의 플래그 변경이 막히는 문제가 있었습니다.

💡 쉬운 설명

리눅스 커널이 파일 시스템을 자동으로 연결할 때, 다른 사용자 공간에서 실행된 프로세스 때문에 호스트 시스템의 마운트 설정이 잘못 잠길 수 있었습니다. 이번 수정으로 잠금이 올바른 공간에 적용되도록 바로잡혔습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: namespace: handle mount locking for automounts correctly If mounts are propagated across user namespaces, attach_recursive_mnt() locks every copy of the source mount to protect overmounts from vanishing and revealing the underlying files or directories. The user namespace is taken from the caller's mount namespaces since this is where the mounts end up. Except, that's not always true. Automounts may legitimately get popped in by tasks located in a different mount and user namespace during path lookup. Then check doesn't make sense at that point. The copy in the namespace of the parent - which may be the host's - is now locked and the host cannot change the flags of its own mounts anymore. Here's the reproducer: - host has debugfs mounted nosuid,nodev,noexec and shared - tracefs automount below it is not yet active - hand a child process a directory descriptor on that mount - child process enters auser and mount namespace - child process' namespace now holds a locked copy of the host's debugfs mount that receives propagation from it - child process stats "tracing/." through the descriptor - lookup runs on the host's mount so the automount lands below the host's mount - propagation puts a copy below the child's copy - both try to clear the flags on the mount they got, with a bind remount: host, on its own automount: MS_REMOUNT|MS_BIND = EPERM child, on the copy in its namespace: MS_REMOUNT|MS_BIND = 0 So the lock landed on the host's mount instead of the child's copy. Congrats. So we need to compare with the owner of the namespace the mount actually gets mounted on. For all regular cases that is the caller's mount namespace and so nothing changes. Detached trees in anonymous mount namespaces by be handed over via SCM_RIGHTS or inherited in other ways on purpose so the attaching task's mount namespace is authoritative, not the creator of the detached tree.

📍 영향받는 시스템

마운트 네임스페이스와 사용자 네임스페이스를 사용하는 Linux 커널 (수정 커밋 적용 전 버전, 정확한 영향 버전은 커널 changelog 확인 필요)

⚔️ 공격 벡터

비특권 사용자가 사용자/마운트 네임스페이스를 생성하고 자동 마운트 경로를 조작해 호스트 마운트 플래그 변경을 방해하거나 정책 우회를 시도

🛡️ 대응 방법

Linux 커널을 해당 취약점이 수정된 최신 안정 버전으로 업그레이드

🔧 검증 코드

출력된 커널 버전을 배포판 보안 공지 또는 커널 changelog와 대조해 수정 패치 포함 여부를 확인 (CVE 정보가 제한적이므로 CVE-2026-98977 공식 권고 확인 권장)

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel