dmaengine: dw-edma-pcie: Reject devices without driver data
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 41aaff2a2ac01c5f5415f9de9cd7015ac2b8d569 · < 11d7cfe0c119691b2dafbb699bbca90258c678aa| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: dw-edma-pcie: Reject devices without driver data
dw_edma_pcie_probe() treats the PCI device ID driver_data as the template for the controller layout and copies it unconditionally. A device bound dynamically via sysfs can match the driver without that data, which leads to a NULL pointer dereference.
Reject such matches before enabling the device.
From the CVE record · Linux
The Linux kernel's dw-edma-pcie driver unconditionally copies controller layout data from a PCI device ID. A device dynamically bound to the driver through sysfs can lack that data, causing a NULL pointer dereference. This requires dynamic binding through sysfs; the input does not specify authentication requirements.
Engineers running Linux kernels with the dw-edma-pcie driver should check their systems; affected versions were not specified.