🇰🇷 한글 설명
Linux 커널의 dmaengine dw-edma-pcie 드라이버에서 PCI 장치 ID의 driver_data를 조건 없이 복사하여 발생하는 취약점입니다. sysfs를 통해 동적으로 바인딩된 장치가 해당 데이터를 포함하지 않을 경우 NULL 포인터 역참조가 발생하여 시스템이 충돌할 수 있습니다.
💡 쉬운 설명
특정 하드웨어 장치를 연결할 때 필요한 정보가 누락되어 있으면 컴퓨터 시스템이 갑자기 멈추거나 오류가 발생할 수 있는 문제입니다. 장치가 올바른 정보를 가지고 있는지 확인하는 절차가 부족하여 발생합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: dw-edma-pcie: Reject devices without driver data
dw_edma_pcie_probe() treats the PCI device ID driver_data as the
template for the controller layout and copies it unconditionally. A
device bound dynamically via sysfs can match the driver without that
data, which leads to a NULL pointer dereference.
Reject such matches before enabling the device.
📍 영향받는 시스템
Linux kernel (dmaengine: dw-edma-pcie 드라이버를 사용하는 시스템)
⚔️ 공격 벡터
sysfs를 통해 드라이버 데이터가 없는 PCI 장치를 동적으로 바인딩하여 NULL 포인터 역참조 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 드라이버 데이터 검증 로직을 적용해야 합니다.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인합니다.