🇰🇷 한글 설명
Linux 커널의 arm64 아키텍처에서 RSI(Realm Service Interface)의 증명 토큰 초기화 과정 중 필드 범위를 초과하는 쓰기 경고 문제가 발견되었습니다. SMCCC 레지스터 구조를 RSI 전용 레이아웃으로 오버레이하고 64바이트 배열로 명시적 복사를 수행하여 메모리 쓰기 경고를 해결했습니다.
💡 쉬운 설명
컴퓨터의 특정 부품(arm64)이 데이터를 저장할 때, 정해진 칸보다 더 큰 데이터를 억지로 밀어 넣으려다 발생하는 오류입니다. 이로 인해 시스템이 경고를 발생시키거나 불안정해질 수 있는 문제를 수정했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
arm64: RSI: fix field-spanning write warning in attestation token init
The challenge is passed in registers a1 through a8. However, copying to
®s.a1 makes FORTIFY treat the destination as the single a1 field,
resulting in a field-spanning write warning. [1]
Overlay the SMCCC register structure with an RSI-specific argument
layout and copy the challenge into an explicit 64-byte array. This keeps
the existing a1-a8 argument encoding while giving the copy a correctly
sized destination object.
[1]
memcpy: detected field-spanning write (size 64) of single field "®s.a1" at ./arch/arm64/include/asm/rsi_cmds.h:119 (size 8)
WARNING: ./arch/arm64/include/asm/rsi_cmds.h:119 at rsi_attestation_token_init+0xdc/0xf8 [arm_cca_guest], CPU#0: cat/3314
📍 영향받는 시스템
arm64 아키텍처를 사용하는 Linux 커널 (RSI 기능 활성화 시)
⚔️ 공격 벡터
직접적인 공격보다는 시스템 안정성을 해치는 메모리 쓰기 오류(Field-spanning write) 형태임
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 최신 보안 업데이트 버전인지 확인