🔍 CVE-2026-68217

0.0
CVSS Score
UNKNOWN
2026-08-10
2026-08-19 17:20
✅ 완료

🇰🇷 한글 설명

Linux 커널의 pwc 미디어 드라이버에서 start_streaming() 함수가 실패할 때 fill_buf에 저장된 버퍼를 제대로 해제하지 못하는 메모리 누수 취약점이 발견되었습니다. 이로 인해 드라이버가 소유한 버퍼가 남게 되어 vb2_start_streaming() 호출 시 경고(WARN_ON)가 발생할 수 있습니다.

💡 쉬운 설명

미디어 장치를 시작하려다 오류가 발생했을 때, 사용 중이던 메모리 조각을 제대로 정리하지 못해 시스템에 경고를 일으키는 문제입니다. 이는 장치 드라이버가 메모리를 효율적으로 관리하지 못해 발생하는 소프트웨어 결함입니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: media: pwc: Drain fill_buf on start_streaming() failure pwc_isoc_init() submits its isochronous URBs with usb_submit_urb(.., GFP_KERNEL) in a loop. After the first URB is submitted, its completion handler pwc_isoc_handler() can run on another CPU before the loop finishes: start_streaming() pwc_isoc_init() usb_submit_urb(urbs[0], GFP_KERNEL) pwc_isoc_handler(urbs[0]) pdev->fill_buf = pwc_get_next_fill_buf(pdev) usb_submit_urb(urbs[i>0], ..) -> fails pwc_isoc_cleanup(pdev) /* kills URBs */ return ret; pwc_cleanup_queued_bufs(pdev, VB2_BUF_STATE_QUEUED) pwc_get_next_fill_buf() detaches a buffer from pdev->queued_bufs and stores it in pdev->fill_buf. The error path in start_streaming() only drains pdev->queued_bufs, so the buffer parked in pdev->fill_buf is leaked. vb2_start_streaming() then triggers WARN_ON(owned_by_drv_count). stop_streaming() already handles this since commit 80b0963e1698 ("[media] pwc: fix WARN_ON"), which added the fill_buf drain in the teardown path but not in the start_streaming() error path. Mirror that handling on failure so start_streaming() returns with no buffer owned by the driver. Issue identified by automated review of the INV-003 series at https://sashiko.dev/

📍 영향받는 시스템

Linux kernel (pwc media driver 포함 버전)

⚔️ 공격 벡터

로컬 공격자가 미디어 장치의 스트리밍 시작 과정을 의도적으로 실패시켜 커널 경고를 유발하거나 메모리 누수를 일으킬 수 있음

🛡️ 대응 방법

커널 패치를 적용하여 start_streaming() 실패 경로에서 fill_buf를 해제하도록 업데이트해야 함

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인하십시오.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel