🇰🇷 한글 설명
Linux 커널의 media: ipu6 드라이버에서 보조 장치 초기화 중 오류가 발생할 경우, 이미 해제된 메모리(pdata)를 다시 해제하려는 Double Free 취약점이 존재합니다. 이 문제는 정적 분석 도구와 수동 코드 검토를 통해 발견되었습니다.
💡 쉬운 설명
컴퓨터 부품을 준비하는 과정에서 이미 치운 물건을 실수로 한 번 더 치우려고 시도하여 시스템 오류를 일으키는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
media: ipu6: Do not free aux device pdata after init
ipu6_bus_initialize_device() stores the isys/psys pdata pointer in
struct ipu6_bus_device and initializes the auxiliary device. After that
point, error unwinding must drop the auxiliary device reference and let
ipu6_bus_release() free both the bus device and adev->pdata.
The isys and psys init paths already call put_device() when MMU
initialization fails, and ipu6_bus_add_device() calls
auxiliary_device_uninit() on auxiliary_device_add() failure. Both paths
therefore run the bus release callback. The extra kfree(pdata) in the
callers can release the same object a second time.
Remove the manual pdata frees after the auxiliary device has been
initialized.
This issue was found by a static analysis checker and confirmed by
manual source review.
📍 영향받는 시스템
Linux kernel (media: ipu6 드라이버 포함 버전)
⚔️ 공격 벡터
로컬 공격자가 특정 하드웨어 초기화 오류를 유도하여 시스템 충돌 또는 권한 상승 시도 가능
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 ipu6 드라이버의 중복 해제 로직 제거
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 수정된 패치 버전인지 확인