media: dm1105: fix missing error check for dma_alloc_coherent
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a611d0ca006fe76d88b8dd5ac44f4468293b6760 · < f3f135c4fac6194933b952e98a15dc05aa420956| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: dm1105: fix missing error check for dma_alloc_coherent
The return value of dm1105_dma_map(), which handles DMA memory allocation, is ignored in dm1105_hw_init(). If dma_alloc_coherent() fails, the driver will proceed using a NULL pointer for DMA transfers, leading to a kernel oops or invalid hardware access.
Fix this by checking the return value and propagating -ENOMEM on failure.
From the CVE record · Linux
The Linux kernel’s dm1105 driver does not check whether DMA memory allocation succeeds during hardware initialization. If allocation fails, the driver may use a NULL pointer for DMA transfers, causing a kernel oops or invalid hardware access. The input does not describe an attacker access path or authentication or user-interaction requirements.
Operators of Linux systems using the dm1105 driver should check their kernel versions; affected versions are not specified.