CVE-2026-31439: dmaengine: xilinx: xdma: Fix regmap init error handling
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: xilinx: xdma: Fix regmap init error handling
devm_regmap_init_mmio returns an ERR_PTR() upon error, not NULL. Fix the error check and also fix the error message. Use the error code from ERR_PTR() instead of the wrong value in ret.
The Linux kernel CVE team has assigned CVE-2026-31439 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.3 with commit 17ce252266c7f016ece026492c45838f852ddc79 and fixed in 6.6.131 with commit 4b6e1da50b22e5528b9003f376a3cecccce4decc Issue introduced in 6.3 with commit 17ce252266c7f016ece026492c45838f852ddc79 and fixed in 6.12.80 with commit 9787b3d9b908785b40bc3f2e6d7082fdb8fdd98a Issue introduced in 6.3 with commit 17ce252266c7f016ece026492c45838f852ddc79 and fixed in 6.18.21 with commit f27197ccfd2ecd2c71f27fd57c6d507e892ad24d Issue introduced in 6.3 with commit 17ce252266c7f016ece026492c45838f852ddc79 and fixed in 6.19.11 with commit 59f6ccd0f3345be2e8a78bdef2103e93f180633a Issue introduced in 6.3 with commit 17ce252266c7f016ece026492c45838f852ddc79 and fixed in 7.0 with commit e0adbf74e2a0455a6bc9628726ba87bcd0b42bf8
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-2026-31439
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/xilinx/xdma.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/4b6e1da50b22e5528b9003f376a3cecccce4decc https://git.kernel.org/stable/c/9787b3d9b908785b40bc3f2e6d7082fdb8fdd98a https://git.kernel.org/stable/c/f27197ccfd2ecd2c71f27fd57c6d507e892ad24d https://git.kernel.org/stable/c/59f6ccd0f3345be2e8a78bdef2103e93f180633a https://git.kernel.org/stable/c/e0adbf74e2a0455a6bc9628726ba87bcd0b42bf8