CVE-2022-50023: dmaengine: dw-axi-dmac: ignore interrupt if no descriptor
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: dw-axi-dmac: ignore interrupt if no descriptor
If the channel has no descriptor and the interrupt is raised then the kernel will OOPS. Check the result of vchan_next_desc() in the handler axi_chan_block_xfer_complete() to avoid the error happening.
The Linux kernel CVE team has assigned CVE-2022-50023 to this issue.
Affected and fixed versions
===========================
Fixed in 5.15.63 with commit 54aa6c49361b79f7f6b15fc63dfe9ea52c70bb03 Fixed in 5.19.4 with commit 3d05aeebbde8c69593d8aa512b7c08b8f0ad25ba Fixed in 6.0 with commit 820f5ce999d2f99961e88c16d65cd26764df0590
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2022-50023
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/54aa6c49361b79f7f6b15fc63dfe9ea52c70bb03 https://git.kernel.org/stable/c/3d05aeebbde8c69593d8aa512b7c08b8f0ad25ba https://git.kernel.org/stable/c/820f5ce999d2f99961e88c16d65cd26764df0590