🔍 CVE-2022-49393

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

🇰🇷 한글 설명

Linux 커널의 fastrpc 구성 요소에서 리스트 반복자(list iterator)를 잘못 사용하여 발생하는 취약점입니다. 리스트가 비어있을 때 반복자가 NULL인지 확인하는 로직이 항상 거짓이 되어, 의도치 않은 메모리 접근을 유발하고 커널 크래시를 일으킬 수 있습니다.

💡 쉬운 설명

컴퓨터의 핵심 시스템인 커널이 목록을 확인하는 과정에서 실수로 잘못된 메모리 주소를 참조하여 시스템이 멈추거나 충돌하는 문제입니다. 이로 인해 시스템이 갑자기 재부팅되거나 작동을 멈출 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: fix list iterator in fastrpc_req_mem_unmap_impl This is another instance of incorrect use of list iterator and checking it for NULL. The list iterator value 'map' will *always* be set and non-NULL by list_for_each_entry(), so it is incorrect to assume that the iterator value will be NULL if the list is empty (in this case, the check 'if (!map) {' will always be false and never exit as expected). To fix the bug, use a new variable 'iter' as the list iterator, while use the original variable 'map' as a dedicated pointer to point to the found element. Without this patch, Kernel crashes with below trace: Unable to handle kernel access to user memory outside uaccess routines at virtual address 0000ffff7fb03750 ... Call trace: fastrpc_map_create+0x70/0x290 [fastrpc] fastrpc_req_mem_map+0xf0/0x2dc [fastrpc] fastrpc_device_ioctl+0x138/0xc60 [fastrpc] __arm64_sys_ioctl+0xa8/0xec invoke_syscall+0x48/0x114 el0_svc_common.constprop.0+0xd4/0xfc do_el0_svc+0x28/0x90 el0_svc+0x3c/0x130 el0t_64_sync_handler+0xa4/0x130 el0t_64_sync+0x18c/0x190 Code: 14000016 f94000a5 eb05029f 54000260 (b94018a6) ---[ end trace 0000000000000000 ]---

📍 영향받는 시스템

fastrpc 모듈을 사용하는 Linux 커널 버전

⚔️ 공격 벡터

로컬 사용자가 fastrpc 장치에 대한 ioctl 시스템 호출을 통해 조작된 메모리 매핑 요청을 보냄으로써 발생 가능

🛡️ 대응 방법

fastrpc_req_mem_unmap_impl 함수 내의 리스트 반복자 로직을 수정한 최신 Linux 커널 패치 적용

🔧 검증 코드

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

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

💻 영향받는 소프트웨어

Linux Kernel