🇰🇷 한글 설명
Linux 커널의 dax 구성 요소에서 dax_holder_notify_failure() 함수가 holder_ops를 두 번 읽는 과정에서 발생하는 취약점입니다. NULL 체크와 실제 호출 사이에 데이터가 변경될 수 있어, 동시성 문제로 인해 NULL 포인터를 참조하게 되어 시스템 충돌이 발생할 수 있습니다.
💡 쉬운 설명
프로그램이 어떤 데이터가 있는지 확인한 직후, 그 데이터가 사라지기 전에 사용해야 하는데 확인과 사용 사이에 데이터가 사라져서 오류가 발생하는 문제입니다. 이로 인해 컴퓨터 시스템이 갑자기 멈추거나 꺼질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
dax: read holder_ops once in dax_holder_notify_failure()
dax_holder_notify_failure() reads dax_dev->holder_ops twice without
READ_ONCE() -- once for the NULL check and once for the indirect
notify_failure() call. A concurrent fs_put_dax() can clear holder_ops
between the two reads, so the check can observe a non-NULL pointer while
the call dereferences NULL. (kill_dax() also clears holder_ops, but only
after synchronize_srcu(), so it cannot race a reader that is inside
dax_read_lock(); fs_put_dax() does no such synchronization.)
Fetch holder_ops once into a local with READ_ONCE() so the NULL check and
the indirect call observe the same value.
📍 영향받는 시스템
Linux kernel (dax subsystem 사용 환경)
⚔️ 공격 벡터
동시성 제어 미흡을 이용한 Race Condition (경쟁 상태) 공격
🛡️ 대응 방법
커널 패치를 통해 READ_ONCE()를 사용하여 holder_ops를 로컬 변수에 한 번만 읽어오도록 수정해야 합니다.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전인지 배포판 보안 공지를 통해 확인하십시오.