🇰🇷 한글 설명
Linux 커널의 Verisilicon 미디어 드라이버에서 __initconst 매크로 오용으로 인해 커널 패닉이 발생하는 취약점입니다. 모듈로 빌드될 경우 초기화 단계 이후 데이터가 해제되어, 이후 프로브 과정에서 해당 메모리에 접근할 때 페이지 폴트가 발생합니다.
💡 쉬운 설명
컴퓨터의 핵심 시스템인 커널이 필요한 데이터를 너무 일찍 삭제해버려서 시스템이 갑자기 멈추는 문제입니다. 이로 인해 장치를 인식하는 과정에서 오류가 발생하고 시스템 전체가 충돌할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
media: verisilicon: Fix kernel panic due to __initconst misuse
Fix a kernel panic when probing the driver as a module:
Unable to handle kernel paging request at virtual address
ffffd9c18eb05000
of_find_matching_node_and_match+0x5c/0x1a0
hantro_probe+0x2f4/0x7d0 [hantro_vpu]
The imx8mq_vpu_shared_resources array is referenced by variant
structures through their shared_devices field. When built as a
module, __initconst causes this data to be freed after module
init, but it's later accessed during probe, causing a page fault.
The imx8mq_vpu_shared_resources is referenced from non-init code,
so keeping __initconst or __initconst_or_module here is wrong.
Drop the __initconst annotation and let it live in the normal .rodata
section.
A bug of __initconst called from regular non-init probe code
leading to bugs during probe deferrals or during unbind-bind cycles.
📍 영향받는 시스템
Linux kernel (Verisilicon media driver 사용 시스템)
⚔️ 공격 벡터
로컬 공격자가 드라이버 모듈의 로드/언로드 또는 프로브 지연을 유도하여 커널 패닉 유발
🛡️ 대응 방법
해당 데이터의 __initconst 어노테이션을 제거하여 일반 .rodata 섹션에 유지되도록 커널 패치 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 최신 패치 버전인지 확인