🇰🇷 한글 설명
Linux 커널의 media: vidtv 드라이버에서 스트리밍 시작 실패 시 nfeeds 상태 값이 올바르게 감소하지 않아 발생하는 상태 오염 및 메모리 누수 취약점입니다. 이로 인해 드라이버 상태가 손상되어 이후의 피드 시작 및 중지 동작이 정상적으로 수행되지 않을 수 있습니다.
💡 쉬운 설명
동영상 스트리밍을 시작하려다 실패했을 때, 시스템이 '이미 실행 중'이라고 착각하게 만드는 오류입니다. 이 오류가 반복되면 컴퓨터의 메모리가 낭비되거나 미디어 장치가 제대로 작동하지 않을 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
media: vidtv: fix nfeeds state corruption on start_streaming failure
syzbot reported a memory leak in vidtv_psi_service_desc_init [1].
When vidtv_start_streaming() fails inside vidtv_start_feed(), the
nfeeds counter is left incremented even though no feed was actually
started. This corrupts the driver state: subsequent start_feed calls
see nfeeds > 1 and skip starting the mux, while stop_feed calls
eventually try to stop a non-existent stream.
This state corruption can also lead to memory leaks, since the mux
and channel resources may be partially allocated during a failed
start_streaming but never cleaned up, as the stop path finds
dvb->streaming == false and returns early.
Fix by decrementing nfeeds back when start_streaming fails, keeping
the counter in sync with the actual number of active feeds.
[1]
BUG: memory leak
unreferenced object 0xffff888145b50820 (size 32):
comm "syz.0.17", pid 6068, jiffies 4294944486
backtrace (crc 90a0c7d4):
vidtv_psi_service_desc_init+0x74/0x1b0 drivers/media/test-drivers/vidtv/vidtv_psi.c:288
vidtv_channel_s302m_init+0xb1/0x2a0 drivers/media/test-drivers/vidtv/vidtv_channel.c:83
vidtv_channels_init+0x1b/0x40 drivers/media/test-drivers/vidtv/vidtv_channel.c:524
vidtv_mux_init+0x516/0xbe0 drivers/media/test-drivers/vidtv/vidtv_mux.c:518
vidtv_start_streaming drivers/media/test-drivers/vidtv/vidtv_bridge.c:194 [inline]
vidtv_start_feed+0x33e/0x4d0 drivers/media/test-drivers/vidtv/vidtv_bridge.c:239
📍 영향받는 시스템
Linux kernel (media: vidtv driver components)
⚔️ 공격 벡터
로컬 시스템에서 특정 미디어 스트리밍 요청을 반복적으로 실패시켜 메모리 누수 및 드라이버 상태 오염 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 vidtv_start_feed 내 nfeeds 카운터 수정 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인