🇰🇷 한글 설명
Linux 커널의 driver core에서 dev_uevent() 함수 호출 시 발생할 수 있는 NULL 포인터 역참조 취약점입니다. 사용자 공간에서 장치 속성을 읽는 동시에 다른 스레드가 장치를 드라이버에서 해제할 경우 시스템 충돌이 발생할 수 있습니다. 이를 해결하기 위해 READ_ONCE()와 bus의 klist lock을 사용하여 포인터 접근의 안정성을 확보했습니다.
💡 쉬운 설명
장치 정보를 읽는 도중에 장치 연결이 갑자기 끊기면 컴퓨터 시스템이 예상치 못하게 멈추거나 꺼질 수 있는 문제입니다. 시스템이 정보를 확인하는 동안 장치가 사라지지 않도록 안전 장치를 추가하여 해결했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
driver core: fix potential NULL pointer dereference in dev_uevent()
If userspace reads "uevent" device attribute at the same time as another
threads unbinds the device from its driver, change to dev->driver from a
valid pointer to NULL may result in crash. Fix this by using READ_ONCE()
when fetching the pointer, and take bus' drivers klist lock to make sure
driver instance will not disappear while we access it.
Use WRITE_ONCE() when setting the driver pointer to ensure there is no
tearing.
📍 영향받는 시스템
Linux Kernel (dev_uevent() 함수를 사용하는 드라이버 코어 포함 버전)
⚔️ 공격 벡터
특정 시점에 장치 속성(uevent)을 읽는 동시에 장치 해제(unbind)를 유도하는 레이스 컨디션 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.