🇰🇷 한글 설명
Linux 커널의 ims-pcu 드라이버에서 reset_device sysfs 콜백 함수가 pcu->cmd_mutex를 획득하지 않고 ims_pcu_execute_command()를 호출하여 레이스 컨디션이 발생합니다. 이로 인해 여러 명령이 동시에 실행될 경우 공유 명령 버퍼의 데이터 경합 및 손상이 발생할 수 있습니다.
💡 쉬운 설명
장치를 초기화하는 과정에서 여러 명령이 동시에 들어올 때 이를 순서대로 처리하는 잠금 장치가 빠져 있습니다. 이로 인해 데이터가 엉키거나 시스템 오류가 발생할 수 있는 문제입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Input: ims-pcu - fix race condition in reset_device sysfs callback
The ims_pcu_reset_device() sysfs callback calls ims_pcu_execute_command()
without acquiring pcu->cmd_mutex. This can lead to data races and
corruption of the shared command buffer if triggered concurrently with
other commands.
Acquire pcu->cmd_mutex before calling ims_pcu_execute_command().
📍 영향받는 시스템
ims-pcu 드라이버를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 사용자가 sysfs 인터페이스를 통해 특정 시점에 동시에 reset_device 콜백을 트리거하여 발생
🛡️ 대응 방법
ims_pcu_execute_command() 호출 전 pcu->cmd_mutex를 획득하도록 커널 패치 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전인지 배포판 보안 공지를 통해 확인