🇰🇷 한글 설명
리눅스 커널의 hung_task 메커니즘에서 잠금(lock) 포인터가 4바이트 정렬되어 있다고 가정하여 발생하는 취약점입니다. m68k와 같이 2바이트 정렬만 보장하는 아키텍처에서는 이 가정이 깨져 경고(WARN_ON_ONCE)가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 데이터를 읽을 때 특정 규칙(4바이트 단위)에 맞춰 정렬되어 있다고 믿는데, 이 규칙이 지켜지지 않는 환경에서 오류가 발생하는 문제입니다. 이로 인해 시스템에 불필요한 경고 메시지가 나타날 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
hung_task: fix warnings caused by unaligned lock pointers
The blocker tracking mechanism assumes that lock pointers are at least
4-byte aligned to use their lower bits for type encoding.
However, as reported by Eero Tamminen, some architectures like m68k
only guarantee 2-byte alignment of 32-bit values. This breaks the
assumption and causes two related WARN_ON_ONCE checks to trigger.
To fix this, the runtime checks are adjusted to silently ignore any lock
that is not 4-byte aligned, effectively disabling the feature in such
cases and avoiding the related warnings.
Thanks to Geert Uytterhoeven for bisecting!
📍 영향받는 시스템
m68k와 같이 2바이트 정렬만 보장하는 아키텍처를 사용하는 리눅스 커널 시스템
⚔️ 공격 벡터
직접적인 공격보다는 특정 아키텍처 환경에서 시스템 경고를 유발하여 로그를 오염시키거나 운영에 혼선을 줄 수 있음
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인