🇰🇷 한글 설명
Linux 커널의 RISC-V ACPI 구현 중 riscv_acpi_add_prt_dep() 함수 내 루프 처리 방식에 오류가 발견되었습니다. 오류 발생 시 루프를 잘못 계속 진행하여 엔트리 포인터 업데이트를 누락시키는 문제가 있었으며, 이를 for 루프로 재작성하여 해결했습니다.
💡 쉬운 설명
컴퓨터의 하드웨어를 관리하는 소프트웨어(커널)에서 목록을 읽어오는 과정에 실수가 있었습니다. 이 실수로 인해 특정 장치 정보를 제대로 읽지 못하고 건너뛰는 문제가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ACPI: RISC-V: Fix riscv_acpi_add_prt_dep() loop handling
The loop in riscv_acpi_add_prt_dep() includes error conditions that are
handled in a dubious - if not outright wrong - way, by continuining the
loop (which skips and misses the entry pointer update to point to the next
entry).
Rewrite the loop as a for loop (that handles the continuation correctly)
and wrap the condition and update statements using helper functions to make
it cleaner.
📍 영향받는 시스템
RISC-V 아키텍처를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
직접적인 외부 공격보다는 시스템 하드웨어 초기화 과정에서의 논리적 오류로 인한 오작동 가능성
🛡️ 대응 방법
해당 패치가 적용된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인