🇰🇷 한글 설명
Linux 커널의 VFIO 드라이버에서 디버그용 debugfs 파일이 장치 해제 프로세스보다 늦게 제거되어 발생하는 문제입니다. 장치가 해제된 후에도 stale(오래된) 데이터가 포함된 debugfs 항목이 남아 있어 시스템 상태를 오인하게 만들 수 있습니다.
💡 쉬운 설명
컴퓨터 부품을 제거할 때, 그 부품의 정보를 보여주는 기록지가 먼저 지워지지 않고 남아 있는 현상입니다. 이로 인해 이미 사라진 부품이 여전히 작동 중인 것처럼 잘못된 정보를 보여줄 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
vfio: Remove device debugfs before releasing devres
VFIO device debugfs files created with debugfs_create_devm_seqfile()
store a devres allocated debugfs_devm_entry as inode private data.
vfio_unregister_group_dev() currently calls vfio_device_del() before
vfio_device_debugfs_exit(), but device_del() releases devres. This can
leave debugfs entries visible with stale inode private data while
unregister waits for userspace references to drain.
Remove the per-device debugfs tree before vfio_device_del(). The debugfs
view is diagnostic only, so losing it at the start of unregister is
preferable to preserving entries whose backing storage may already have
been released.
Complete the teardown by clearing the per-device debugfs root after
removal. This matches the global debugfs root cleanup and prevents
future users from mistaking a removed dentry for a live debugfs tree
during the remainder of unregister.
📍 영향받는 시스템
Linux Kernel (VFIO 관련 모듈을 사용하는 시스템)
⚔️ 공격 벡터
직접적인 공격보다는 시스템 관리자나 진단 도구가 잘못된 디버그 정보를 참조하게 만드는 정보 불일치 문제임
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.