🇰🇷 한글 설명
Linux 커널의 Samsung PWM 타이머 드라이버에서 발생한 취약점으로, PREEMPT_RT 환경에서 일반 스핀락이 뮤텍스 기반의 수면 가능한 잠금 방식으로 변환되는 문제가 있었습니다. 이를 해결하기 위해 atomic context에서도 수면하지 않는 raw_spinlock_t 타입으로 변경하여 시스템 안정성을 확보했습니다.
💡 쉬운 설명
컴퓨터의 핵심 부품을 제어하는 소프트웨어가 특정 설정에서 잠시 멈춰야 할 때, 잘못된 방식으로 멈추려다 시스템이 충돌할 수 있는 문제입니다. 이를 수정하여 시스템이 멈추지 않고 안정적으로 작동하도록 개선했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
clocksource/drivers/samsung_pwm: Switch to raw_spinlock_t type
Samsung PWM timer might be used as a clock source on some legacy systems.
When PREEMPT_RT is enabled on ARM, regular spinlock is converted to a
sleeping lock (mutex-based), which must not be used in atomic context
such as hard interrupt handlers. Switch the samsung_pwm_lock to the
raw_spinlock, which remains a true non-sleeping spinlock even
under PREEMPT_RT.
📍 영향받는 시스템
PREEMPT_RT가 활성화된 ARM 기반 Linux 커널 (Samsung PWM 드라이버 사용 시스템)
⚔️ 공격 벡터
직접적인 공격보다는 특정 커널 설정 환경에서 시스템 충돌(Kernel Panic)을 유발할 수 있는 로직 결함
🛡️ 대응 방법
Samsung PWM 드라이버의 잠금 메커니즘이 raw_spinlock_t로 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
커널 버전이 해당 패치가 적용된 최신 버전인지 확인하거나 드라이버 소스 코드 내의 lock 타입을 확인해야 합니다.
grep -r 'samsung_pwm_lock' /lib/modules/$(uname -r)/kernel/drivers/clocksource/drivers/ 2>/dev/null || uname -r