🇰🇷 한글 설명
Linux 커널의 SPARC 아키텍처(Niagara)에서 copy_from_user 및 copy_to_user 함수 사용 시 예외 보고가 부정확하게 처리되는 취약점이 발견되었습니다. 이 결함은 예외 핸들러의 계산 오류와 잘못된 에필로그로 인해 발생하며, 이를 수정하여 시스템 충돌을 방지하고 정확한 반환 값을 보장합니다.
💡 쉬운 설명
컴퓨터가 사용자 데이터를 읽거나 쓸 때 오류가 발생하면 남은 작업량을 계산해야 하는데, 이 계산이 틀려 시스템이 멈출 수 있는 문제입니다. 이번 패치는 이 계산 방식을 바로잡아 시스템이 안정적으로 작동하도록 합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
sparc: fix accurate exception reporting in copy_{from_to}_user for Niagara
The referenced commit introduced exception handlers on user-space memory
references in copy_from_user and copy_to_user. These handlers return from
the respective function and calculate the remaining bytes left to copy
using the current register contents. This commit fixes a couple of bad
calculations and a broken epilogue in the exception handlers. This will
prevent crashes and ensure correct return values of copy_from_user and
copy_to_user in the faulting case. The behaviour of memcpy stays unchanged.
📍 영향받는 시스템
SPARC 아키텍처(Niagara)를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
사용자 공간 메모리 참조 시 의도적인 예외를 유발하여 시스템 충돌을 일으키는 방식
🛡️ 대응 방법
해당 수정 사항이 포함된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 이후의 버전인지 확인