🇰🇷 한글 설명
Linux 커널의 CXL(Compute Express Link) 영역 생성 과정 중 특정 시점에 영역 삭제가 가능하여 커널의 가정을 위반할 수 있는 취약점입니다. 이를 해결하기 위해 'regions_lock'을 확장하여 영역 생성과 장치 등록 사이의 임계 영역에서 삭제를 방지하도록 수정되었습니다.
💡 쉬운 설명
컴퓨터의 메모리 영역을 만드는 도중에 누군가 그 영역을 갑자기 삭제해버려 시스템이 혼란에 빠질 수 있는 문제입니다. 이로 인해 시스템 오류나 예기치 않은 동작이 발생할 수 있어, 작업이 끝날 때까지 삭제하지 못하도록 잠금 장치를 강화했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
cxl/region: Block region delete during region creation
Expand the range lock, rename it "regions_lock", to disable region deletion
in the critical period between construct_region() and attach_target(), as
well as the period between device_add() and registering the remove actions.
Otherwise, userspace can confuse the kernel. It can violate the assumption
the region stays registered through the completion of cxl_add_to_region().
It can violate the assumption that devm_add_action_or_reset() is working
with a live 'struct cxl_region'.
It is ok for the region to disappear outside of those windows as that
mirrors device hotplug flows where the proper locks are held.
📍 영향받는 시스템
CXL 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
사용자 공간(Userspace)에서 영역 생성 프로세스가 완료되기 전 의도적으로 영역 삭제를 시도하는 방식
🛡️ 대응 방법
CXL 영역 생성 로직에 regions_lock이 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 최신 보안 업데이트 버전인지 확인