🇰🇷 한글 설명
Linux 커널의 net/smc 구성 요소에서 smc_ib_is_sg_need_sync() 함수 호출 시 NULL 포인터 역참조가 발생하는 취약점입니다. RoCE 장치를 사용할 경우 ibdev->dma_device가 NULL로 설정되어 시스템 오류 및 커널 패닉을 유발할 수 있습니다.
💡 쉬운 설명
특정 네트워크 장치를 사용할 때 컴퓨터의 핵심 운영체제(커널)가 잘못된 메모리 주소를 참조하여 갑자기 멈추거나 꺼질 수 있는 문제입니다. 이는 시스템의 안정성을 해칠 수 있는 결함입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/smc: fix one NULL pointer dereference in smc_ib_is_sg_need_sync()
BUG: kernel NULL pointer dereference, address: 00000000000002ec
PGD 0 P4D 0
Oops: Oops: 0000 [#1] SMP PTI
CPU: 28 UID: 0 PID: 343 Comm: kworker/28:1 Kdump: loaded Tainted: G OE 6.17.0-rc2+ #9 NONE
Tainted: [O]=OOT_MODULE, [E]=UNSIGNED_MODULE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.15.0-1 04/01/2014
Workqueue: smc_hs_wq smc_listen_work [smc]
RIP: 0010:smc_ib_is_sg_need_sync+0x9e/0xd0 [smc]
...
Call Trace:
<TASK>
smcr_buf_map_link+0x211/0x2a0 [smc]
__smc_buf_create+0x522/0x970 [smc]
smc_buf_create+0x3a/0x110 [smc]
smc_find_rdma_v2_device_serv+0x18f/0x240 [smc]
? smc_vlan_by_tcpsk+0x7e/0xe0 [smc]
smc_listen_find_device+0x1dd/0x2b0 [smc]
smc_listen_work+0x30f/0x580 [smc]
process_one_work+0x18c/0x340
worker_thread+0x242/0x360
kthread+0xe7/0x220
ret_from_fork+0x13a/0x160
ret_from_fork_asm+0x1a/0x30
</TASK>
If the software RoCE device is used, ibdev->dma_device is a null pointer.
As a result, the problem occurs. Null pointer detection is added to
prevent problems.
📍 영향받는 시스템
Linux kernel (특히 smc 모듈을 사용하는 환경 및 6.17.0-rc2+ 관련 버전)
⚔️ 공격 벡터
로컬 공격자가 특정 네트워크 환경(RoCE 장치 사용)을 구성하여 커널 패닉을 유도할 수 있음
🛡️ 대응 방법
NULL 포인터 검사 로직이 포함된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 수정된 최신 패치 버전인지 확인