🇰🇷 한글 설명
Linux 커널의 s390/vfio-ap 구성 요소에서 발생하는 취약점으로, 새로운 어댑터나 도메인이 할당될 때 전체 AP 매트릭스를 검사하지 않고 일부만 검사하여 발생합니다. 이로 인해 vfio_ap 드라이버에 바인딩되지 않은 큐 장치가 게스트에게 잘못 전달될 수 있는 보안 위반 문제가 발생합니다.
💡 쉬운 설명
컴퓨터의 가상 장치를 관리할 때, 검사해야 할 목록 중 일부만 확인하는 실수가 발견되었습니다. 이 때문에 허가되지 않은 장치까지 가상 컴퓨터에 연결될 수 있는 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
s390/vfio-ap: always filter entire AP matrix
The vfio_ap_mdev_filter_matrix function is called whenever a new adapter or
domain is assigned to the mdev. The purpose of the function is to update
the guest's AP configuration by filtering the matrix of adapters and
domains assigned to the mdev. When an adapter or domain is assigned, only
the APQNs associated with the APID of the new adapter or APQI of the new
domain are inspected. If an APQN does not reference a queue device bound to
the vfio_ap device driver, then it's APID will be filtered from the mdev's
matrix when updating the guest's AP configuration.
Inspecting only the APID of the new adapter or APQI of the new domain will
result in passing AP queues through to a guest that are not bound to the
vfio_ap device driver under certain circumstances. Consider the following:
guest's AP configuration (all also assigned to the mdev's matrix):
14.0004
14.0005
14.0006
16.0004
16.0005
16.0006
unassign domain 4
unbind queue 16.0005
assign domain 4
When domain 4 is re-assigned, since only domain 4 will be inspected, the
APQNs that will be examined will be:
14.0004
16.0004
Since both of those APQNs reference queue devices that are bound to the
vfio_ap device driver, nothing will get filtered from the mdev's matrix
when updating the guest's AP configuration. Consequently, queue 16.0005
will get passed through despite not being bound to the driver. This
violates the linux device model requirement that a guest shall only be
given access to devices bound to the device driver facilitating their
pass-through.
To resolve this problem, every adapter and domain assigned to the mdev will
be inspected when filtering the mdev's matrix.
📍 영향받는 시스템
Linux kernel (s390 architecture, vfio-ap component)
⚔️ 공격 벡터
특정 어댑터/도메인 할당 및 언바인딩 시퀀스를 조작하여 드라이버에 바인딩되지 않은 장치에 접근
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 vfio_ap_mdev_filter_matrix 함수가 전체 매트릭스를 검사하도록 수정
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.