Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 5765E373C1D for ; Sat, 25 Jul 2026 08:53:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784969619; cv=none; b=SdlsVtP0StHmp3Ba1f+FWCoRGDD+gKUHjmnXAvYy/J/xWvYWr3LpRKNWun97XA3WbiPdjKsWmn79gnEAhH+2dWytyv/JggPn4oH5keRVfzATa8kGAHb1emrHNqL07EZgt72aLuSmbYfdobb4/UjPNPjf8kiJYoxuTPJ+dUYOHw4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784969619; c=relaxed/simple; bh=WAhV3ZpfZJTW78DlHKVE5rfYL8zBtepMa51NWr7iK6k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uke7YulivAspPl5SU59nqFEoFgvbZbdJJRjcJRROmgumCkGOci3HEvzg1JKX723VpSiwsQK5cpTR/ozwPBDlhcRfloYSmPF65i+mRNflw2IbekdcsCn03KGyBCSR0NpV1Vr8vKpoEtwKrMatowfyc5x9mfHeX8DZbwlo6oM3T5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vhQutKVz; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vhQutKVz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B83C31F000E9; Sat, 25 Jul 2026 08:53:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784969618; bh=ogiWy9/uF3HjTplFeitWhMib3fczBfHpWUPK7UVMs68=; h=From:To:Cc:Subject:Date:Reply-To; b=vhQutKVzkNTEhHEqZrQn8AgLXy3wdwl6caiuSchKFdPHc0yiTsgo6oqemPhT/3nvH GR/Qqx+NUrc1iAwTZv3aLgAkYy2kyIEGFFKJwxNtSgcOEs4/+MJsmWN8OU0TwhMXYk 4cjOw38frSkPJiStbvJj/YkuDEuW3xhKqTbFVza8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64280: fpga: dfl-afu: validate DMA mapping length in afu_dma_map_region() Date: Sat, 25 Jul 2026 10:48:17 +0200 Message-ID: <2026072502-CVE-2026-64280-0e16@gregkh> X-Mailer: git-send-email 2.55.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=2476; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=US7XAqPSA8GrFYWhcLx4LenvqN5u9O5jnBFnXgcvMLk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkpFU7JnBO3eSXVbtVm3BASt8Djen6OcsV26Vo7pfyLG ezfRLd2xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwET8nBnmFzHpTU64tlFk+d4X TJI5z7qVyyvUGOY7GvPviE7vqpm+KVy0h2911k8+fRsA 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: fpga: dfl-afu: validate DMA mapping length in afu_dma_map_region() afu_ioctl_dma_map() accepts a 64-bit length from userspace via DFL_FPGA_PORT_DMA_MAP ioctl without an upper bound check. The value is passed to afu_dma_pin_pages() where npages is derived as length >> PAGE_SHIFT and passed to pin_user_pages_fast() which takes int nr_pages, causing implicit truncation if length is very large. Validate map.length at the ioctl entry point before calling afu_dma_map_region(), rejecting values whose page count exceeds INT_MAX. The Linux kernel CVE team has assigned CVE-2026-64280 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit fa8dda1edef9ebc3af467c644c5533ac97171e12 and fixed in 6.18.39 with commit 59070040fd12e0b78d7b4d341d9f9a183237c5ff Issue introduced in 4.19 with commit fa8dda1edef9ebc3af467c644c5533ac97171e12 and fixed in 7.1.4 with commit fb2c0eab51ae5b02d2bae7d67c2cfbec39b57231 Issue introduced in 4.19 with commit fa8dda1edef9ebc3af467c644c5533ac97171e12 and fixed in 7.2-rc1 with commit fc3b071a7c8dc0f5d56defddf6e6fd5aaa3e1e27 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-64280 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/fpga/dfl-afu-main.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/59070040fd12e0b78d7b4d341d9f9a183237c5ff https://git.kernel.org/stable/c/fb2c0eab51ae5b02d2bae7d67c2cfbec39b57231 https://git.kernel.org/stable/c/fc3b071a7c8dc0f5d56defddf6e6fd5aaa3e1e27