🇰🇷 한글 설명
Linux 커널의 sja1105 드라이버 내 sja1105_table_delete_entry() 함수에서 경계 외 메모리 접근(Out-of-bounds) 취약점이 발견되었습니다. 마지막 요소를 삭제할 때 잘못된 범위의 메모리를 이동하거나 범위를 초과하여 접근함으로써 KASAN 경고를 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터 메모리의 정해진 범위를 벗어나 잘못된 위치를 건드리는 오류가 발견되었습니다. 이로 인해 시스템이 불안정해지거나 예기치 않은 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: dsa: sja1105: fix kasan out-of-bounds warning in sja1105_table_delete_entry()
There are actually 2 problems:
- deleting the last element doesn't require the memmove of elements
[i + 1, end) over it. Actually, element i+1 is out of bounds.
- The memmove itself should move size - i - 1 elements, because the last
element is out of bounds.
The out-of-bounds element still remains out of bounds after being
accessed, so the problem is only that we touch it, not that it becomes
in active use. But I suppose it can lead to issues if the out-of-bounds
element is part of an unmapped page.
📍 영향받는 시스템
sja1105 드라이버를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 공격자가 특정 네트워크 드라이버 조작을 통해 메모리 경계 외 접근 유도
🛡️ 대응 방법
sja1105 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 최신 패치 버전인지 확인