🔍 CVE-2021-47254

7.8
CVSS Score
HIGH
2024-05-21
2026-08-04 10:16
✅ 완료

🇰🇷 한글 설명

Linux 커널의 GFS2 파일 시스템에서 gfs2_glock_shrink_scan 함수 실행 중 Use-After-Free 취약점이 발견되었습니다. 경합 조건(Race Condition)으로 인해 glock이 LRU 리스트에서 적절히 제거되지 않아 메모리 관리 오류가 발생할 수 있습니다.

💡 쉬운 설명

컴퓨터가 메모리에서 데이터를 지우는 과정에서 순서가 꼬여, 이미 삭제된 데이터를 다시 사용하려고 시도하는 문제입니다. 이로 인해 시스템이 멈추거나 보안 문제가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: gfs2: Fix use-after-free in gfs2_glock_shrink_scan The GLF_LRU flag is checked under lru_lock in gfs2_glock_remove_from_lru() to remove the glock from the lru list in __gfs2_glock_put(). On the shrink scan path, the same flag is cleared under lru_lock but because of cond_resched_lock(&lru_lock) in gfs2_dispose_glock_lru(), progress on the put side can be made without deleting the glock from the lru list. Keep GLF_LRU across the race window opened by cond_resched_lock(&lru_lock) to ensure correct behavior on both sides - clear GLF_LRU after list_del under lru_lock.

📍 영향받는 시스템

Linux Kernel (GFS2 파일 시스템을 사용하는 버전)

⚔️ 공격 벡터

로컬 공격자가 특정 파일 시스템 작업(glock 관련 작업)을 유도하여 경합 조건을 발생시킴

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.

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