🔍 CVE-2023-52439

7.8
CVSS Score
HIGH
2024-02-20
2026-08-04 10:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 uio 모듈 내 uio_open 함수에서 Use-After-Free 취약점이 발견되었습니다. 장치 등록 해제 과정과 장치 오픈 과정이 동시에 발생할 때 참조 카운트 관리 오류로 인해 메모리가 해제된 후 다시 접근하거나 중복 해제될 수 있는 문제입니다.

💡 쉬운 설명

컴퓨터의 메모리 관리 과정에서 순서가 꼬여 이미 삭제된 데이터를 다시 사용하려고 시도하는 오류입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: uio: Fix use-after-free in uio_open core-1 core-2 ------------------------------------------------------- uio_unregister_device uio_open idev = idr_find() device_unregister(&idev->dev) put_device(&idev->dev) uio_device_release get_device(&idev->dev) kfree(idev) uio_free_minor(minor) uio_release put_device(&idev->dev) kfree(idev) ------------------------------------------------------- In the core-1 uio_unregister_device(), the device_unregister will kfree idev when the idev->dev kobject ref is 1. But after core-1 device_unregister, put_device and before doing kfree, the core-2 may get_device. Then: 1. After core-1 kfree idev, the core-2 will do use-after-free for idev. 2. When core-2 do uio_release and put_device, the idev will be double freed. To address this issue, we can get idev atomic & inc idev reference with minor_lock.

📍 영향받는 시스템

Linux Kernel (uio 모듈을 사용하는 시스템)

⚔️ 공격 벡터

특정 조건에서 장치 오픈과 해제를 동시에 유도하여 메모리 오류를 일으키는 로컬 공격

🛡️ 대응 방법

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