Skip to contentSkip to conversation

CVE-2026-31743: nvmem: zynqmp_nvmem: Fix buffer size in DMA and memcpy

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

nvmem: zynqmp_nvmem: Fix buffer size in DMA and memcpy

Buffer size used in dma allocation and memcpy is wrong. It can lead to undersized DMA buffer access and possible memory corruption. use correct buffer size in dma_alloc_coherent and memcpy.

The Linux kernel CVE team has assigned CVE-2026-31743 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.9 with commit 737c0c8d07b5f671c0a33cec95965fcb2d2ea893 and fixed in 6.12.81 with commit 2f6e5b9964d0a63a5ba84fca2642876afb70a662
	Issue introduced in 6.9 with commit 737c0c8d07b5f671c0a33cec95965fcb2d2ea893 and fixed in 6.18.22 with commit 784ed4abded1ca4b525fa4cade8b02f8c5d2a087
	Issue introduced in 6.9 with commit 737c0c8d07b5f671c0a33cec95965fcb2d2ea893 and fixed in 6.19.12 with commit 6c01e7f11f5e5f22285d19510a9643e2506e13c3
	Issue introduced in 6.9 with commit 737c0c8d07b5f671c0a33cec95965fcb2d2ea893 and fixed in 7.0 with commit f9b88613ff402aa6fe8fd020573cb95867ae947e

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-31743

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/nvmem/zynqmp_nvmem.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/2f6e5b9964d0a63a5ba84fca2642876afb70a662
	https://git.kernel.org/stable/c/784ed4abded1ca4b525fa4cade8b02f8c5d2a087
	https://git.kernel.org/stable/c/6c01e7f11f5e5f22285d19510a9643e2506e13c3
	https://git.kernel.org/stable/c/f9b88613ff402aa6fe8fd020573cb95867ae947e