🇰🇷 한글 설명
Linux 커널의 starfive 암호화 드라이버 내 starfive_aes_aead_do_one_req() 함수에서 메모리 누수 취약점이 발견되었습니다. sg_copy_to_buffer() 또는 starfive_aes_hw_init() 호출 실패 시 할당된 메모리가 해제되지 않아 시스템 자원이 고갈될 수 있습니다.
💡 쉬운 설명
컴퓨터가 암호화 작업을 하다가 오류가 발생했을 때, 사용했던 메모리를 제대로 돌려주지 않고 계속 붙잡고 있는 문제입니다. 이 문제가 반복되면 컴퓨터의 메모리가 부족해져 시스템이 느려지거나 멈출 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
crypto: starfive - Fix memory leak in starfive_aes_aead_do_one_req()
The starfive_aes_aead_do_one_req() function allocates rctx->adata with
kzalloc() but fails to free it if sg_copy_to_buffer() or
starfive_aes_hw_init() fails, which lead to memory leaks.
Since rctx->adata is unconditionally freed after the write_adata
operations, ensure consistent cleanup by freeing the allocation in these
earlier error paths as well.
Compile tested only. Issue found using a prototype static analysis tool
and code review.
📍 영향받는 시스템
StarFive 하드웨어를 사용하는 Linux 커널 기반 시스템
⚔️ 공격 벡터
특정 암호화 요청을 반복적으로 실패하게 유도하여 시스템 메모리 고갈 유도 (DoS)
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 버전인지 배포판 보안 공지를 통해 확인