🇰🇷 한글 설명
Linux 커널의 irq-riscv-imsic-early 드라이버에서 IMSIC 상태 설정 실패 시 할당된 fwnode를 해제하지 않는 메모리 누수 취약점이 발견되었습니다. 이 문제는 imsic_early_acpi_init() 함수가 오류 발생 시 할당된 자원을 정리하지 않고 반환하기 때문에 발생합니다.
💡 쉬운 설명
컴퓨터 부품을 설정하는 과정에서 오류가 발생했을 때, 사용했던 메모리 자원을 제대로 돌려주지 않고 남겨두는 문제가 있습니다. 이로 인해 시스템 자원이 조금씩 낭비될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
irqchip/irq-riscv-imsic-early: Fix fwnode leak on state setup failure
imsic_early_acpi_init() allocates a firmware node before setting up the
IMSIC state. If imsic_setup_state() fails, the function returns without
freeing the allocated fwnode.
Free the fwnode and clear the global pointer on this error path, matching
the cleanup already done when imsic_early_probe() fails.
[ tglx: Use a common cleanup path instead of copying code around ]
📍 영향받는 시스템
RISC-V IMSIC를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 시스템에서 특정 하드웨어 초기화 오류를 유도하여 메모리 누수 발생 가능
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 수정된 버전이 적용되었는지 확인