🔍 CVE-2024-57924

5.5
CVSS Score
MEDIUM
2025-01-19
2026-10-15 02:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 파일 핸들 인코딩 실패 시 과도한 WARN_ON() 어설션을 제거하는 보안 패치. overlayfs, nfsd, name_to_handle_at() 시스템콜에서 ->encode_fh() 실패 시 커널 경고 및 패닉을 유발하는 문제를 완화.

💡 쉬운 설명

Linux 시스템이 NFS를 통해 파일 정보를 네트워크로 전달할 때 특정 조건에서 불필요한 커널 경고가 발생하는 문제입니다. 이를 해제하면 시스템이 안정적으로 작동합니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: fs: relax assertions on failure to encode file handles Encoding file handles is usually performed by a filesystem >encode_fh() method that may fail for various reasons. The legacy users of exportfs_encode_fh(), namely, nfsd and name_to_handle_at(2) syscall are ready to cope with the possibility of failure to encode a file handle. There are a few other users of exportfs_encode_{fh,fid}() that currently have a WARN_ON() assertion when ->encode_fh() fails. Relax those assertions because they are wrong. The second linked bug report states commit 16aac5ad1fa9 ("ovl: support encoding non-decodable file handles") in v6.6 as the regressing commit, but this is not accurate. The aforementioned commit only increases the chances of the assertion and allows triggering the assertion with the reproducer using overlayfs, inotify and drop_caches. Triggering this assertion was always possible with other filesystems and other reasons of ->encode_fh() failures and more particularly, it was also possible with the exact same reproducer using overlayfs that is mounted with options index=on,nfs_export=on also on kernels < v6.6. Therefore, I am not listing the aforementioned commit as a Fixes commit. Backport hint: this patch will have a trivial conflict applying to v6.6.y, and other trivial conflicts applying to stable kernels < v6.6.

📍 영향받는 시스템

Linux kernel v6.6 이상 (overlayfs 사용 시스템, nfsd 활성화 환경)

⚔️ 공격 벡터

overlayfs + inotify + drop_caches 조합으로 커널 WARN_ON() 어설션 발동 가능 (DoS)

🛡️ 대응 방법

커널 6.6.y 또는 5.15.y 등 안정화 버전으로 업데이트하여 패치 적용

🔧 검증 코드

overlayfs 지원 여부와 커널 버전을 확인합니다. 패치가 적용된 커널은 config에서 관련 수정사항을 확인할 수 있습니다.

Shell / Script
grep -i 'overlay' /proc/filesystems && uname -r && zgrep 'relax assertions on failure to encode' /proc/config.gz

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel