🇰🇷 한글 설명
리눅스 커널의 hidraw 드라이버에서 장치 참조 카운트(refcount)에 대한 데이터 경합(Data Race) 취약점이 발견되었습니다. hidraw_open() 함수가 장치를 열 때 참조 카운트를 증가시키는 과정에서 적절한 동기화 메커니즘이 없어, 여러 프로세스가 동시에 장치를 열 경우 문제가 발생할 수 있습니다.
💡 쉬운 설명
여러 프로그램이 동시에 하드웨어 장치에 접근하려고 할 때, 시스템이 장치를 사용 중인지 계산하는 과정에서 충돌이 발생하는 문제입니다. 이 충돌로 인해 시스템이 불안정해지거나 예상치 못한 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
HID: hidraw: fix data race on device refcount
The hidraw_open() function increments the hidraw device reference
counter. The counter has no dedicated synchronization mechanism,
resulting in a potential data race when concurrently opening a device.
The race is a regression introduced by commit 8590222e4b02 ("HID:
hidraw: Replace hidraw device table mutex with a rwsem"). While
minors_rwsem is intended to protect the hidraw_table itself, by instead
acquiring the lock for writing, the reference counter is also protected.
This is symmetrical to hidraw_release().
📍 영향받는 시스템
hidraw 관련 rwsem 도입 이후의 리눅스 커널 버전
⚔️ 공격 벡터
로컬 공격자가 여러 프로세스를 이용해 hidraw 장치에 동시에 접근하여 데이터 경합 유도
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인