🇰🇷 한글 설명
리눅스 커널의 PCI/sysfs에서 레거시 I/O 및 메모리 핸들러가 커널 락다운(Lockdown) 상태를 확인하지 않는 취약점이 발견되었습니다. 이로 인해 커널이 보호 모드인 상태에서도 루트 권한을 가진 사용자가 임의의 I/O 포트에 쓰거나 레거시 메모리 공간을 매핑할 수 있습니다. 해당 문제는 관련 핸들러에 보안 체크 로직을 추가하여 해결되었습니다.
💡 쉬운 설명
컴퓨터의 보안 모드가 켜져 있어도 관리자 권한을 이용해 시스템의 핵심 영역에 접근할 수 있는 구멍이 있었습니다. 이 구멍을 통해 해커가 시스템의 통제권을 완전히 빼앗을 위험이 있었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
PCI/sysfs: Add lockdown checks to legacy I/O and memory handlers
Currently, the legacy I/O and memory sysfs handlers do not check
security_locked_down(LOCKDOWN_PCI_ACCESS), leaving the legacy_io and
legacy_mem files unprotected when the kernel is locked down.
Commit eb627e17727e ("PCI: Lock down BAR access when the kernel is locked
down") added the check to pci_write_config(), pci_mmap_resource(), and
pci_write_resource_io() to prevent userspace from programming DMA-capable
hardware that could be used to modify kernel code, but did not cover the
legacy handlers.
As a result, root can still write arbitrary I/O ports and map the legacy
I/O and memory spaces while the kernel is locked down, which is the same
capability the lockdown is meant to remove.
Add the same check to pci_write_legacy_io(), pci_mmap_legacy_mem(), and
pci_mmap_legacy_io().
These generic handlers cover both architectures that define HAVE_PCI_LEGACY
(such as Alpha and PowerPC).
[bhelgaas: add Link]
📍 영향받는 시스템
PCI 레거시 I/O 및 메모리 핸들러를 사용하는 리눅스 커널 (Alpha, PowerPC 등)
⚔️ 공격 벡터
루트 권한을 탈취한 공격자가 커널 락다운을 우회하여 레거시 I/O 포트 쓰기 및 메모리 매핑 수행
🛡️ 대응 방법
커널 업데이트를 통해 PCI 레거시 핸들러에 security_locked_down(LOCKDOWN_PCI_ACCESS) 체크 로직이 포함된 최신 패치 적용
🔧 검증 코드
출력된 커널 버전이 해당 보안 패치가 적용된 최신 버전인지 배포판 보안 공지를 통해 확인