dmaengine: at_xdmac: avoid null_prt_deref in at_xdmac_prep_dma_memset
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b206d9a23ac71cb905f5fb6e0cd813406f89b678 · < 54376d8d26596f98ed7432a788314bb9154bf3e3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: at_xdmac: avoid null_prt_deref in at_xdmac_prep_dma_memset
The at_xdmac_memset_create_desc may return NULL, which will lead to a null pointer dereference. For example, the len input is error, or the atchan->free_descs_list is empty and memory is exhausted. Therefore, add check to avoid this.
From the CVE record · Linux
The Linux kernel’s at_xdmac_prep_dma_memset can dereference a NULL pointer if descriptor creation fails, such as with an invalid length or exhausted memory. This can cause a kernel fault; the input does not establish whether an attacker can trigger it or what access would be required.
Engineers running Linux kernels with the at_xdmac DMA engine should check their kernel version; affected versions are not specified.