🇰🇷 한글 설명
Linux 커널의 mtk-mdp3 미디어 플랫폼에서 SCP 장치의 참조 횟수(refcounting) 관리 오류가 발견되었습니다. fallback 경로에서 참조를 즉시 해제하여, 이후 드라이버가 중복으로 참조를 해제함으로써 발생하는 문제를 해결했습니다.
💡 쉬운 설명
장치를 사용할 때 '사용 중'이라는 표시를 남겨야 하는데, 표시를 너무 빨리 지워버려서 시스템이 혼란을 겪는 문제입니다. 이로 인해 시스템이 예기치 않게 종료되거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
media: platform: mtk-mdp3: Fix SCP device refcounting
mdp_probe() first tries to get the SCP handle with scp_get(). When that
fails, it falls back to looking up the SCP platform device with
__get_pdev_by_id() and then reads its driver data.
The fallback lookup returns the platform device with a reference, just
like scp_get() does. However, the fallback path currently drops that
reference immediately after platform_get_drvdata(). The driver later
still calls scp_put(mdp->scp) unconditionally from the probe error path
and from mdp_video_device_release(), which drops the SCP device
reference again.
Keep the fallback reference until the existing scp_put() call, so that
the fallback path follows the same ownership rules as the scp_get()
path.
📍 영향받는 시스템
Linux kernel (media: platform: mtk-mdp3 관련 모듈 포함 버전)
⚔️ 공격 벡터
로컬 권한을 가진 공격자가 특정 드라이버 경로를 통해 참조 횟수 불일치를 유도하여 시스템 불안정 유발
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 보안 업데이트 버전인지 확인