🇰🇷 한글 설명
Linux 커널의 regmap 구성 요소에서 hwspinlock irqsave 루틴 중 레이스 컨디션(경쟁 상태) 취약점이 발견되었습니다. 공유 멤버인 spinlock_flags의 주소를 직접 전달하여 여러 컨텍스트가 동시에 접근할 때 상태가 손상될 수 있었으나, 로컬 스택 변수를 사용하도록 수정되었습니다.
💡 쉬운 설명
여러 작업이 동시에 하나의 자물쇠를 사용하려고 할 때, 자물쇠의 상태 정보가 서로 엉켜버리는 문제가 있었습니다. 이로 인해 시스템의 상태가 깨질 수 있었으나, 작업마다 별도의 임시 메모리를 사용하도록 개선되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
regmap: Fix race condition in hwspinlock irqsave routine
Previously, the address of the shared member '&map->spinlock_flags' was
passed directly to 'hwspin_lock_timeout_irqsave'. This creates a race
condition where multiple contexts contending for the lock could overwrite
the shared flags variable, potentially corrupting the state for the
current lock owner.
Fix this by using a local stack variable 'flags' to store the IRQ state
temporarily.
📍 영향받는 시스템
Linux Kernel (regmap 구성 요소를 사용하는 시스템)
⚔️ 공격 벡터
커널 내 특정 하드웨어 스핀락을 사용하는 상황에서 발생하는 경쟁 상태를 이용한 로컬 권한 상승 또는 시스템 불안정 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.