🇰🇷 한글 설명
Linux 커널의 em28xx 드라이버에서 em28xx_v4l2_open() 함수가 잠금(lock) 없이 데이터를 읽어 발생하는 Use-After-Free 및 NULL 포인터 역참조 취약점입니다. 이 경합 조건(Race Condition)으로 인해 메모리 오류가 발생하거나 시스템이 충돌할 수 있습니다.
💡 쉬운 설명
장치를 열려고 할 때 다른 작업이 동시에 장치를 닫아버리면, 이미 사라진 메모리 주소를 참조하게 되어 컴퓨터가 멈추거나 오류가 발생하는 문제입니다. 데이터가 들어있는 상자가 이미 버려졌는데 그 안의 내용을 읽으려다 발생하는 사고와 같습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
media: em28xx: fix use-after-free in em28xx_v4l2_open()
em28xx_v4l2_open() reads dev->v4l2 without holding dev->lock,
creating a race with em28xx_v4l2_init()'s error path and
em28xx_v4l2_fini(), both of which free the em28xx_v4l2 struct
and set dev->v4l2 to NULL under dev->lock.
This race leads to two issues:
- use-after-free in v4l2_fh_init() when accessing vdev->ctrl_handler,
since the video_device is embedded in the freed em28xx_v4l2 struct.
- NULL pointer dereference in em28xx_resolution_set() when accessing
v4l2->norm, since dev->v4l2 has been set to NULL.
Fix this by moving the mutex_lock() before the dev->v4l2 read and
adding a NULL check for dev->v4l2 under the lock.
📍 영향받는 시스템
Linux kernel (em28xx driver 포함 버전)
⚔️ 공격 벡터
특수하게 조작된 V4L2 호출을 통한 경합 조건 유도 (Local/Remote)
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.