🇰🇷 한글 설명
Linux 커널의 jbd2 구성 요소에서 busy 체크포인트 버퍼를 건너뛸 때 need_resched() 확인을 누락하는 취약점이 발견되었습니다. 이로 인해 메모리 압박이 심한 상황에서 긴 시간 동안 j_list_lock을 점유하게 되어, CPU가 소프트 락업(soft lockup) 또는 RCU 스톨(RCU stall) 상태에 빠질 수 있습니다.
💡 쉬운 설명
시스템이 메모리가 부족할 때 데이터를 정리하는 과정에서 특정 잠금(lock)을 너무 오래 붙잡고 놓지 않는 문제입니다. 이로 인해 컴퓨터가 일시적으로 멈추거나 응답하지 않는 현상이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
jbd2: check need_resched() when skipping busy checkpoint buffers
journal_shrink_one_cp_list() skips busy checkpoint buffers when called
with JBD2_SHRINK_BUSY_SKIP. The continue statement on this path also
skips the need_resched() check at the end of the loop body.
Consequently, when a checkpoint list contains mostly busy buffers, the
shrinker can walk the entire list while holding journal->j_list_lock,
even when a reschedule has been requested. Large checkpoint lists under
memory pressure can therefore cause long lock hold times and leave other
CPUs spinning on j_list_lock, resulting in soft lockups or RCU stalls.
Route the busy-buffer path through the need_resched() check so that the
shrinker can release j_list_lock and reschedule promptly, restoring
parity with the clean-buffer path, which already checks need_resched().
This does not change which checkpoint buffers are eligible for removal.
📍 영향받는 시스템
Linux Kernel (jbd2 관련 모듈을 사용하는 모든 버전)
⚔️ 공격 벡터
직접적인 외부 공격보다는 메모리 압박을 유도하여 시스템 성능 저하 및 서비스 중단을 일으키는 DoS(서비스 거부) 형태의 공격 가능성
🛡️ 대응 방법
jbd2의 need_resched() 체크 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인