Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1F0939A812 for ; Fri, 1 May 2026 14:17:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645067; cv=none; b=FbPsmMmRGXj0FUmBqOBXIIEN3HUeHI8jdt7S+HmTNqTTFCHkEUCO3KQHb7qfCVbZFIg0rW/I4DlrW4PSDUW6gtWKhIM8cCqUkzdrdL5jOmwYrA2/RT4ZKMgxtAl2QWVC4iCY2N49SHNfNPzkDKFJOAgJsSBbHRHklshYXQF+DIs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645067; c=relaxed/simple; bh=tP/fgGAN6DFh/j7tDSucFoHiyHiVPx49inMBwQlDTKg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Jr7bhbcxHDICakaph8vd0E/y0MQhw5yu5kW+3E5rW/nliQfxZ6GlK803PRsb4fHr6CgvuHOQNGgITreqtGJVBiADzVYfW+HC2QbKOBCGzldDcGe+Wv3HU5jqtD8cOPeYBxVyDUmpbwUAP8igR9cDATUVllzGLQ3xgL+IjVNLMDQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MA0D0eW/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MA0D0eW/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 542EAC2BCB9; Fri, 1 May 2026 14:17:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645067; bh=tP/fgGAN6DFh/j7tDSucFoHiyHiVPx49inMBwQlDTKg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=MA0D0eW/BJquIRoejRsWsFYAA0XJbupeq5SKAUifxu9X9sYURqZKKeIsmtFkLfmWi /BHP8QMM0QarlkSjbjRQXIxfKp/Zjk/647p3wLKR4VBncVXlUp9mq2z9KlIkBrnzXy qdAgQ5TEYZ6hDdun+jf/t6pUKNsmUcQsqtthQCfM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31743: nvmem: zynqmp_nvmem: Fix buffer size in DMA and memcpy Date: Fri, 1 May 2026 16:14:54 +0200 Message-ID: <2026050140-CVE-2026-31743-e8c6@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2412; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fUJaZQoBB0Dm3+QWiDY4Mdb4T4GCp3WXlq3txLvMw8E=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftgZ02hnND1eqyK0W1NKpdJgTs/fBfZ+/r6SdY4IqX 6vphuh1xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwESmyzMsuPE3y6fC/kpI17xl 3ZX9SropPw75MCyYLP/y5P7WVPOd75d+DdEtOPz8V7onAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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