🇰🇷 한글 설명
Linux 커널의 ast2700-intc 드라이버에서 인터럽트 활성화 콜백 중 메모리를 할당하는 취약점이 발견되었습니다. 인터럽트가 비활성화되고 스핀락이 유지된 상태에서 메모리 할당(GFP_KERNEL)을 시도하여 시스템 데드락이나 불안정성을 유발할 수 있는 문제입니다.
💡 쉬운 설명
컴퓨터의 핵심 부품이 아주 바쁘고 중요한 작업을 처리하는 도중에, 갑자기 메모리를 새로 확보하려고 시도하다가 시스템이 멈출 수 있는 오류입니다. 이를 방지하기 위해 메모리 할당이 필요 없는 안전한 방식으로 코드를 수정했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
irqchip/ast2700-intc: Avoid allocating in the irq_domain activate() callback
The interrupt core calls the irq_domain_activate() callback from
__setup_irq() with desc->lock held and interrupts disabled. Both
aspeed_intc1_irq_domain_activate() and aspeed_intc0_resolve_route() test a
compatible string with fwnode_device_is_compatible().
fwnode_device_is_compatible() invokes fwnode_property_match_string(), which
allocates with GFP_KERNEL. That's obviously not possible with interrupts
disabled and a raw spinlock held.
Both call sites are only ever handed OF nodes, so use
of_device_is_compatible() instead: it walks the property in place and does
not allocate.
📍 영향받는 시스템
Linux kernel (ast2700-intc 드라이버를 사용하는 시스템)
⚔️ 공격 벡터
직접적인 외부 공격보다는 특정 하드웨어 설정 환경에서 시스템 데드락을 유발하는 방식
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.