🇰🇷 한글 설명
Linux 커널의 pds_core 드라이버에서 PDS_CORE_CMD_FW_CONTROL 명령을 지원하지 않을 경우 발생하는 취약점입니다. 스택 변수인 fw_list가 초기화되지 않아 잘못된 메모리 값에 접근하게 되며, 이로 인해 시스템이 충돌하거나 잘못된 정보가 출력될 수 있습니다.
💡 쉬운 설명
특정 명령을 실행할 때 컴퓨터가 준비되지 않은 상태에서 잘못된 메모리 주소를 읽으려다 시스템이 멈추거나 오류가 발생하는 문제입니다. 사용자가 장치 정보를 확인하는 과정에서 예기치 못한 시스템 다운이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
pds_core: handle unsupported PDS_CORE_CMD_FW_CONTROL result
If the FW doesn't support the PDS_CORE_CMD_FW_CONTROL command
the driver might at the least print garbage and at the worst
crash when the user runs the "devlink dev info" devlink command.
This happens because the stack variable fw_list is not 0
initialized which results in fw_list.num_fw_slots being a
garbage value from the stack. Then the driver tries to access
fw_list.fw_names[i] with i >= ARRAY_SIZE and runs off the end
of the array.
Fix this by initializing the fw_list and by not failing
completely if the devcmd fails because other useful information
is printed via devlink dev info even if the devcmd fails.
📍 영향받는 시스템
PDS_CORE 드라이버를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
사용자가 'devlink dev info' 명령어를 실행하여 취약한 드라이버를 호출할 때 발생
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 보안 업데이트 버전인지 확인