🇰🇷 한글 설명
리눅스 커널의 mtd: rawnand 구성 요소에서 nand_lock() 및 nand_unlock() 함수가 NAND 장치 잠금을 보유하지 않은 상태로 호출되는 취약점이 발견되었습니다. 이로 인해 여러 저수준 PIO 명령을 사용하는 컨트롤러에서 UBI/UBIFS의 백그라운드 작업과 경합이 발생하여 NAND 컨트롤러의 cmd_pending 충돌을 유발할 수 있습니다.
💡 쉬운 설명
NAND 메모리를 관리하는 과정에서 작업 순서가 엉키는 문제가 발생하여 데이터 처리 오류가 생길 수 있습니다. 여러 작업이 동시에 메모리에 접근하려고 할 때 충돌이 일어나 시스템 안정성에 영향을 줄 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
mtd: rawnand: serialize lock/unlock against other NAND operations
nand_lock() and nand_unlock() call into chip->ops.lock_area/unlock_area
without holding the NAND device lock. On controllers that implement
SET_FEATURES via multiple low-level PIO commands, these can race with
concurrent UBI/UBIFS background erase/write operations that hold the
device lock, resulting in cmd_pending conflicts on the NAND controller.
Add nand_get_device()/nand_release_device() around the lock/unlock
operations to serialize them against all other NAND controller access.
📍 영향받는 시스템
Linux kernel (mtd: rawnand 관련 모듈 사용 시스템)
⚔️ 공격 벡터
동시적인 UBI/UBIFS 백그라운드 작업과 NAND 컨트롤러 명령 간의 레이스 컨디션(Race Condition) 유발
🛡️ 대응 방법
nand_get_device() 및 nand_release_device()를 사용하여 lock/unlock 작업 시 장치 잠금을 수행하도록 커널 패치 적용
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인합니다.