🇰🇷 한글 설명
Azure RTOS FileX 6.2.0 미만 버전의 결함 허용(Fault Tolerant) 기능에서 정수 언더플로우 및 오버플로우 취약점이 발견되었습니다. 공격자가 조작된 로그 파일을 사용하여 버퍼 오버플로우를 유발하고 메모리 내용을 수정할 수 있습니다.
💡 쉬운 설명
파일 시스템의 복구 기능이 잘못된 데이터를 처리할 때 발생하는 오류입니다. 나쁜 의도로 만들어진 파일을 넣으면 컴퓨터의 메모리가 망가질 수 있습니다.
🇺🇸 원문 (English)
Azure RTOS FileX is a FAT-compatible file system that’s fully integrated with Azure RTOS ThreadX. In versions before 6.2.0, the Fault Tolerant feature of Azure RTOS FileX includes integer under and overflows which may be exploited to achieve buffer overflow and modify memory contents. When a valid log file with correct ID and checksum is detected by the `_fx_fault_tolerant_enable` function an attempt to recover the previous failed write operation is taken by call of `_fx_fault_tolerant_apply_logs`. This function iterates through the log entries and performs required recovery operations. When properly crafted a log including entries of type `FX_FAULT_TOLERANT_DIR_LOG_TYPE` may be utilized to introduce unexpected behavior. This issue has been patched in version 6.2.0. A workaround to fix line 218 in fx_fault_tolerant_apply_logs.c is documented in the GHSA.
📍 영향받는 시스템
Azure RTOS FileX versions before 6.2.0
⚔️ 공격 벡터
조작된 로그 파일(FX_FAULT_TOLERANT_DIR_LOG_TYPE 포함)을 통한 메모리 오염
🛡️ 대응 방법
Azure RTOS FileX를 6.2.0 이상 버전으로 업데이트하거나 GHSA에 명시된 소스 코드 패치를 적용하십시오.
🔧 검증 코드
출력된 결과에서 FileX 버전이 6.2.0 미만인지 확인하여 취약 여부를 판단합니다.
grep -r "FileX" /path/to/sdk/source | grep -E 'version|6\.[0-1]\.'