🇰🇷 한글 설명
리눅스 커널의 net_sched 구성 요소에서 해시 할당 후 alloc_hash 값이 업데이트되지 않아 발생하는 취약점입니다. 이로 인해 cls_tcindex 모듈에서 경계 외 메모리 접근(Out-of-Bound access)이 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 데이터를 저장할 공간을 계산할 때 실제 크기와 기록된 크기가 달라 발생하는 오류입니다. 이 오류를 이용하면 허용되지 않은 메모리 영역에 접근할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net_sched: keep alloc_hash updated after hash allocation
In commit 599be01ee567 ("net_sched: fix an OOB access in cls_tcindex")
I moved cp->hash calculation before the first
tcindex_alloc_perfect_hash(), but cp->alloc_hash is left untouched.
This difference could lead to another out of bound access.
cp->alloc_hash should always be the size allocated, we should
update it after this tcindex_alloc_perfect_hash().
📍 영향받는 시스템
Linux Kernel (cls_tcindex 모듈을 사용하는 버전)
⚔️ 공격 벡터
네트워크 스케줄링 관련 설정 조작을 통한 경계 외 메모리 접근 유도
🛡️ 대응 방법
해당 취약점이 수정된 최신 리눅스 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 수정된 패치 버전 이후인지 확인