🇰🇷 한글 설명
Linux 커널의 ASoC SOF 토폴로지 로드 과정에서 메모리 누수 취약점이 발견되었습니다. 토폴로지 파일 이름에 'dummy'가 포함되고 tplg_cnt가 0인 경우, 할당된 메모리를 해제하지 않고 함수가 종료되어 메모리 누수가 발생합니다.
💡 쉬운 설명
특정 조건에서 시스템이 사용한 메모리를 제대로 반환하지 않고 계속 쌓아두는 문제가 있습니다. 이 현상이 반복되면 시스템의 메모리가 부족해져 성능 저하나 시스템 중단이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: topology: fix memory leak in snd_sof_load_topology
When the topology filename contains "dummy" and tplg_cnt is 0, the
function returns -EINVAL directly without freeing the tplg_files
allocated by kcalloc() at line 2497. This leaks memory on every
such topology load attempt.
Fix this by setting ret = -EINVAL and jumping to the out: label,
which already handles the kfree(tplg_files) cleanup.
📍 영향받는 시스템
Linux Kernel (ASoC SOF topology 관련 모듈 사용 시스템)
⚔️ 공격 벡터
조작된 토폴로지 파일 이름을 사용하여 메모리 누수를 유도하는 로컬 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.