🇰🇷 한글 설명
Linux 커널의 vivid 미디어 드라이버에서 vivid_init() 함수 호출 중 오류 발생 시 장치 참조를 해제하지 않아 발생하는 참조 누수 취약점입니다. 또한, 드라이버 등록 후 워크큐 생성 실패 시 잘못된 함수를 호출하여 정리가 제대로 이루어지지 않는 결함도 포함되어 있습니다.
💡 쉬운 설명
컴퓨터의 그래픽 관련 기능을 담당하는 부품을 준비하다가 오류가 나면, 사용했던 메모리나 자원을 제대로 돌려주지 않고 남겨두는 버그입니다. 이 문제가 반복되면 시스템 자원이 낭비되어 컴퓨터가 느려지거나 불안정해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
media: vivid: fix cleanup bugs in vivid_init()
When platform_device_register() fails in vivid_init(), the embedded
struct device in vivid_pdev has already been initialized by
device_initialize(), but the failure path jumps to free_output_strings
without dropping the device reference for the current platform device:
vivid_init()
-> platform_device_register(&vivid_pdev)
-> device_initialize(&vivid_pdev.dev)
-> setup_pdev_dma_masks(&vivid_pdev)
-> platform_device_add(&vivid_pdev)
This leads to a reference leak when platform_device_register() fails.
Fix this by calling platform_device_put() before jumping to the common
cleanup path.
Also, the unreg_driver label incorrectly calls
platform_driver_register() instead of platform_driver_unregister(),
which breaks cleanup when workqueue creation fails after successful
driver registration. Fix that as well.
The reference leak was identified by a static analysis tool I developed
and confirmed by manual review. The incorrect cleanup call was found
during code inspection.
📍 영향받는 시스템
Linux kernel (vivid media driver 포함 버전)
⚔️ 공격 벡터
로컬 시스템에서 특정 미디어 장치 초기화 과정을 유도하여 자원 고갈 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 수정된 패치 버전인지 확인
💻 영향받는 소프트웨어
NVIDIA vGPU Guest Driver for Linux