🔍 CVE-2026-31783

5.5
CVSS Score
MEDIUM
2026-05-01
2026-05-11 20:47
✅ 완료

🇰🇷 한글 설명

Linux 커널의 spi: amlogic: spifc-a4 드라이버에서 aml_sfc_probe() 함수가 NAND ECC 엔진을 등록하지만 probe 실패 또는 device 제거 시 정리(teardown)가 누락되어 있습니다. devm cleanup action을 추가하여 자동으로 nand_ecc_unregister_on_host_hw_engine()이 실행되도록 수정했습니다.

💡 쉬운 설명

Linux 저장장치 드라이버에서 리소스를 제대로 해제하지 않아 메모리 누수가 발생합니다. 장치를 반복적으로 제거/추가할 때 시스템 자원이 고갈될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: spi: amlogic: spifc-a4: unregister ECC engine on probe failure and remove() callback aml_sfc_probe() registers the on-host NAND ECC engine, but teardown was missing from both probe unwind and remove-time cleanup. Add a devm cleanup action after successful registration so nand_ecc_unregister_on_host_hw_engine() runs automatically on probe failures and during device removal.

📍 영향받는 시스템

amlogic spifc-a4 SPI 플래시 컨트롤러를 사용하는 Linux 커널 (패치 적용 전 모든 버전)

⚔️ 공격 벡터

로컬 공격 - 특정 장치의 반복적인 제거/추가를 통해 메모리 누수 유발 가능

🛡️ 대응 방법

Linux 커널을 최신 버전으로 업데이트하거나 해당 SPI 드라이버 패치 적용

🔧 검증 코드

출력되는 패턴 문자열이 있으면 패치 적용됨, 'patch not found' 출력 시 미적용 상태

Shell / Script
grep -r 'nand_ecc_unregister_on_host_hw_engine' /lib/modules/$(uname -r)/kernel/ 2>/dev/null && grep -r 'devm.*ecc.*cleanup' /lib/modules/$(uname -r)/kernel/drivers/spi/ 2>/dev/null | grep -i amlogic | head -1 || echo 'patch not found'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel