🔍 CVE-2024-50187

7.8
CVSS Score
HIGH
2024-11-08
2026-08-04 11:21
✅ 완료

🇰🇷 한글 설명

Linux 커널의 drm/vc4 드라이버에서 성능 모니터(perfmon)를 닫을 때 활성 상태인 모니터를 먼저 중지하지 않아 발생하는 취약점입니다. 파일 디스크립터를 닫은 후에도 유효하지 않은 포인터가 남아 있어, 새로운 작업 시 잘못된 메모리 주소에 접근하게 됩니다.

💡 쉬운 설명

프로그램이 종료될 때 사용하던 도구를 제대로 정리하지 않아, 나중에 새로운 도구를 쓸 때 예전의 잘못된 정보를 참조하여 시스템 오류를 일으킬 수 있는 문제입니다. 이는 시스템의 안정성을 해치거나 예기치 않은 동작을 유발할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: drm/vc4: Stop the active perfmon before being destroyed Upon closing the file descriptor, the active performance monitor is not stopped. Although all perfmons are destroyed in `vc4_perfmon_close_file()`, the active performance monitor's pointer (`vc4->active_perfmon`) is still retained. If we open a new file descriptor and submit a few jobs with performance monitors, the driver will attempt to stop the active performance monitor using the stale pointer in `vc4->active_perfmon`. However, this pointer is no longer valid because the previous process has already terminated, and all performance monitors associated with it have been destroyed and freed. To fix this, when the active performance monitor belongs to a given process, explicitly stop it before destroying and freeing it.

📍 영향받는 시스템

Linux kernel (drm/vc4 driver 포함 버전)

⚔️ 공격 벡터

로컬 사용자가 특정 파일 디스크립터를 열고 닫는 과정을 반복하여 잘못된 메모리 참조를 유도함

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 vc4_perfmon_close_file() 로직을 수정함

🔧 검증 코드

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

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