🇰🇷 한글 설명
Linux 커널의 drm/v3d 드라이버에서 성능 모니터(perfmon)의 참조 횟수(reference count)를 적절히 해제하지 못하는 취약점이 발견되었습니다. SET_GLOBAL ioctl 호출 시 참조 횟수가 증가하지만, 특정 오류 경로 및 삭제 과정에서 이를 해제하지 않아 메모리 누수가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 성능을 측정하는 도구를 사용할 때, 사용이 끝난 도구를 메모리에서 제대로 치우지 못하는 버그가 있습니다. 이로 인해 시스템의 메모리가 조금씩 낭비되어 장기적으로 시스템 성능에 영향을 줄 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/v3d: Fix global performance monitor reference counting
In the SET_GLOBAL ioctl, v3d_perfmon_find() bumps the reference count on
the perfmon it returns, but v3d_perfmon_set_global_ioctl() and
v3d_perfmon_delete() fail to release that reference on several paths:
1. v3d_perfmon_set_global_ioctl() leaks the reference on its error
paths.
2. CLEAR_GLOBAL leaks both the find reference and the reference
previously stashed in v3d->global_perfmon by the SET_GLOBAL ioctl
that configured it.
3. Destroying a perfmon that is the current global perfmon leaks the
reference stashed by the SET_GLOBAL ioctl.
Release each of these references explicitly.
📍 영향받는 시스템
Linux kernel (drm/v3d driver 포함 버전)
⚔️ 공격 벡터
로컬 사용자가 특수하게 조작된 ioctl 호출을 통해 메모리 누수를 유발할 수 있음
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.