🇰🇷 한글 설명
리눅스 커널의 enetc 구성 요소에서 affinity_hint를 읽을 때 발생하는 잘못된 메모리 접근 취약점입니다. irq_set_affinity_hit() 함수가 스택 메모리에 있는 임시 데이터를 참조하여, 이후 procfs를 통해 접근할 때 페이지 오류(paging request oops)를 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터의 핵심 부품인 커널이 이미 사라진 임시 메모리 주소를 다시 읽으려다 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 오류 메시지를 내뱉으며 불안정해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
enetc: Fix illegal access when reading affinity_hint
irq_set_affinity_hit() stores a reference to the cpumask_t
parameter in the irq descriptor, and that reference can be
accessed later from irq_affinity_hint_proc_show(). Since
the cpu_mask parameter passed to irq_set_affinity_hit() has
only temporary storage (it's on the stack memory), later
accesses to it are illegal. Thus reads from the corresponding
procfs affinity_hint file can result in paging request oops.
The issue is fixed by the get_cpu_mask() helper, which provides
a permanent storage for the cpumask_t parameter.
📍 영향받는 시스템
Linux Kernel (enetc 관련 모듈을 사용하는 버전)
⚔️ 공격 벡터
procfs의 affinity_hint 파일을 읽는 행위를 통해 시스템 오류 유발
🛡️ 대응 방법
get_cpu_mask() 헬퍼 함수가 적용된 최신 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 수정된 패치 버전 이후인지 확인