CVSS
Вероятност да бъде експлоатирана в следващите 30 дни (EPSS)
Атакува се
Време до експлоатация
Описание
Оригинално описание
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 kv
Засегнати продукти
- Linux Linux: eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 преди 2fbe430fe40bc5adb7e439d0136d2c5fe34613ba; eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 преди 5e932abfcce6189d067fffb0eb8214443bc04374; eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 преди 334b435b951353f934d5110c4630e0cb58d2f9a7; eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 преди 178ea7a1c2c3c0c01d14b8f60aa35f1e0cdc6b78; eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 преди 4f7e869d0db24ae07b4c888fd3bc21554eef775d; eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 преди d50346801b4f144e42b49cd4f1496010498ab114
- Linux Linux: 6.0; преди 6.0; 6.1.191 до 6.1.*; 6.6.157 до 6.6.*; 6.12.110 до 6.12.*; 6.18.51 до 6.18.*; 7.2.5 до 7.2.*; от 7.3 нататък
История
- 16 септември 2026 Публикувано
Други уязвимости в Linux Linux
Първоизточници
- https://www.cve.org/CVERecord?id=CVE-2026-89958
- https://nvd.nist.gov/vuln/detail/CVE-2026-89958
- https://git.kernel.org/stable/c/2fbe430fe40bc5adb7e439d0136d2c5fe34613ba
- https://git.kernel.org/stable/c/5e932abfcce6189d067fffb0eb8214443bc04374
- https://git.kernel.org/stable/c/334b435b951353f934d5110c4630e0cb58d2f9a7
- https://git.kernel.org/stable/c/178ea7a1c2c3c0c01d14b8f60aa35f1e0cdc6b78
- https://git.kernel.org/stable/c/4f7e869d0db24ae07b4c888fd3bc21554eef775d
- https://git.kernel.org/stable/c/d50346801b4f144e42b49cd4f1496010498ab114