🇰🇷 한글 설명
Linux 커널의 Texas Instruments k3-socinfo 드라이버에서 probe 과정 중 할당된 mmio regmap이 해제되지 않아 메모리 누수를 초래합니다. Probe 실패나 드라이버 언바인드 시 리소스가 적절히 정리되지 않는 문제를 device managed allocator 사용으로 수정합니다.
💡 쉬운 설명
Linux 커널 드라이버가 초기화할 때 메모리를 할당하지만 종료 시 정리하지 않아 메모리가 낭비됩니다. 자동으로 정리되도록 수정하는 패치입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
soc: ti: k3-socinfo: Fix regmap leak on probe failure
The mmio regmap allocated during probe is never freed.
Switch to using the device managed allocator so that the regmap is
released on probe failures (e.g. probe deferral) and on driver unbind.
📍 영향받는 시스템
Texas Instruments k3-socinfo 드라이버가 포함된 Linux 커널 시스템 (주로 TI SoC 기반 임베디드 장비)
⚔️ 공격 벡터
직접적인 보안 공격 벡터 없음. 반복적인 드라이버 로드/언로드로 메모리 고갈 가능
🛡️ 대응 방법
Linux 커널을 최신 버전으로 업데이트하거나 k3-socinfo 드라이버 패치 적용
🔧 검증 코드
devm_regmap_init_mmio 함수가 사용되면 패치 적용됨. 커널 소스가 없으면 uname -r로 버전 확인 후 변경로그에서 검증하세요.
grep -i 'devm_regmap_init_mmio' /lib/modules/$(uname -r)/build/drivers/soc/ti/k3-socinfo.c 2>/dev/null || echo 'Source unavailable - check kernel version'