🇰🇷 한글 설명
Linux 커널의 mtd docg3 드라이버에서 docg3_release() 함수 호출 시 Use-After-Free 취약점이 발견되었습니다. 장치를 해제하는 과정에서 이미 메모리에서 해제된 docg3 구조체의 포인터를 참조하여 시스템 불안정성이나 권한 상승을 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터 부품을 정리하는 과정에서 이미 버린 물건의 정보를 다시 확인하려고 시도하여 오류가 발생하는 문제입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 제어권을 얻을 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
mtd: docg3: fix use-after-free in docg3_release()
In docg3_release(), the docg3 pointer is obtained from
cascade->floors[0]->priv before the loop that calls
doc_release_device() on each floor. doc_release_device() frees the
docg3 struct via kfree(docg3) at line 1881. After the loop,
docg3->cascade->bch dereferences the already-freed pointer.
Fix this by accessing cascade->bch directly, which is equivalent
since docg3->cascade points back to the same cascade struct, and
is already available as a local variable. This also removes the
now-unused docg3 local variable.
📍 영향받는 시스템
docg3 드라이버를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
특정 장치 드라이버의 해제 프로세스를 유도하는 로컬 공격
🛡️ 대응 방법
docg3 관련 Use-After-Free 취약점이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 패치된 최신 버전인지 보안 공지(CVE-2026-46285)와 대조하여 확인합니다.