🔍 CVE-2026-23248

7.8
CVSS Score
HIGH
2026-03-18
2026-10-19 19:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 perf_mmap 함수에서 발생하는 경쟁 상태(race condition)로 인한 참조 카운트 버그. 메모리 매핑 초기화 중 뮤텍스가 해제되면서 다른 스레드가 미완성 상태의 ring buffer에 접근하여 메모리 해제 후 사용(UAF) 또는 참조 카운트 오버플로우 발생.

💡 쉬운 설명

여러 프로세스가 동시에 성능 측정 기능을 사용할 때 메모리 정리 중 다른 프로세스가 이미 삭제된 메모리에 접근하는 문제입니다. 이를 악용하면 시스템 권한 상승이나 커널 크래시를 유발할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: perf/core: Fix refcount bug and potential UAF in perf_mmap Syzkaller reported a refcount_t: addition on 0; use-after-free warning in perf_mmap. The issue is caused by a race condition between a failing mmap() setup and a concurrent mmap() on a dependent event (e.g., using output redirection). In perf_mmap(), the ring_buffer (rb) is allocated and assigned to event->rb with the mmap_mutex held. The mutex is then released to perform map_range(). If map_range() fails, perf_mmap_close() is called to clean up. However, since the mutex was dropped, another thread attaching to this event (via inherited events or output redirection) can acquire the mutex, observe the valid event->rb pointer, and attempt to increment its reference count. If the cleanup path has already dropped the reference count to zero, this results in a use-after-free or refcount saturation warning. Fix this by extending the scope of mmap_mutex to cover the map_range() call. This ensures that the ring buffer initialization and mapping (or cleanup on failure) happens atomically effectively, preventing other threads from accessing a half-initialized or dying ring buffer.

📍 영향받는 시스템

Linux 커널 5.8 이상 (perf subsystem을 포함한 버전)

⚔️ 공격 벡터

로컬 공격자가 perf_event_open 시스템콜과 상속된 이벤트 또는 출력 리다이렉션을 이용한 동시 mmap 작업으로 트리거

🛡️ 대응 방법

Linux 커널을 최신 패치 버전으로 업데이트하여 mmap_mutex 범위 확대 패치 적용

🔧 검증 코드

커널 버전 5.8 이상이고 2025년 이후 보안 패치가 적용되지 않았으면 취약함; perf subsystem 재컴파일 또는 커널 업데이트로 해결

Shell / Script
uname -r | grep -E '^[0-9]+\.[0-9]+' && cat /proc/version | grep -oP 'version \K[0-9.]+'

📊 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