s390/pci: Fix missing check for zpci_create_device() error return
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
06.12.296.14.76.15In the Linux kernel, the following vulnerability has been resolved:
s390/pci: Fix missing check for zpci_create_device() error return
The zpci_create_device() function returns an error pointer that needs to be checked before dereferencing it as a struct zpci_dev pointer. Add the missing check in __clp_add() where it was missed when adding the scan_list in the fixed commit. Simply not adding the device to the scan list results in the previous behavior.
From the CVE record · Linux
The Linux kernel's s390 PCI code fails to check an error return from zpci_create_device() before dereferencing it, potentially causing a crash. The input does not specify an attack path, authentication requirement, or user interaction.
Engineers running Linux kernels with s390 PCI support should check their affected versions; no version range is provided.