dmaengine: ti: k3-udma-glue: fix NULL dereference in k3_udma_glue_release_rx_chn()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d702419134133db1eab2067dc6ea5723467fd917 · < b14e6c52872556de2d6c137531e0ce85085c10ed| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: ti: k3-udma-glue: fix NULL dereference in k3_udma_glue_release_rx_chn()
If devm_kcalloc() for rx_chn->flows fails in a channel request function, the error path calls k3_udma_glue_release_rx_chn(), which dereferences the NULL rx_chn->flows pointer in k3_udma_glue_release_rx_flow().
Skip the flow release loop in k3_udma_glue_release_rx_chn() when rx_chn->flows is not allocated.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
From the CVE record · Linux
A failed allocation for receive-channel flows can trigger a NULL pointer dereference in the Linux kernel’s TI k3-udma-glue driver during error cleanup. The input does not identify an attacker-controlled trigger, access requirements, or user interaction.
Teams running Linux kernels with the TI k3-udma-glue driver should check their kernel versions; affected versions are not specified.