🔍 CVE-2021-47412

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

🇰🇷 한글 설명

Linux 커널의 block 레이어에서 추적되지 않는 bio에 대해 rq_qos_ops->done_bio를 호출하여 발생하는 취약점입니다. 이로 인해 이미 해제된 요청 큐(request queue)에 접근하게 되어 커널 패닉이 발생할 수 있습니다.

💡 쉬운 설명

컴퓨터의 핵심 운영체제인 리눅스에서 데이터 처리 과정 중 잘못된 메모리 주소를 참조하여 시스템이 갑자기 멈추거나 꺼질 수 있는 오류입니다. 관리되지 않는 데이터를 처리하려다 시스템이 혼란에 빠지는 현상입니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: block: don't call rq_qos_ops->done_bio if the bio isn't tracked rq_qos framework is only applied on request based driver, so: 1) rq_qos_done_bio() needn't to be called for bio based driver 2) rq_qos_done_bio() needn't to be called for bio which isn't tracked, such as bios ended from error handling code. Especially in bio_endio(): 1) request queue is referred via bio->bi_bdev->bd_disk->queue, which may be gone since request queue refcount may not be held in above two cases 2) q->rq_qos may be freed in blk_cleanup_queue() when calling into __rq_qos_done_bio() Fix the potential kernel panic by not calling rq_qos_ops->done_bio if the bio isn't tracked. This way is safe because both ioc_rqos_done_bio() and blkcg_iolatency_done_bio() are nop if the bio isn't tracked.

📍 영향받는 시스템

rq_qos 프레임워크를 사용하는 Linux Kernel (특정 버전 미만)

⚔️ 공격 벡터

로컬 공격자가 특정 입출력(I/O) 오류 상황을 유도하여 커널 패닉을 일으키는 방식

🛡️ 대응 방법

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