🔍 CVE-2024-56641

7.5
CVSS Score
HIGH
2024-12-27
2026-10-30 13:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 net/smc 구성 요소에서 close_work가 초기화되기 전에 취소되어 경고가 발생하는 취약점입니다. RDMA 드라이버 제거 시 LGR이 종료되는 과정에서 초기화되지 않은 워크큐를 플러시하려고 시도하여 발생합니다.

💡 쉬운 설명

컴퓨터가 작업을 정리하는 과정에서 아직 준비되지 않은 도구를 사용하려고 시도하여 오류가 발생하는 문제입니다. 이로 인해 시스템에 경고가 발생하거나 예기치 않은 동작이 일어날 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net/smc: initialize close_work early to avoid warning We encountered a warning that close_work was canceled before initialization. WARNING: CPU: 7 PID: 111103 at kernel/workqueue.c:3047 __flush_work+0x19e/0x1b0 Workqueue: events smc_lgr_terminate_work [smc] RIP: 0010:__flush_work+0x19e/0x1b0 Call Trace: ? __wake_up_common+0x7a/0x190 ? work_busy+0x80/0x80 __cancel_work_timer+0xe3/0x160 smc_close_cancel_work+0x1a/0x70 [smc] smc_close_active_abort+0x207/0x360 [smc] __smc_lgr_terminate.part.38+0xc8/0x180 [smc] process_one_work+0x19e/0x340 worker_thread+0x30/0x370 ? process_one_work+0x340/0x340 kthread+0x117/0x130 ? __kthread_cancel_work+0x50/0x50 ret_from_fork+0x22/0x30 This is because when smc_close_cancel_work is triggered, e.g. the RDMA driver is rmmod and the LGR is terminated, the conn->close_work is flushed before initialization, resulting in WARN_ON(!work->func). __smc_lgr_terminate | smc_connect_{rdma|ism} ------------------------------------------------------------- | smc_conn_create | \- smc_lgr_register_conn for conn in lgr->conns_all | \- smc_conn_kill | \- smc_close_active_abort | \- smc_close_cancel_work | \- cancel_work_sync | \- __flush_work | (close_work) | | smc_close_init | \- INIT_WORK(&close_work) So fix this by initializing close_work before establishing the connection.

📍 영향받는 시스템

Linux kernel (net/smc 모듈을 사용하는 시스템)

⚔️ 공격 벡터

RDMA 드라이버 제거 또는 연결 종료 시 발생하는 Race Condition (로컬/시스템 관리 권한 필요)

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 smc_conn_create 단계에서 close_work가 조기 초기화되도록 수정해야 합니다.

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel