🇰🇷 한글 설명
Linux 커널의 net/liquidio 드라이버에서 VF pci_dev 포인터를 캐싱할 때 참조 횟수(reference count)를 적절히 관리하지 않아 발생하는 취약점입니다. 이로 인해 잘못된 메모리 참조가 발생할 수 있으며, OCTEON_VF_FLR_REQUEST 처리 과정에서 문제가 발생합니다.
💡 쉬운 설명
컴퓨터의 네트워크 장치가 정보를 저장하는 과정에서 관리 규칙을 어겨, 이미 사라진 정보를 다시 사용하려다 시스템 오류를 일으킬 수 있는 문제입니다. 이로 인해 시스템이 멈추거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/liquidio: drop cached VF pci_dev LUT
The PF SR-IOV enable path caches VF pci_dev pointers in
dpiring_to_vfpcidev_lut[] by iterating with pci_get_device(). Those
entries do not own a reference, because the iterator drops the previous
device reference on each step. The cached pointer is then dereferenced
later when handling OCTEON_VF_FLR_REQUEST.
Replace the cached VF mapping with runtime lookup on the mailbox DPI
ring: derive the VF index from q_no, resolve the VF via exported PCI
IOV helpers, validate it with the PF pointer and VF ID, then issue
pcie_flr() and drop the reference with pci_dev_put(). Remove the
unused VF lookup table initialization and cleanup.
📍 영향받는 시스템
Linux kernel (net/liquidio 드라이버를 사용하는 시스템)
⚔️ 공격 벡터
특수하게 조작된 OCTEON_VF_FLR_REQUEST를 전송하여 잘못된 메모리 주소에 접근 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인