🔍 CVE-2022-48821

7.8
CVSS Score
HIGH
2024-07-16
2026-08-04 10:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 misc: fastrpc 구성 요소에서 FASTRPC_IOCTL_ALLOC_DMA_BUFF ioctl 호출 시 사용자 공간으로의 복사가 실패할 경우 발생합니다. 이 과정에서 이미 참조 카운트가 소모된 dma_buf를 중복으로 해제(double fput)하여 Use-After-Free 취약점이 발생합니다.

💡 쉬운 설명

데이터를 옮기는 과정에서 오류가 났을 때, 이미 삭제된 메모리 주소를 한 번 더 삭제하려고 시도하면서 발생하는 문제입니다. 이로 인해 시스템이 불안정해지거나 해커가 메모리에 접근할 수 있는 통로가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: avoid double fput() on failed usercopy If the copy back to userland fails for the FASTRPC_IOCTL_ALLOC_DMA_BUFF ioctl(), we shouldn't assume that 'buf->dmabuf' is still valid. In fact, dma_buf_fd() called fd_install() before, i.e. "consumed" one reference, leaving us with none. Calling dma_buf_put() will therefore put a reference we no longer own, leading to a valid file descritor table entry for an already released 'file' object which is a straight use-after-free. Simply avoid calling dma_buf_put() and rely on the process exit code to do the necessary cleanup, if needed, i.e. if the file descriptor is still valid.

📍 영향받는 시스템

Linux kernel (fastrpc 모듈을 사용하는 시스템)

⚔️ 공격 벡터

특권이 없는 로컬 사용자가 조작된 ioctl 호출을 통해 커널 메모리 오류를 유도하는 로컬 공격

🛡️ 대응 방법

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