From mboxrd@z Thu Jan 1 00:00:00 1970 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 69F4935C68D for ; Sat, 15 Aug 2026 06:14:13 +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=1786774454; cv=none; b=EiODqP7npW8nyX2iTDN7k60PaiaLUQuckROW1J04taaEdHuIG1NKDHrSLZm9fvID0H5vp8yB3BeIqKUBjc7ZCTAqFPKwWkYoC3iiNrNCGGG82160jnuPjl7JF/qCVdERkjyflpcIw+wfp2/qpNIo5x0ZphEWbHpBzYGH/6zUry4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774454; c=relaxed/simple; bh=XiwSoGQK50uhdjSFonDVw5rvA9+Aob7rEsjmBRgkfV8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ue4Is7nJxnlgEUwyDfgPErLogtUjpS3XzFAItHTdX3kQi3QWqwDGt5VLHpg5XCUdwTTLjUrv4dXeL7Y+a8n/ZsvQG2VtDiHjhEQ37EK0nNF6Gu+Is8PYMedlQMwOeGhNT0H0naiQKK7WmSLJnC2njmboTiVbbXxIm0kqJA83wyc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MJMLxfyy; 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="MJMLxfyy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2CA61F000E9; Sat, 15 Aug 2026 06:14:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774453; bh=720TJRzxPsp08tnIexPQXkOJv7xRw6hiG4gMAeGp4ZE=; h=From:To:Cc:Subject:Date:Reply-To; b=MJMLxfyy7Wl7ENayHhZsG6g6UB03rlXvk9V75Sp8Rb4/DAVnKrkNnGxA9Fi6oQo7c xgVypDUYIzAZwyXcmZfbGcr6KlYIIDeYXmfqp4HPm2vdJRdoV4NEgMZuvTgbjZ+9FY 50SkbzrGf4WkD5FLfk04X8YddjcpQiNESjsk/3qw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72158: fpga: dfl: add bounds check in dfh_get_param_size() Date: Sat, 15 Aug 2026 15:03:57 +0900 Message-ID: <2026081535-CVE-2026-72158-d66b@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=3017; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZR4n9HHO6TyGOBDJfJ+i6ukoF1yLuEm/HD6TfYeZwXw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDPtzV+wpetTYPHVyVHC/9n/Fssb2k2H+dz7GLe7iO CseGZDcEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABN5U8Uwz8iek4FlUdIOuQqT zMqI99MSz802Yphnljv90mdJ+YXc/lcT+5+u4VabKr4LAA== 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: add bounds check in dfh_get_param_size() dfh_get_param_size() can return a parameter size larger than the feature region because the loop bounds check is evaluated before incrementing size. If the EOP (End of Parameters) bit is set in the same iteration, the inflated size is returned without re-validation against max. This can cause create_feature_instance() to call memcpy_fromio() with a size exceeding the ioremap'd region when a malicious FPGA device provides crafted DFHv1 parameter headers. Add a bounds check after the size increment to ensure the accumulated size never exceeds the feature boundary. The Linux kernel CVE team has assigned CVE-2026-72158 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit 4747ab89b4a652f835494fcf8342aaa0efb9b0fd and fixed in 6.6.145 with commit b2f6220e929b2a43605331d0139e65dc1640c05c Issue introduced in 6.3 with commit 4747ab89b4a652f835494fcf8342aaa0efb9b0fd and fixed in 6.12.97 with commit 3b622aa447cf26104f96a8be39539367863bc6b6 Issue introduced in 6.3 with commit 4747ab89b4a652f835494fcf8342aaa0efb9b0fd and fixed in 6.18.40 with commit 012683accbb7d2bcf1264f2a0ecd6aa1dcea4d68 Issue introduced in 6.3 with commit 4747ab89b4a652f835494fcf8342aaa0efb9b0fd and fixed in 7.1.5 with commit f3df5386e3bb54626c117bd85e0158d45fb4aea9 Issue introduced in 6.3 with commit 4747ab89b4a652f835494fcf8342aaa0efb9b0fd and fixed in 7.2-rc1 with commit 9e8bc49f91f3f81d957c4f1c1f09fe94e2f88f6a 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-72158 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.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/b2f6220e929b2a43605331d0139e65dc1640c05c https://git.kernel.org/stable/c/3b622aa447cf26104f96a8be39539367863bc6b6 https://git.kernel.org/stable/c/012683accbb7d2bcf1264f2a0ecd6aa1dcea4d68 https://git.kernel.org/stable/c/f3df5386e3bb54626c117bd85e0158d45fb4aea9 https://git.kernel.org/stable/c/9e8bc49f91f3f81d957c4f1c1f09fe94e2f88f6a