KVM: s390: pci: Fix NULL dereference on AIBV allocation failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3c5a1b6f0a18520a0edd0600fef6f1a8553b8fdc · < 8bf09b9b7d3232806df95f409581f8a9fd99a3fa| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
KVM: s390: pci: Fix NULL dereference on AIBV allocation failure
The airq_iv_create() can return NULL on failure, but the return value was never checked. If it fails, zdev->aibv will be NULL and fail when dereferenced in kvm_zpci_set_airq(). Add a NULL check and free the previously allocated AISB bit and zdev->aisb on failure.
From the CVE record · Linux
In the Linux kernel's KVM s390 PCI code, an AIBV allocation failure can leave a NULL pointer that is later dereferenced. The input does not specify whether an attacker can trigger the failure or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel with KVM s390 PCI should check their installations; affected versions are not specified.