🇰🇷 한글 설명
Linux 커널의 amdxdna 드라이버에서 특정 장치(AIE4)가 명령 제출 기능을 지원하지 않음에도 불구하고 이를 호출하여 NULL 함수 포인터 참조가 발생하는 취약점입니다. 이로 인해 커널이 예기치 않게 중단되는 'kernel oops' 현상이 발생할 수 있습니다.
💡 쉬운 설명
특정 하드웨어 장치에 맞지 않는 명령을 내렸을 때, 컴퓨터의 핵심 시스템인 커널이 이를 처리하지 못하고 갑자기 멈춰버리는 문제입니다. 명령을 거부하는 대신 잘못된 주소를 참조하여 시스템 오류를 일으키는 것이 원인입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
accel/amdxdna: reject command submission on devices without a submit op
amdxdna_cmd_submit() calls xdna->dev_info->ops->cmd_submit()
unconditionally, but only aie2_dev_ops defines that callback.
aie4_vf_ops (the AIE4 SR-IOV virtual function) does not, so a user
AMDXDNA_EXEC_CMD ioctl on an AIE4 device reaches a NULL function-pointer
call and oopses the kernel. AIE4 submits work through a mapped user queue
and doorbell, not this ioctl path.
Reject the submission early with -EOPNOTSUPP when the device provides no
cmd_submit op, so the shared EXEC ioctl is a clean no-op on such devices.
Found by 0sec automated security-research tooling (https://0sec.ai).
📍 영향받는 시스템
Linux kernel (amdxdna driver using AIE4 SR-IOV virtual function)
⚔️ 공격 벡터
로컬 사용자가 AMDXDNA_EXEC_CMD ioctl 명령을 AIE4 장치에 호출하여 발생
🛡️ 대응 방법
amdxdna 드라이버가 포함된 최신 Linux 커널로 업데이트하여 cmd_submit 미지원 시 -EOPNOTSUPP를 반환하도록 패치 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 확인하십시오.