mtd: rawnand: cadence: fix DMA device NULL pointer dereference
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d76d22b5096c5b05208fd982b153b3f182350b19 · < 0c2a43cb43786011b48eeab6093db14888258c6b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mtd: rawnand: cadence: fix DMA device NULL pointer dereference
The DMA device pointer `dma_dev` was being dereferenced before ensuring that `cdns_ctrl->dmac` is properly initialized.
Move the assignment of `dma_dev` after successfully acquiring the DMA channel to ensure the pointer is valid before use.
From the CVE record · Linux
The Linux kernel's Cadence raw NAND driver can dereference a DMA device pointer before the DMA channel is initialized. The input does not specify whether an attacker can trigger this, or any network, authentication, or user-interaction conditions.
Engineers running Linux kernels that use the Cadence raw NAND driver should check their deployments; affected versions are not specified.