🔍 CVE-2022-48751

7.8
CVSS Score
HIGH
2024-06-20
2026-08-04 10:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 net/smc 구성 요소에서 clcsock 경합 문제로 인해 발생하는 취약점입니다. smc_setsockopt() 함수가 이미 해제된 clcsock에 접근하려고 시도할 때 커널 NULL 포인터 역참조가 발생하여 시스템 크래시를 유발할 수 있습니다.

💡 쉬운 설명

리눅스 운영체제의 네트워크 통신 기능 중 일부에서 데이터 처리 순서가 꼬여 시스템이 갑자기 멈추거나 꺼질 수 있는 오류입니다. 공격자가 특정 네트워크 설정을 조작하여 시스템을 강제로 다운시킬 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net/smc: Transitional solution for clcsock race issue We encountered a crash in smc_setsockopt() and it is caused by accessing smc->clcsock after clcsock was released. BUG: kernel NULL pointer dereference, address: 0000000000000020 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: 0000 [#1] PREEMPT SMP PTI CPU: 1 PID: 50309 Comm: nginx Kdump: loaded Tainted: G E 5.16.0-rc4+ #53 RIP: 0010:smc_setsockopt+0x59/0x280 [smc] Call Trace: <TASK> __sys_setsockopt+0xfc/0x190 __x64_sys_setsockopt+0x20/0x30 do_syscall_64+0x34/0x90 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f16ba83918e </TASK> This patch tries to fix it by holding clcsock_release_lock and checking whether clcsock has already been released before access. In case that a crash of the same reason happens in smc_getsockopt() or smc_switch_to_fallback(), this patch also checkes smc->clcsock in them too. And the caller of smc_switch_to_fallback() will identify whether fallback succeeds according to the return value.

📍 영향받는 시스템

Linux kernel (smc subsystem, 5.16.0-rc4+ 포함 관련 버전)

⚔️ 공격 벡터

로컬 또는 네트워크를 통한 특수하게 조작된 setsockopt 시스템 호출 실행

🛡️ 대응 방법

clcsock_release_lock를 사용하여 경합을 방지하는 최신 커널 패치 적용

🔧 검증 코드

출력된 커널 버전이 취약점이 해결된 패치 버전보다 낮은지 확인합니다.

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

💻 영향받는 소프트웨어

Nginx Linux Kernel