🔍 CVE-2022-50668

7.5
CVSS Score
HIGH
2025-12-09
2026-08-04 10:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ext4 파일 시스템에서 mbcache 엔트리 손상으로 인해 데드락이 발생하는 취약점입니다. xattr 블록 조작 시 비원자적(non-atomic) 비트 업데이트로 인해 참조 횟수와 재사용 가능 상태 간의 불일치가 발생하여 무한 루프에 빠질 수 있습니다.

💡 쉬운 설명

파일 시스템이 데이터를 저장하는 과정에서 내부 기록이 꼬여 컴퓨터가 멈추는 현상이 발생할 수 있습니다. 특정 상황에서 시스템이 무한 반복 작업에 빠져 응답하지 않게 됩니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ext4: fix deadlock due to mbcache entry corruption When manipulating xattr blocks, we can deadlock infinitely looping inside ext4_xattr_block_set() where we constantly keep finding xattr block for reuse in mbcache but we are unable to reuse it because its reference count is too big. This happens because cache entry for the xattr block is marked as reusable (e_reusable set) although its reference count is too big. When this inconsistency happens, this inconsistent state is kept indefinitely and so ext4_xattr_block_set() keeps retrying indefinitely. The inconsistent state is caused by non-atomic update of e_reusable bit. e_reusable is part of a bitfield and e_reusable update can race with update of e_referenced bit in the same bitfield resulting in loss of one of the updates. Fix the problem by using atomic bitops instead. This bug has been around for many years, but it became *much* easier to hit after commit 65f8b80053a1 ("ext4: fix race when reusing xattr blocks").

📍 영향받는 시스템

ext4 파일 시스템을 사용하는 Linux 커널 버전 (특정 커밋 이후 버전 포함)

⚔️ 공격 벡터

로컬 사용자가 xattr(확장 속성) 블록 조작을 유도하여 시스템 데드락 유발

🛡️ 대응 방법

비트 연산을 원자적 연산(atomic bitops)으로 수정하여 패치된 최신 Linux 커널로 업데이트

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel