🔍 CVE-2020-16120

5.1
CVSS Score
MEDIUM
2021-02-10
2026-06-17 02:57
✅ 완료

🇰🇷 한글 설명

Overlayfs에서 파일을 복사할 때 권한 확인이 제대로 이루어지지 않는 취약점이 발견되었습니다. 이로 인해 권한이 없는 사용자가 사용자 네임스페이스를 통해 읽을 수 없는 파일에 접근하거나 조작할 수 있는 위험이 있습니다.

💡 쉬운 설명

파일을 겹쳐서 보여주는 기능에서 보안 검사가 빠져 있어, 원래는 볼 수 없는 파일을 몰래 가져올 수 있는 문제입니다. 해커가 권한을 속여서 시스템의 중요한 파일에 접근할 수 있게 됩니다.

🇺🇸 원문 (English)

Overlayfs did not properly perform permission checking when copying up files in an overlayfs and could be exploited from within a user namespace, if, for example, unprivileged user namespaces were allowed. It was possible to have a file not readable by an unprivileged user to be copied to a mountpoint controlled by the user, like a removable device. This was introduced in kernel version 4.19 by commit d1d04ef ("ovl: stack file ops"). This was fixed in kernel version 5.8 by commits 56230d9 ("ovl: verify permissions in ovl_path_open()"), 48bd024 ("ovl: switch to mounter creds in readdir") and 05acefb ("ovl: check permission to open real file"). Additionally, commits 130fdbc ("ovl: pass correct flags for opening real directory") and 292f902 ("ovl: call secutiry hook in ovl_real_ioctl()") in kernel 5.8 might also be desired or necessary. These additional commits introduced a regression in overlay mounts within user namespaces which prevented access to files with ownership outside of the user namespace. This regression was mitigated by subsequent commit b6650da ("ovl: do not fail because of O_NOATIMEi") in kernel 5.11.

📍 영향받는 시스템

Linux Kernel 4.19 이상 5.8 미만 버전

⚔️ 공격 벡터

사용자 네임스페이스(User Namespace)를 이용한 권한 상승 및 파일 접근 공격

🛡️ 대응 방법

Linux 커널을 5.8 이상 버전(또는 5.11 이상 권장)으로 업데이트하십시오.

🔧 검증 코드

출력된 커널 버전이 4.19 이상 5.8 미만인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM Security Verify Access