Kestrel
대시보드로 돌아가기
CVE-2026-89958UNKNOWNMITRENVD대응게시일: 2026. 09. 16.수정일: 2026. 09. 16.CNA: 416baaa9-dc9f-4396-8d5f-8c081fb06d67Received

In the Linux kernel, the following vulnerability has been resolved: s390/vfio-ap: Fix dereference matrix_mdev->kvm without checking for NUL

위협 신호 · CVSS · EPSS · KEV

정기 패치· 높은 악용 신호 없음
CVSS
unknown

이론적 심각도 점수

EPSS

예측 데이터 없음

KEV
미등재

실측 악용 기록 없음

권장 대응 기한60일 이내CISA SSVC 기준

계획된 패치 주기 내 조치(60일 이내)

외부 노출· KEV 미등재 · 자동화 어려움 · 부분 영향 · 외부 노출

CVSS 벡터 · 메트릭

CVSS 벡터 정보 없음

상세 설명

In the Linux kernel, the following vulnerability has been resolved:

s390/vfio-ap: Fix dereference matrix_mdev->kvm without checking for NULL

The ap_driver structure has two fields which are function pointers to
callbacks:

  • .on_config_changed: called at the start of the AP bus scan function to
    notify the device driver that the host AP
    configuration has changed and the associated AP
    devices will be added or removed accordingly. This
    gives the implementor a chance to evaluate the
    configuration changes and respond to them before
    the associated devices are added or removed.

  • .on_scan_complete: Called at the end of the AP bus scan function to
    notify the device driver that the host AP
    configuration has changed and the AP devices have
    been added or removed accordingly. This gives the
    implementor the opportunity to respond to the
    changes after the associated devices are added or
    removed.

These two callbacks are implemented in the vfio_ap device driver via the
vfio_ap_on_cfg_changed and vfio_ap_on_scan_complete functions respectively.

Within the call stack of these two callback functions the
matrix_mdev->kvm->lock mutex is taken without checking whether
matrix_mdev->kvm is NULL or not. If matrix_mdev->kvm has never been set,
trying to take the lock will trigger a NULL pointer dereference. This patch
adds checks for matrix_mdev->kvm == NULL before taking the
matrix_mdev->kvm->lock mutex.

Note that the matrix_mdev->kvm->lock mutex taken in the
vfio_ap_mdev_hot_plug_config function is moved to the calling function
along with the matrix_dev->mdevs_lock which is needed there to access
the fields of the matrix_mdev. It makes little sense to make the change
the check for matrix_mdev->kvm there before taking the kvm->lock
mutex only to have to move it out via another patch, so it is done in
this patch.

It is important to make note of the following:

  1. The matrix_dev->guests_lock is acquired at the start of both callback
    functions. This ensures that matrix_mdev will not be removed via the
    vfio_ap_mdev_remove function because it too takes matrix_dev_guests_lock
    before removing the object; so, matrix_mdev will be available for the
    duration of the callback functions.

  2. The matrix_dev->mdevs_lock mutex must be taken in order to access
    fields within the matrix_mdev structure

  3. matrix_mdev->kvm->lock mutex must be taken before the
    matrix_dev->mdevs_lock to prevent a lockdep splat.

4: The kvm->lock must be held while plugging the guest's AP configuration
into its SIE state description via the vfio_ap_mdev_update_guest_apcb
function.

  1. The vfio_ap_mdev_update_guest_apcb checks matrix_mdev->kvm to verify it
    is not NULL before doing the hot plug of the guest's AP configuration.

AI 심층 분석

공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.