misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl()
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl()
Commit eefb83790a0d ("misc: pci_endpoint_test: Add doorbell test case") added NO_BAR (-1) to the pci_barno enum which, in practical terms, changes the enum from an unsigned int to a signed int. If the user passes a negative number in pci_endpoint_test_ioctl() then it results in an array underflow in pci_endpoint_test_bar().
From the CVE record · Linux
The Linux kernel's pci_endpoint_test ioctl has an array underflow when a caller passes a negative BAR number. A local caller can trigger the underflow through the ioctl; the input does not specify whether additional privileges are required.
Engineers running Linux kernels with the pci_endpoint_test component should check their systems; affected versions were not specified.