🇰🇷 한글 설명
Linux 커널의 RISC-V 아키텍처에서 cacheinfo 관련 노드 참조 누수가 발생하던 취약점이 해결되었습니다. populate_cache_leaves 함수 내 루프가 정상 종료될 때 마지막 노드의 참조를 해제하지 못해 메모리 누수가 발생할 수 있었습니다.
💡 쉬운 설명
컴퓨터가 작업을 수행하면서 사용한 메모리 정보를 제대로 지우지 않고 남겨두는 문제가 있었습니다. 이 문제가 반복되면 시스템의 메모리가 조금씩 낭비되어 성능에 영향을 줄 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
riscv: cacheinfo: Fix node reference leak in populate_cache_leaves
Currently, the while loop drops the reference to prev in each iteration.
If the loop terminates early due to a break, the final of_node_put(np)
correctly drops the reference to the current node.
However, if the loop terminates naturally because np == NULL, calling
of_node_put(np) is a no-op. This leaves the last valid node stored in
prev without its reference dropped, resulting in a node reference leak.
Fix this by changing the final `of_node_put(np)` to `of_node_put(prev)`.
📍 영향받는 시스템
RISC-V 아키텍처를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 시스템에서 특정 하드웨어 구성 시 메모리 누수를 유발할 수 있음
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 최신 버전인지 확인