🇰🇷 한글 설명
Linux 커널의 dmaengine: qcom: gpi 구성 요소에서 gpi_peripheral_config() 함수 호출 시 메모리 누수가 발생합니다. krealloc() 함수가 실패할 경우 기존 메모리 주소를 잃어버려 해당 메모리를 해제할 수 없는 문제가 있습니다.
💡 쉬운 설명
컴퓨터가 작업을 위해 메모리를 재할당하려다 실패했을 때, 기존에 사용하던 메모리 주소를 잃어버려 메모리가 계속 낭비되는 현상입니다. 이 문제가 반복되면 시스템의 메모리가 부족해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: qcom: gpi: Fix memory leak in gpi_peripheral_config()
Fix a memory leak in gpi_peripheral_config() where the original memory
pointed to by gchan->config could be lost if krealloc() fails.
The issue occurs when:
1. gchan->config points to previously allocated memory
2. krealloc() fails and returns NULL
3. The function directly assigns NULL to gchan->config, losing the
reference to the original memory
4. The original memory becomes unreachable and cannot be freed
Fix this by using a temporary variable to hold the krealloc() result
and only updating gchan->config when the allocation succeeds.
Found via static analysis and code review.
📍 영향받는 시스템
Linux kernel (dmaengine: qcom: gpi 관련 모듈 사용 시스템)
⚔️ 공격 벡터
직접적인 공격보다는 시스템의 장기적인 가용성을 저하시키는 DoS(서비스 거부) 유발 가능성
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 수정된 패치 버전 이상인지 확인합니다.