🇰🇷 한글 설명
리눅스 커널의 MHI(Mobile Hardware Interface) EP 드라이버에서 장치 생성 중 오류가 발생할 경우 참조 횟수(refcount)가 제대로 해제되지 않는 누수 취약점이 발견되었습니다. 이로 인해 등록되지 않은 장치가 메모리에 남아 시스템 자원이 낭비될 수 있습니다.
💡 쉬운 설명
장치를 만드는 과정에서 문제가 생겼을 때, 사용하던 메모리 자원을 제대로 돌려주지 않고 남겨두는 버그가 있습니다. 이 버그가 반복되면 컴퓨터의 메모리가 조금씩 줄어들어 시스템 성능에 영향을 줄 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
bus: mhi: ep: Fix device refcount leak in the error path of MHI device creation
mhi_ep_create_device() takes one device reference for the UL channel and
another for the DL channel after allocating the transfer device. These
references are normally released by mhi_ep_destroy_device() before the
device itself is removed.
If dev_set_name() or device_add() fails, the error path currently drops
only one reference. The remaining channel references keep the device
from being released and leave the channels associated with a device that
was never registered.
Route both failures through a common unwind path that drops the DL
channel reference, the UL channel reference, and the initial reference
from device_initialize().
📍 영향받는 시스템
MHI(Mobile Hardware Interface) 드라이버를 사용하는 리눅스 커널 버전
⚔️ 공격 벡터
로컬 공격자가 특정 오류 상황을 유도하여 커널 메모리 누수를 발생시킬 수 있음
🛡️ 대응 방법
MHI 장치 생성 오류 경로에서 참조 횟수를 올바르게 해제하도록 수정된 최신 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 최신 버전인지 확인