🔍 CVE-2024-26615

5.5
CVSS Score
MEDIUM
2024-03-11
2026-06-17 07:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 net/smc 모듈에서 SMC-D 연결 정보를 덤프하는 과정 중 잘못된 rmb_desc 접근으로 인해 발생하는 취약점입니다. 연결이 생성되는 도중에 덤프를 시도할 경우 초기화되지 않은 포인터를 참조하여 커널 NULL 포인터 역참조(NULL pointer dereference) 및 시스템 크래시가 발생할 수 있습니다.

💡 쉬운 설명

컴퓨터의 네트워크 연결 정보를 확인하는 과정에서, 아직 준비가 덜 된 연결 정보를 건드리려다 시스템이 멈추거나 꺼지는 현상입니다. 특정 상황에서 네트워크 연결이 만들어지는 찰나에 정보를 요청하면 발생합니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net/smc: fix illegal rmb_desc access in SMC-D connection dump A crash was found when dumping SMC-D connections. It can be reproduced by following steps: - run nginx/wrk test: smc_run nginx smc_run wrk -t 16 -c 1000 -d <duration> -H 'Connection: Close' <URL> - continuously dump SMC-D connections in parallel: watch -n 1 'smcss -D' BUG: kernel NULL pointer dereference, address: 0000000000000030 CPU: 2 PID: 7204 Comm: smcss Kdump: loaded Tainted: G E 6.7.0+ #55 RIP: 0010:__smc_diag_dump.constprop.0+0x5e5/0x620 [smc_diag] Call Trace: <TASK> ? __die+0x24/0x70 ? page_fault_oops+0x66/0x150 ? exc_page_fault+0x69/0x140 ? asm_exc_page_fault+0x26/0x30 ? __smc_diag_dump.constprop.0+0x5e5/0x620 [smc_diag] ? __kmalloc_node_track_caller+0x35d/0x430 ? __alloc_skb+0x77/0x170 smc_diag_dump_proto+0xd0/0xf0 [smc_diag] smc_diag_dump+0x26/0x60 [smc_diag] netlink_dump+0x19f/0x320 __netlink_dump_start+0x1dc/0x300 smc_diag_handler_dump+0x6a/0x80 [smc_diag] ? __pfx_smc_diag_dump+0x10/0x10 [smc_diag] sock_diag_rcv_msg+0x121/0x140 ? __pfx_sock_diag_rcv_msg+0x10/0x10 netlink_rcv_skb+0x5a/0x110 sock_diag_rcv+0x28/0x40 netlink_unicast+0x22a/0x330 netlink_sendmsg+0x1f8/0x420 __sock_sendmsg+0xb0/0xc0 ____sys_sendmsg+0x24e/0x300 ? copy_msghdr_from_user+0x62/0x80 ___sys_sendmsg+0x7c/0xd0 ? __do_fault+0x34/0x160 ? do_read_fault+0x5f/0x100 ? do_fault+0xb0/0x110 ? __handle_mm_fault+0x2b0/0x6c0 __sys_sendmsg+0x4d/0x80 do_syscall_64+0x69/0x180 entry_SYSCALL_64_after_hwframe+0x6e/0x76 It is possible that the connection is in process of being established when we dump it. Assumed that the connection has been registered in a link group by smc_conn_create() but the rmb_desc has not yet been initialized by smc_buf_create(), thus causing the illegal access to conn->rmb_desc. So fix it by checking before dump.

📍 영향받는 시스템

Linux kernel (SMC-D 프로토콜 사용 환경)

⚔️ 공격 벡터

SMC-D 연결이 생성되는 시점에 병렬로 연결 상태 덤프(smcss -D 등)를 지속적으로 요청하여 커널 크래시 유도

🛡️ 대응 방법

SMC-D 연결 정보를 덤프하기 전에 rmb_desc가 유효한지 확인하도록 커널 패치 적용

🔧 검증 코드

현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 최신 보안 패치 버전인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Nginx Linux Kernel