🔍 CVE-2022-49295

7.0
CVSS Score
HIGH
2025-02-26
2026-08-04 10:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 nbd 모듈에서 모듈 제거와 netlink 명령 처리 간의 레이스 컨디션(Race Condition) 취약점이 발견되었습니다. nbd_cleanup() 함수 내에서 genl_unregister_family() 호출 순서가 적절하지 않아, 모듈 제거 시 NULL 포인터 역참조로 인한 커널 Oops(시스템 오류)가 발생할 수 있습니다.

💡 쉬운 설명

리눅스 시스템의 특정 장치 드라이버를 제거하는 과정에서 명령 처리가 꼬여 시스템이 갑자기 멈추거나 오류가 발생할 수 있는 문제입니다. 마치 문을 잠그기 전에 손님이 들어오려고 시도하여 충돌이 발생하는 것과 비슷합니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: nbd: call genl_unregister_family() first in nbd_cleanup() Otherwise there may be race between module removal and the handling of netlink command, which can lead to the oops as shown below: BUG: kernel NULL pointer dereference, address: 0000000000000098 Oops: 0002 [#1] SMP PTI CPU: 1 PID: 31299 Comm: nbd-client Tainted: G E 5.14.0-rc4 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996) RIP: 0010:down_write+0x1a/0x50 Call Trace: start_creating+0x89/0x130 debugfs_create_dir+0x1b/0x130 nbd_start_device+0x13d/0x390 [nbd] nbd_genl_connect+0x42f/0x748 [nbd] genl_family_rcv_msg_doit.isra.0+0xec/0x150 genl_rcv_msg+0xe5/0x1e0 netlink_rcv_skb+0x55/0x100 genl_rcv+0x29/0x40 netlink_unicast+0x1a8/0x250 netlink_sendmsg+0x21b/0x430 ____sys_sendmsg+0x2a4/0x2d0 ___sys_sendmsg+0x81/0xc0 __sys_sendmsg+0x62/0xb0 __x64_sys_sendmsg+0x1f/0x30 do_syscall_64+0x3b/0xc0 entry_SYSCALL_64_after_hwframe+0x44/0xae Modules linked in: nbd(E-)

📍 영향받는 시스템

Linux kernel (nbd module 사용 환경, 특히 5.14.0-rc4 및 관련 버전)

⚔️ 공격 벡터

로컬 공격자가 nbd 모듈을 제거하는 동시에 netlink 명령을 전송하여 레이스 컨디션을 유도

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 nbd_cleanup()의 호출 순서를 수정해야 함

🔧 검증 코드

출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel